Skip to content

Commit a7c6e10

Browse files
committed
feat: chain-sync server AwaitReply function
1 parent f701571 commit a7c6e10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

protocol/chainsync/server.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ func (s *Server) RollBackward(point common.Point, tip Tip) error {
6262
return s.SendMessage(msg)
6363
}
6464

65+
func (s *Server) AwaitReply() error {
66+
msg := NewMsgAwaitReply()
67+
return s.SendMessage(msg)
68+
}
69+
6570
func (s *Server) RollForward(blockType uint, blockData []byte, tip Tip) error {
6671
if s.Mode() == protocol.ProtocolModeNodeToNode {
6772
eraId := ledger.BlockToBlockHeaderTypeMap[blockType]

0 commit comments

Comments
 (0)