diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-29 17:49:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 17:49:33 +0800 |
commit | 2275880f65fbfa253c1ec1d4c25d0b94cbdb185d (patch) | |
tree | e9909dfd32c06332c62dcee5e3d9003b27670ffa /core/test/governance.go | |
parent | 51904f3e9b821f3313d3ab1f268efb28f739eb5f (diff) | |
download | dexon-consensus-2275880f65fbfa253c1ec1d4c25d0b94cbdb185d.tar dexon-consensus-2275880f65fbfa253c1ec1d4c25d0b94cbdb185d.tar.gz dexon-consensus-2275880f65fbfa253c1ec1d4c25d0b94cbdb185d.tar.bz2 dexon-consensus-2275880f65fbfa253c1ec1d4c25d0b94cbdb185d.tar.lz dexon-consensus-2275880f65fbfa253c1ec1d4c25d0b94cbdb185d.tar.xz dexon-consensus-2275880f65fbfa253c1ec1d4c25d0b94cbdb185d.tar.zst dexon-consensus-2275880f65fbfa253c1ec1d4c25d0b94cbdb185d.zip |
core: fix consensus timestamp (#272)
* Fix panic
Assume DAG would be increased to 7 chains at round 4.
When encounter the first block from round 4, this module would
attempt to resize its working set to the numChains in round 2 or 3.
* Add a check to make sure consensus timestamps are increasing
* Fix consensus timestamp rewind
Diffstat (limited to 'core/test/governance.go')
0 files changed, 0 insertions, 0 deletions