OSDN Git Service

keep last irreversible block on the main chain fix_LIB
authorWei Wang <apollo.mobility@gmail.com>
Fri, 5 Jul 2019 09:59:58 +0000 (17:59 +0800)
committerWei Wang <apollo.mobility@gmail.com>
Fri, 5 Jul 2019 10:02:10 +0000 (18:02 +0800)
commit2b9475d7d8a8344a7ae73e2744e7d4589e81b3ef
treeba18f803c5322ab95782b7178c78a455470618e2
parent03851e304e5efedc667dbb6bbaaebeb9237348ec
keep last irreversible block on the main chain

Only update the LIB pointer when newly irreversible block is on the main
chain. Emit warning otherwise.
netsync/chainmgr/block_keeper.go
netsync/chainmgr/handle.go
protocol/bbft.go
protocol/block.go
protocol/protocol.go
test/mock/chain.go