OSDN Git Service

Add consensus messages transfer (#90)
[bytom/vapor.git] / event / event.go
index 4e76fcb..9ce4d41 100644 (file)
@@ -27,11 +27,14 @@ var (
 
 type NewProposedBlockEvent struct{ Block types.Block }
 
-type BlockSignatureEvent struct { 
+type BlockSignatureEvent struct {
        BlockHash bc.Hash
-       Signature []byte 
+       Signature []byte
 }
 
+//NewBlockProposeEvent block propose event which needs to broadcast.
+type NewBlockProposeEvent struct{ Block types.Block }
+
 // TypeMuxEvent is a time-tagged notification pushed to subscribers.
 type TypeMuxEvent struct {
        Time time.Time