OSDN Git Service

keep last irreversible block on the main chain (#245)
authorapolloww <32606824+apolloww@users.noreply.github.com>
Mon, 8 Jul 2019 05:42:55 +0000 (13:42 +0800)
committerPaladz <yzhu101@uottawa.ca>
Mon, 8 Jul 2019 05:42:55 +0000 (13:42 +0800)
commit3bf61490e8df4a17777877b56176ce608f4ccc26
tree9226c3c13e9b94b85843725f3a99c45ce84d4d07
parent1ac37da4a879c053df6a5dce0442b52c3e491873
keep last irreversible block on the main chain (#245)

* 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.

* save updated block header
netsync/chainmgr/block_keeper.go
netsync/chainmgr/handle.go
protocol/bbft.go
protocol/block.go
protocol/protocol.go
test/mock/chain.go