bsc/consensus/clique
setunapo 21b985c14b worker: always drop on new block imported.
When new block is imported, there is no need to commit the current
work, even the new imported block is offturn and itself is inturn.

That is because when offturn block is received, the inturn block is
already later to broadcast block, deliver the later block will cause
many reorg, which is not reasonable.

And also make sure all useless work can be discarded, to avoid goroutine leak.
2022-11-21 17:28:23 +08:00
..
api.go consensus/clique: fix block number unmarshal (#23961) 2021-11-24 14:12:26 +01:00
clique_test.go fix: code compatibility fixes 2022-07-05 11:14:21 +08:00
clique.go worker: always drop on new block imported. 2022-11-21 17:28:23 +08:00
snapshot_test.go accounts/abi/bind: fix bounded contracts and sim backend for 1559 (#23038) 2021-06-15 13:56:14 +03:00
snapshot.go cosensus, core, eth, params, trie: fixes + clique history cap 2019-05-16 10:39:35 +03:00