Skip to content

Commit

Permalink
chore(network): implementing no-op cross-chain app handlers (ava-labs…
Browse files Browse the repository at this point in the history
…#304)

* implementing cross-chain app handlers

* nits

Co-authored-by: Ceyhun Onur <[email protected]>
  • Loading branch information
joshua-kim and ceyonur authored Oct 19, 2022
1 parent 91778ae commit 73bb000
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions peer/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,21 @@ func (n *network) AppRequestFailed(nodeID ids.NodeID, requestID uint32) error {
return handler.OnFailure(nodeID, requestID)
}

// CrossChainAppRequest is a no-op.
func (n *network) CrossChainAppRequest(chainID ids.ID, requestID uint32, deadline time.Time, request []byte) error {
return nil
}

// CrossChainAppRequestFailed is a no-op.
func (n *network) CrossChainAppRequestFailed(chainID ids.ID, requestID uint32) error {
return nil
}

// CrossChainAppResponse is a no-op.
func (n *network) CrossChainAppResponse(chainID ids.ID, requestID uint32, response []byte) error {
return nil
}

// getRequestHandler fetches the handler for [requestID] and marks the request with [requestID] as having been fulfilled.
// This is called by either [AppResponse] or [AppRequestFailed].
// assumes that the write lock is held.
Expand Down

0 comments on commit 73bb000

Please sign in to comment.