Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
85028bf1
Unverified
Commit
85028bf1
authored
Dec 08, 2022
by
Michael de Hoog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update spec
parent
e75369bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rollup-node-p2p.md
specs/rollup-node-p2p.md
+3
-3
No files found.
specs/rollup-node-p2p.md
View file @
85028bf1
...
@@ -84,9 +84,9 @@ The Ethereum Node Record (ENR) for an Optimism rollup node must contain the foll
...
@@ -84,9 +84,9 @@ The Ethereum Node Record (ENR) for an Optimism rollup node must contain the foll
-
An IPv4 address (
`ip`
field) and/or IPv6 address (
`ip6`
field).
-
An IPv4 address (
`ip`
field) and/or IPv6 address (
`ip6`
field).
-
A TCP port (
`tcp`
field) representing the local libp2p listening port.
-
A TCP port (
`tcp`
field) representing the local libp2p listening port.
-
A UDP port (
`udp`
field) representing the local discv5 listening port.
-
A UDP port (
`udp`
field) representing the local discv5 listening port.
-
An Op
timism (
`optimism
`
field) L2 network identifier
-
An Op
Stack (
`opstack
`
field) L2 network identifier
The
`op
timism
`
value is encoded as a single RLP
`bytes`
value, the concatenation of:
The
`op
stack
`
value is encoded as a single RLP
`bytes`
value, the concatenation of:
-
chain ID (
`unsigned varint`
)
-
chain ID (
`unsigned varint`
)
-
fork ID (
`unsigned varint`
)
-
fork ID (
`unsigned varint`
)
...
@@ -101,7 +101,7 @@ The discovery process in Optimism is a pipeline of node records:
...
@@ -101,7 +101,7 @@ The discovery process in Optimism is a pipeline of node records:
2.
Pull additional records with searches to random Node IDs if necessary
2.
Pull additional records with searches to random Node IDs if necessary
(e.g. iterate
[
`RandomNodes()`
][
discv5-random-nodes
]
in Go implementation)
(e.g. iterate
[
`RandomNodes()`
][
discv5-random-nodes
]
in Go implementation)
3.
Pull records from the DiscV5 module when looking for peers
3.
Pull records from the DiscV5 module when looking for peers
4.
Check if the record contains the
`op
timism
`
entry, verify it matches the chain ID and current or future fork number
4.
Check if the record contains the
`op
stack
`
entry, verify it matches the chain ID and current or future fork number
5.
If not already connected, and not recently disconnected or put on deny-list, attempt to dial.
5.
If not already connected, and not recently disconnected or put on deny-list, attempt to dial.
### LibP2P
### LibP2P
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment