Skip to content

test: process getpeerinfo on live run_p2p - #505

Merged
reardencode merged 1 commit into
masterfrom
test/run-p2p-peerinfo
Sep 13, 2026
Merged

test: process getpeerinfo on live run_p2p#505
reardencode merged 1 commit into
masterfrom
test/run-p2p-peerinfo

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fold process JSON-RPC onto catalog node_run_p2p_short while --connected to a 3-block seeder: getpeerinfo (v2 outbound-full-relay, bytesrecv > 0), getconnectioncount / getnetworkinfo / getnettotals / ping.
  • addconnection inbound refuses (cannot create inbound), disconnectnode by addr clears getpeerinfo, addnode onetry reconnects as manual, then stop. Store tip stays 3.
  • max_run_secs=0 stays a node-crate unit (RPC starts after catch-up, so a zero-second exit has no RPC window). run_p2p stays on the test task so genesis tip-accept is not on a tokio-rt-worker.

Test plan

  • cargo test -p rbitcoin-test --test integration_multinode node_run_p2p_short
  • Required CI green (fmt, deny, clippy, ast-grep, test, windows, macos, multinode, coverage)

Made with Cursor

node_run_p2p_short attaches JSON-RPC while --connected to a seeder so
getpeerinfo / disconnectnode / addnode onetry hit the product PeerHub.
max_run_secs=0 stays a node-crate unit (no RPC window after catch-up).

Co-authored-by: Cursor <cursoragent@cursor.com>
@reardencode
reardencode merged commit 48394d7 into master Sep 13, 2026
16 checks passed
@rearden-grok
rearden-grok Bot deleted the test/run-p2p-peerinfo branch September 13, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant