bsc/consensus/ethash
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
..
algorithm_test.go cmd/geth, consensus/ethash: add support for --miner.notify.full flag (#22558) 2021-03-26 18:30:10 +01:00
algorithm.go fix: code compatibility fixes 2022-07-05 11:14:21 +08:00
api.go all: fix miner hashRate -> hashrate on API calls 2021-03-31 10:56:51 +03:00
consensus_test.go all: prefer new(big.Int) over big.NewInt(0) (#25087) 2022-10-28 09:03:38 +08:00
consensus.go worker: always drop on new block imported. 2022-11-21 17:28:23 +08:00
difficulty.go go.mod: upgrade to github.com/holiman/uint256 v1.2.0 (#22745) 2021-05-10 12:29:33 +02:00
ethash_test.go all: fix miner hashRate -> hashrate on API calls 2021-03-31 10:56:51 +03:00
ethash.go fix: code compatibility fixes 2022-07-05 11:14:21 +08:00
mmap_help_linux.go consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
mmap_help_other.go consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
sealer_test.go cmd/geth, consensus/ethash: add support for --miner.notify.full flag (#22558) 2021-03-26 18:30:10 +01:00
sealer.go fix: code compatibility fixes 2022-07-05 11:14:21 +08:00