Explorar o código

add NewMinedBlockEvent

zelig %!s(int64=11) %!d(string=hai) anos
pai
achega
5022a31889
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      core/events.go

+ 3 - 0
core/events.go

@@ -10,3 +10,6 @@ type TxPostEvent struct{ Tx *types.Transaction }
 
 // NewBlockEvent is posted when a block has been imported.
 type NewBlockEvent struct{ Block *types.Block }
+
+// NewMinedBlockEvent is posted when a block has been imported.
+type NewMinedBlockEvent struct{ Block *types.Block }