Skip to content

Commit c1a2c14

Browse files
authored
Merge pull request #447 from blinklabs-io/feat/chainsync-server-awaitreply
feat: chain-sync server AwaitReply function
2 parents 4430d8f + a7c6e10 commit c1a2c14

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)