Skip to content

Commit d443b2d

Browse files
committed
add replication for rounds and sequences
1 parent 430fbb5 commit d443b2d

15 files changed

+1185
-864
lines changed

api.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,16 @@ type Storage interface {
5656
Index(ctx context.Context, block VerifiedBlock, certificate Finalization) error
5757
}
5858

59-
type Communication interface {
59+
type Sender interface {
60+
// Send sends a message to the given destination node
61+
Send(msg *Message, destination NodeID)
62+
}
6063

64+
type Communication interface {
65+
Sender
6166
// Nodes returns all nodes that participate in the epoch.
6267
Nodes() []NodeID
6368

64-
// Send sends a message to the given destination node
65-
Send(msg *Message, destination NodeID)
66-
6769
// Broadcast broadcasts the given message to all nodes.
6870
// Does not send it to yourself.
6971
Broadcast(msg *Message)

0 commit comments

Comments
 (0)