Skip to content

Commit d7371c0

Browse files
committed
discv5: update identifiers
1 parent b29d9c6 commit d7371c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

discv5/discv5-theory.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -378,18 +378,18 @@ request time out on the timed out [FINDNODE] message and wraps the message's non
378378
[RELAYINIT] notification and sends it to Relay. The notification also contains its ENR and
379379
Bob's node id.
380380

381-
Relay disassembles the [RELAYINIT] notification and uses the `tgt-id` to look up Bob's ENR
382-
in its kbuckets. With high probability, Relay will find Bob's ENR in its kbuckets as ~1
383-
second ago, Relay assembled a [NODES] response for Alice containing Bob's ENR (see [UDP
381+
Relay disassembles the [RELAYINIT] notification and uses the `target-id` to look up Bob's
382+
ENR in its kbuckets. With high probability, Relay will find Bob's ENR in its kbuckets as
383+
~1 second ago, Relay assembled a [NODES] response for Alice containing Bob's ENR (see [UDP
384384
Communication] for recommended time out duration). Relay assembles a [RELAYMSG]
385385
notification with Alice's message nonce and ENR, then sends it to the address in Bob's
386386
ENR.
387387

388388
Bob disassembles the [RELAYMSG] and uses the `nonce` to assemble a [WHOAREYOU packet],
389-
then sends it to Alice using the address in the `inr-enr`. Bob's NAT adds the filtering
390-
rule `(Bob's-LAN-ip, Bob's-LAN-port, Alice's-WAN-ip, Alice's-WAN-port, entry-lifetime)` to
391-
it's UDP session table[^2][^3]. A hole is punched in Bob's NAT for Alice for the duration
392-
of `entry-lifetime`.
389+
then sends it to Alice using the address in the `initiator-enr`. Bob's NAT adds the
390+
filtering rule `(Bob's-LAN-ip, Bob's-LAN-port, Alice's-WAN-ip, Alice's-WAN-port,
391+
entry-lifetime)` to it's UDP session table[^2][^3]. A hole is punched in Bob's NAT for
392+
Alice for the duration of `entry-lifetime`.
393393

394394
From here on it's business as usual. See [Sessions].
395395

0 commit comments

Comments
 (0)