Skip to content

Circuit-relay v2 connection denied (Upgrade(Apply(NoReservation))) #2513

Closed Answered by mxinden
demfabris asked this question in Q&A
Discussion options

You must be logged in to vote

👋 sorry for the late reply here.

It looks like Node B does not make a reservation with R. You would need to make sure Node B listens via R, in other words that node B makes a reservation with R. Unless B has a reservation with R, R will not relay a connection from A to B.

To "listen via" R, B needs to call Swarm::listen_on with a relayed address, e.g. /ip4/127.0.0.1/tcp/4001/p2p/<NodeRpeerId>/p2p-circuit.

See example:

let client_addr = relay_addr
.clone()
.with(Protocol::P2p(relay_peer_id.into()))
.with(Protocol::P2pCircuit);
let mut client = build_client();
let client_peer_id = *client.l…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@demfabris
Comment options

@mxinden
Comment options

mxinden Feb 18, 2022
Collaborator

Answer selected by demfabris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants