OSDN Git Service

fix casper rollback (#1951)
authorPoseidon <shenao.78@163.com>
Tue, 8 Jun 2021 07:15:42 +0000 (15:15 +0800)
committerGitHub <noreply@github.com>
Tue, 8 Jun 2021 07:15:42 +0000 (15:15 +0800)
commit2f24424ff9ca177437a9b1a153f504ad538ae262
tree7b7366479c9b3bea3f400e4eb42bad215f3c6e26
parent960952b430941db979b4c3976d0a1cb5ddab7a0a
fix casper rollback (#1951)

* fix casper rollback

* opt code

Co-authored-by: Paladz <yzhu101@uottawa.ca>
19 files changed:
database/store.go
database/store_test.go
netsync/chainmgr/block_keeper.go
netsync/chainmgr/block_keeper_test.go
netsync/chainmgr/fast_sync_test.go
netsync/chainmgr/handle.go
netsync/messages/chain_msg.go
netsync/peers/peer.go
netsync/peers/peer_test.go
protocol/apply_block.go
protocol/auth_verification.go
protocol/block.go
protocol/casper.go
protocol/protocol.go
protocol/store.go
protocol/tree_node.go
protocol/txpool_test.go
test/mock/chain.go
test/utxo_view/utxo_view_test.go