[bisq-network/bisq] Add transient tx map to DaoState to speed up getTx queries (#3773)
Steven Barclay
notifications at github.com
Tue Dec 10 19:53:27 UTC 2019
stejbac commented on this pull request.
> @@ -348,16 +360,16 @@ public Coin getGenesisTotalSupply() {
.flatMap(block -> block.getTxs().stream());
}
- public TreeMap<String, Tx> getTxMap() {
- return new TreeMap<>(getTxStream().collect(Collectors.toMap(Tx::getId, tx -> tx)));
+ public Map<String, Tx> getTxMap() {
Yes, I noticed it was unused originally. Perhaps it should just be inlined.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/3773#discussion_r356245171
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191210/5f5b2b73/attachment.html>
More information about the bisq-github
mailing list