mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
fcd7997582
We create a chain of hashes of the dao state starting from the genesis block height and using the previous hash in the hash. This ensures that the history need to be correct if a particular hash at a block height is correct. We request from seed nodes the last 10 hashes and broadcast to our peers our hash at each new block. We build our list in memory and listen on the new onSnapShotApplied event to start building our chain from the genesis height up to the last snapshot block and after that from each parsed block. If we detect a mismatch we store it in a collection and the UI can show a warning to the user. We added also the onDaoStateChanged handler to the DaoStateListener. This event is called after all parsing is completed and listeners have completed their work. We must not use time based delays in the listener code otherwise we would get changed our dao state after that event. To detect such we added a assert method to throw an exception if the dao state gets changed after the allowDaoStateChange is set to false. |
||
---|---|---|
.. | ||
.tx | ||
src | ||
update_translations.sh |