Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(network): implementing no-op cross-chain app handlers #304

Merged
merged 3 commits into from
Oct 19, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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