miner: regenerate mining work every 3 seconds (#17413)

* miner: regenerate mining work every 3 seconds

* miner: polish
This commit is contained in:
gary rong
2018-08-16 19:14:33 +08:00
committed by Péter Szilágyi
parent 5952d962dc
commit 54216811a0
3 changed files with 267 additions and 133 deletions

View File

@ -29,9 +29,6 @@ type PendingLogsEvent struct {
Logs []*types.Log
}
// PendingStateEvent is posted pre mining and notifies of pending state changes.
type PendingStateEvent struct{}
// NewMinedBlockEvent is posted when a block has been imported.
type NewMinedBlockEvent struct{ Block *types.Block }