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

Add Chainid to p2p filter #355

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bug
ping-ke committed Jan 15, 2025
commit af98e3538166a39833392675d3193b99efe93d23
2 changes: 2 additions & 0 deletions ethstorage/p2p/discovery.go
Original file line number Diff line number Diff line change
@@ -385,6 +385,8 @@
continue
}
if dat.L1ChainID != l1ChainID {
log.Debug("ignore ENR as l1 chain ID is not match", "node ID", node.ID(), "remote address", node.IP().String()+string(node.TCP()),

Check failure on line 388 in ethstorage/p2p/discovery.go

GitHub Actions / build-and-test

conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
"local l1 chain ID", l1ChainID, "remote l1 chain ID", dat.L1ChainID)
continue
}
// We add the addresses to the peerstore, and update the address TTL.
1 change: 0 additions & 1 deletion run-l2-rpc.sh
Original file line number Diff line number Diff line change
@@ -2,5 +2,4 @@

./run-l2.sh \
--rpc.addr 0.0.0.0 \
--l2.chain_id 3337 \
--miner.enabled=false
1 change: 1 addition & 0 deletions run-l2.sh
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
--storage.l1contract 0x64003adbdf3014f7E38FC6BE752EB047b95da89A \
--l1.rpc http://5.9.87.214:8545 \
--l1.block_time 2 \
--l2.chain_id 3337 \
--da.url http://5.9.87.214:8888 \
--randao.url http://88.99.30.186:8545 \
--p2p.bootnodes enr:-Li4QFWB-bdjo4EVuvJmJ4GmMuwa0RcFdtdpA6yUxTdU0QE8aG_q8eZa9B4vu2LGPTbspqFtMBCuJpjG0q178SY7H1yGAZP7b35dimV0aHN0b3JhZ2XbAYDY15RkADrb3zAU9-OPxr51LrBHuV2omsGAgmlkgnY0gmlwhEFtMpGJc2VjcDI1NmsxoQMw4i1lk4EjCD_4os-PSrC9y1BrDim_olfCCPNBoXSkWIN0Y3CCJAaDdWRwgnZh \