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
Add consensus messages transfer (#90)
[bytom/vapor.git]
/
event
/
event.go
diff --git
a/event/event.go
b/event/event.go
index
4e76fcb
..
9ce4d41
100644
(file)
--- a/
event/event.go
+++ b/
event/event.go
@@
-27,11
+27,14
@@
var (
type NewProposedBlockEvent struct{ Block types.Block }
type NewProposedBlockEvent struct{ Block types.Block }
-type BlockSignatureEvent struct {
+type BlockSignatureEvent struct {
BlockHash bc.Hash
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
// TypeMuxEvent is a time-tagged notification pushed to subscribers.
type TypeMuxEvent struct {
Time time.Time