OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve net sync test cases (#375)
[bytom/vapor.git]
/
event
/
event.go
diff --git
a/event/event.go
b/event/event.go
index
1e6bd99
..
e13c92e
100644
(file)
--- a/
event/event.go
+++ b/
event/event.go
@@
-9,6
+9,7
@@
import (
log "github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
+ "github.com/vapor/protocol/bc"
"github.com/vapor/protocol/bc/types"
)
"github.com/vapor/protocol/bc/types"
)
@@
-24,7
+25,13
@@
var (
ErrDuplicateSubscribe = errors.New("event: subscribe duplicate type")
)
ErrDuplicateSubscribe = errors.New("event: subscribe duplicate type")
)
-type NewMinedBlockEvent struct{ Block types.Block }
+type NewProposedBlockEvent struct{ Block types.Block }
+
+type BlockSignatureEvent struct {
+ BlockHash bc.Hash
+ Signature []byte
+ XPub []byte
+}
// TypeMuxEvent is a time-tagged notification pushed to subscribers.
type TypeMuxEvent struct {
// TypeMuxEvent is a time-tagged notification pushed to subscribers.
type TypeMuxEvent struct {