Skip to content

WIP: sketch out interfaces for working with vat networks #452

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

Merged
merged 14 commits into from
Feb 25, 2023
11 changes: 10 additions & 1 deletion rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,17 @@ type Options struct {
// timeout is used.
AbortTimeout time.Duration

// RemotePeerId is the PeerId of the remote side of the connection. Can
// be left as the zero value for point to point connections. For >= 3
// party use, this should be filled in by the Network on Accept or Dial.
// Application code should not set this.
RemotePeerId PeerId

// A reference to the Network that this connection is a part of. Can be
// left nil for point to point connections. Otherwise, this must be set
// by Dial or Accept on the Network itself; application code should not
// set this.
Network Network
PeerId PeerId
}

// ErrorReporter can receive errors from a Conn. ReportError should be quick
Expand Down