Queued approach to delivering chain events

This commit is contained in:
obscuren
2015-03-06 15:50:44 +01:00
parent b72ca57775
commit 8d9be18b29
4 changed files with 86 additions and 36 deletions

View File

@ -16,3 +16,13 @@ type NewMinedBlockEvent struct{ Block *types.Block }
// ChainSplit is posted when a new head is detected
type ChainSplitEvent struct{ Block *types.Block }
type ChainEvent struct{ Block *types.Block }
type ChainSideEvent struct{ Block *types.Block }
type ChainHeadEvent struct{ Block *types.Block }
// Mining operation events
type StartMining struct{}
type TopMining struct{}