Skip to content

Commit

Permalink
Merge pull request #447 from blinklabs-io/feat/chainsync-server-await…
Browse files Browse the repository at this point in the history
…reply

feat: chain-sync server AwaitReply function
  • Loading branch information
agaffney authored Dec 2, 2023
2 parents 4430d8f + a7c6e10 commit c1a2c14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protocol/chainsync/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ func (s *Server) RollBackward(point common.Point, tip Tip) error {
return s.SendMessage(msg)
}

func (s *Server) AwaitReply() error {
msg := NewMsgAwaitReply()
return s.SendMessage(msg)
}

func (s *Server) RollForward(blockType uint, blockData []byte, tip Tip) error {
if s.Mode() == protocol.ProtocolModeNodeToNode {
eraId := ledger.BlockToBlockHeaderTypeMap[blockType]
Expand Down

0 comments on commit c1a2c14

Please sign in to comment.