-
Notifications
You must be signed in to change notification settings - Fork 391
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
fix: utilize p2p.ExternalAddress
properly for dialing
#3581
Conversation
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):No automated checks match this pull request. ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
This reverts commit 29d5e0c.
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
Successfully tested with the following scenario:
The following configuration pattern have been used, for all the nodes:
Following the topology + configuration Node A
external_address = "34.240.222.122:30656"
laddr = "tcp://0.0.0.0:26656"
persistent_peers = ""
pex = true
private_peer_ids = ""
# Node C
seeds = "[email protected]:30658" Node B
external_address = "3.252.191.197:30657"
laddr = "tcp://0.0.0.0:26656"
persistent_peers = ""
pex = true
private_peer_ids = ""
# Node C
seeds = "[email protected]:30658" Node C
external_address = "34.255.178.108:30658"
laddr = "tcp://0.0.0.0:26656"
persistent_peers = ""
pex = true
private_peer_ids = ""
seeds = "" The output from a non-validator node, shows that p2p networking is fully up and running 2025-02-05T17:09:35.740Z DEBUG Received bytes {"module": "p2p", "peer": "[email protected]:64680", "chID": 32, "msgBytes": "0A122F746D2E486173566F74654D657373616765120508E82C1801"}
2025-02-05T17:09:35.740Z DEBUG Receive {"module": "consensus", "src": "Peer{MConn{10.0.0.149:64680} g1s0x78pl3c2xv2n7hp33lh4jkyqvhg5hlx6huh7 in}", "chId": 32, "msg": "[HasVote VI:0 V:{2868/00/1}]"}
2025-02-05T17:09:35.740Z DEBUG setHasVote {"module": "consensus", "peerH/R": "2868/0", "H/R": "2868/0", "type": 1, "index": 0}
2025-02-05T17:09:35.740Z DEBUG Read PacketMsg {"module": "p2p", "peer": "[email protected]:64680", "conn": "MConn{10.0.0.149:64680}", "packet": "PacketMsg{20:0A182F746D2E4E657756616C6964426C6F636B4D657373616765123008E82C1A24080212208D568A2E418FBBAAA58D1F4E65E86EAA4419A1DD6C3B602FFBF22F1CA4CC571822050802120100 T:1}"}
2025-02-05T17:09:35.740Z DEBUG Received bytes {"module": "p2p", "peer": "[email protected]:64680", "chID": 32, "msgBytes": "0A182F746D2E4E657756616C6964426C6F636B4D657373616765123008E82C1A24080212208D568A2E418FBBAAA58D1F4E65E86EAA4419A1DD6C3B602FFBF22F1CA4CC571822050802120100"}
2025-02-05T17:09:35.740Z DEBUG Receive {"module": "consensus", "src": "Peer{MConn{10.0.0.149:64680} g1s0x78pl3c2xv2n7hp33lh4jkyqvhg5hlx6huh7 in}", "chId": 32, "msg": "[ValidBlockMessage H:2868 R:0 BP:1:8D568A2E418F BA:BA{1:_} IsCommit:false]"}
2025-02-05T17:09:35.740Z DEBUG Read PacketMsg {"module": "p2p", "peer": "[email protected]:64680", "conn": "MConn{10.0.0.149:64680}", "packet": "PacketMsg{20:0A172F746D2E4E6577526F756E64537465704D657373616765120508E82C1804 T:1}"}
2025-02-05T17:09:35.740Z DEBUG Received bytes {"module": "p2p", "peer": "[email protected]:64680", "chID": 32, "msgBytes": "0A172F746D2E4E6577526F756E64537465704D657373616765120508E82C1804"} Also the internal RPC interface on each of the 3 nodes show 2 other peers connected
|
Description
This PR fixes a bug with the
Transport
bind address, where the bound address was taking in a wrong param, as part of an oversight.It also adds context on the newly introduced checks.
The PR also fixes an issue with the redial mechanism for persistent peers, where peers wouldn't be redialed more than once.