[bisq-network/bisq] Add transient tx map to DaoState to speed up getTx queries (#3773)
Steven Barclay
notifications at github.com
Tue Dec 10 20:55:27 UTC 2019
stejbac commented on this pull request.
> @@ -115,6 +116,9 @@ public void applySnapshot(DaoState snapshot) {
daoState.setChainHeight(snapshot.getChainHeight());
+ daoState.getTxMap().clear();
+ daoState.getTxMap().putAll(snapshot.getTxMap());
No, it shouldn't be because the snapshot is just another DaoState instance constructed via DaoState.fromProto(), and in that method it recalculates and populates the transient field.
--
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_r356272154
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191210/aeb78b8c/attachment-0001.html>
More information about the bisq-github
mailing list