Browse Source

add NewMinedBlockEvent

zelig 11 năm trước cách đây
mục cha
commit
5022a31889
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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 }