OSDN Git Service

Peer add announces new block message num limit
[bytom/vapor.git] / event / event.go
index 77bbb9f..e13c92e 100644 (file)
@@ -25,11 +25,12 @@ var (
        ErrDuplicateSubscribe = errors.New("event: subscribe duplicate type")
 )
 
-type NewMinedBlockEvent struct{ Block types.Block }
+type NewProposedBlockEvent struct{ Block types.Block }
 
-type BlockSignatureEvent struct { 
+type BlockSignatureEvent struct {
        BlockHash bc.Hash
-       Signature []byte 
+       Signature []byte
+       XPub      []byte
 }
 
 // TypeMuxEvent is a time-tagged notification pushed to subscribers.