Functional tests for peer disconnect, ban and unban #529

Manually merged
epicleafies merged 12 commits from test-peers into qt6 2026-03-10 17:11:45 +00:00 AGit
epicleafies commented 2026-03-02 20:16:25 +00:00 (Migrated from github.com)

Tests disconnecting peers (with one and more than one peers), banning peers (all durations, persistence between sessions and with more than one peer) and unbanning peers.

Tests disconnecting peers (with one and more than one peers), banning peers (all durations, persistence between sessions and with more than one peer) and unbanning peers.
johnny9 (Migrated from github.com) reviewed 2026-03-03 01:27:04 +00:00
johnny9 (Migrated from github.com) commented 2026-03-03 01:18:05 +00:00

Lets not bother with this complex failover. We should trust that our environment is stable. Pick bitcoind in build/bin/bitcoind to test against.

Lets not bother with this complex failover. We should trust that our environment is stable. Pick bitcoind in build/bin/bitcoind to test against.
johnny9 (Migrated from github.com) commented 2026-03-03 01:26:44 +00:00

We should also assert the number of peers is correct in case the original peer reconnected with a new id

We should also assert the number of peers is correct in case the original peer reconnected with a new id
johnny9 commented 2026-03-03 15:03:06 +00:00 (Migrated from github.com)

Related to #507

Related to #507
johnny9 (Migrated from github.com) requested changes 2026-03-03 17:04:30 +00:00
johnny9 (Migrated from github.com) commented 2026-03-03 17:04:23 +00:00

Lets patch this so it is configurable so that we can have bitcoind built for this test to use. You'll need to update the github workflow files to add this env variable.

Lets patch this so it is configurable so that we can have bitcoind built for this test to use. You'll need to update the github workflow files to add this env variable.
johnny9 (Migrated from github.com) reviewed 2026-03-04 14:44:17 +00:00
johnny9 (Migrated from github.com) left a comment

Everything looks good to me. Just need to add the new test to the github workflow file now.

Everything looks good to me. Just need to add the new test to the github workflow file now.
johnny9 (Migrated from github.com) approved these changes 2026-03-05 01:01:05 +00:00
johnny9 (Migrated from github.com) left a comment

tACK 684c7f203dd9b71690f3b149cd9dafc0254d5c83

tACK 684c7f203dd9b71690f3b149cd9dafc0254d5c83
hebasto commented 2026-03-05 12:10:56 +00:00 (Migrated from github.com)

Please rebase.

Please rebase.
johnny9 (Migrated from github.com) approved these changes 2026-03-10 13:34:07 +00:00
johnny9 (Migrated from github.com) left a comment

tACK 3fd99d0005

ran test on macos

tACK 3fd99d00058ecc21b9ad46f58cb117de36dbea2a ran test on macos
Sign in to join this conversation.
No description provided.