Skip to content

Intermittent failure of p2p_private_broadcast.py #34631

Closed

Description

@sedited

Not sure if this is from the original PR or #34329

Logs:
455/455 - p2p_private_broadcast.py failed, Duration: 84 s                              

stdout:
2026-02-20T08:16:52.932185Z TestFramework (INFO): PRNG seed is: 5474091116900090230
2026-02-20T08:16:52.932503Z TestFramework (INFO): Initializing test directory /tmp/merging_clang_build_Debug/test_runner_₿_🏃_20260220_091548/p2p_private_broadcast_74
2026-02-20T08:16:58.196783Z TestFramework (INFO): Created txid=2db3a22f9370eb32f110597882acebef1c76cf319837bac69b829917730d2349: for basic test
2026-02-20T08:16:58.196839Z TestFramework (INFO): Created txid=1586df3125397f95009109f8978a656d966eba39b36bb7552d0cfa703e58d84a: for broadcast with dependency in mempool + rebroadcast
2026-02-20T08:16:58.196858Z TestFramework (INFO): Created txid=f4580414da8808a9772291d522281ba7d3c5d4ad480cde6580b5363590ec79d2: for broadcast with dependency not in mempool
2026-02-20T08:17:13.762676Z TestFramework (INFO): Outbound connection i=10: the private broadcast target received and further relayed the transaction
2026-02-20T08:17:13.762865Z TestFramework (INFO): Basic: ok: outbound connection i=11 is private broadcast of txid=2db3a22f9370eb32f110597882acebef1c76cf319837bac69b829917730d2349
2026-02-20T08:17:13.762948Z TestFramework (INFO): Basic: ok: outbound connection i=12 is private broadcast of txid=2db3a22f9370eb32f110597882acebef1c76cf319837bac69b829917730d2349
2026-02-20T08:17:13.764109Z TestFramework (INFO): Resending the same transaction via RPC again (it is not in the mempool yet)
2026-02-20T08:17:13.765058Z TestFramework (INFO): Sending a malleated transaction with an invalid witness via RPC
2026-02-20T08:17:13.766052Z TestFramework (INFO): Checking that the transaction is not in the originator node's mempool
2026-02-20T08:17:13.766348Z TestFramework (INFO): Sending INV and waiting for GETDATA from node
2026-02-20T08:17:13.817260Z TestFramework (INFO): Waiting for normal broadcast to another peer
2026-02-20T08:17:16.720760Z TestFramework (INFO): Checking getprivatebroadcastinfo no longer reports the transaction after it is received back
2026-02-20T08:17:16.721406Z TestFramework (INFO): Checking abortprivatebroadcast removes a pending private-broadcast transaction
2026-02-20T08:17:16.723782Z TestFramework (INFO): Checking abortprivatebroadcast fails for non-existent transaction
2026-02-20T08:17:16.724255Z TestFramework (INFO): Sending a transaction that is already in the mempool
2026-02-20T08:17:16.925456Z TestFramework (INFO): Broadcast of mempool transaction: ok: outbound connection i=13 is private broadcast of txid=2db3a22f9370eb32f110597882acebef1c76cf319837bac69b829917730d2349
2026-02-20T08:17:16.975699Z TestFramework (INFO): Broadcast of mempool transaction: ok: outbound connection i=14 is private broadcast of txid=2db3a22f9370eb32f110597882acebef1c76cf319837bac69b829917730d2349
2026-02-20T08:17:17.075987Z TestFramework (INFO): Broadcast of mempool transaction: ok: outbound connection i=15 is private broadcast of txid=2db3a22f9370eb32f110597882acebef1c76cf319837bac69b829917730d2349
2026-02-20T08:17:17.076719Z TestFramework (INFO): Sending a transaction with a dependency in the mempool
2026-02-20T08:17:17.228560Z TestFramework (INFO): Dependency in mempool: ok: outbound connection i=16 is private broadcast of txid=1586df3125397f95009109f8978a656d966eba39b36bb7552d0cfa703e58d84a
2026-02-20T08:17:17.278785Z TestFramework (INFO): Dependency in mempool: ok: outbound connection i=17 is private broadcast of txid=1586df3125397f95009109f8978a656d966eba39b36bb7552d0cfa703e58d84a
2026-02-20T08:17:17.328990Z TestFramework (INFO): Dependency in mempool: ok: outbound connection i=18 is private broadcast of txid=1586df3125397f95009109f8978a656d966eba39b36bb7552d0cfa703e58d84a
2026-02-20T08:17:17.329712Z TestFramework (INFO): Sending a transaction with a dependency not in the mempool (should be rejected)
2026-02-20T08:17:17.331228Z TestFramework (INFO): Checking that rebroadcast works
2026-02-20T08:18:17.331354Z TestFramework (ERROR): Unexpected exception:
Traceback (most recent call last):
  File "/home/user/bitcoin/test/functional/test_framework/test_framework.py", line 142, in main
    self.run_test()
  File "/home/user/bitcoin/clang_build/Debug/test/functional/p2p_private_broadcast.py", line 429, in run_test
    with tx_originator.busy_wait_for_debug_log(expected_msgs=[rebroadcast_msg.encode()]):
  File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__
    next(self.gen)
  File "/home/user/bitcoin/test/functional/test_framework/test_node.py", line 616, in busy_wait_for_debug_log
    self._raise_assertion_error(f'Expected message(s) {remaining_expected!s} '
  File "/home/user/bitcoin/test/functional/test_framework/test_node.py", line 229, in _raise_assertion_error
    raise AssertionError(self._node_msg(msg))
AssertionError: [node 0] Expected message(s) [b'Reattempting broadcast of stale txid=1586df3125397f95009109f8978a656d966eba39b36bb7552d0cfa703e58d84a'] not found in log:

 - 2026-02-20T08:17:17.331379Z [http] [httpserver.cpp:233] [http_request_cb] [http] Received a POST request for / from 127.0.0.1:36796
 - 2026-02-20T08:17:17.331431Z [http_pool_1] [rpc/request.cpp:243] [parse] [rpc] ThreadRPCServer method=setmocktime user=__cookie__
 - 2026-02-20T08:17:17.331568Z (mocktime: 2026-02-20T08:37:17Z) [http] [httpserver.cpp:233] [http_request_cb] [http] Received a POST request for / from 127.0.0.1:36796
 - 2026-02-20T08:17:17.331669Z (mocktime: 2026-02-20T08:37:17Z) [http_pool_0] [rpc/request.cpp:243] [parse] [rpc] ThreadRPCServer method=mockscheduler user=__cookie__
 - 2026-02-20T08:17:17.331823Z (mocktime: 2026-02-20T08:37:17Z) [scheduler] [net.cpp:2438] [StartExtraBlockRelayPeers] [net] enabling extra block-relay-only peers
 - 2026-02-20T08:17:17.333250Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=2
 - 2026-02-20T08:17:17.333389Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=2
 - 2026-02-20T08:17:17.333462Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=2 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.333508Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=19
 - 2026-02-20T08:17:17.333530Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5012] [ProcessMessage] [privatebroadcast] Got a PONG (the transaction will probably reach the network), marking for disconnect, peer=19
 - 2026-02-20T08:17:17.333574Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=7
 - 2026-02-20T08:17:17.333613Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->m_sock_mutex, net.cpp:2138 started
 - 2026-02-20T08:17:17.333631Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->m_sock_mutex, net.cpp:2138 completed (0μs)
 - 2026-02-20T08:17:17.333648Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending inv (37 bytes) peer=7
 - 2026-02-20T08:17:17.333662Z (mocktime: 2026-02-20T08:37:17Z) [net] [net.cpp:558] [CloseSocketDisconnect] [net] Resetting socket for peer=19
 - 2026-02-20T08:17:17.333687Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=7
 - 2026-02-20T08:17:17.333749Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=7 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.333802Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=1
 - 2026-02-20T08:17:17.333900Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=1
 - 2026-02-20T08:17:17.333936Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->cs_vSend, net.cpp:2072 started
 - 2026-02-20T08:17:17.333953Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->cs_vSend, net.cpp:2072 completed (0μs)
 - 2026-02-20T08:17:17.333964Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=1 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.334016Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=6
 - 2026-02-20T08:17:17.334055Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->m_sock_mutex, net.cpp:2138 started
 - 2026-02-20T08:17:17.334067Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->m_sock_mutex, net.cpp:2138 completed (0μs)
 - 2026-02-20T08:17:17.334078Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=6
 - 2026-02-20T08:17:17.334150Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=6 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.334192Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=9
 - 2026-02-20T08:17:17.334265Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=9
 - 2026-02-20T08:17:17.334340Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=9 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.334378Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=3
 - 2026-02-20T08:17:17.334470Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=3
 - 2026-02-20T08:17:17.334526Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->m_sock_mutex, net.cpp:2138 started
 - 2026-02-20T08:17:17.334542Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=3 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.334551Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->m_sock_mutex, net.cpp:2138 completed (0μs)
 - 2026-02-20T08:17:17.334568Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=0
 - 2026-02-20T08:17:17.334609Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->cs_vSend, net.cpp:2072 started
 - 2026-02-20T08:17:17.334622Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->cs_vSend, net.cpp:2072 completed (4μs)
 - 2026-02-20T08:17:17.334656Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=0
 - 2026-02-20T08:17:17.334719Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=0 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.334749Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=5
 - 2026-02-20T08:17:17.334830Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=5
 - 2026-02-20T08:17:17.334893Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=5 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.334941Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=8
 - 2026-02-20T08:17:17.334972Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->m_sock_mutex, net.cpp:2138 started
 - 2026-02-20T08:17:17.334983Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->m_sock_mutex, net.cpp:2138 completed (0μs)
 - 2026-02-20T08:17:17.335000Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=8
 - 2026-02-20T08:17:17.335068Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=8 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.335110Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=4
 - 2026-02-20T08:17:17.335163Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->cs_vSend, net.cpp:2072 started
 - 2026-02-20T08:17:17.335177Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention pnode->cs_vSend, net.cpp:2072 completed (0μs)
 - 2026-02-20T08:17:17.335190Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=4
 - 2026-02-20T08:17:17.335247Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5339] [ConsiderEviction] [net] sending getheaders to outbound peer=4 to verify chain work (current best known block:<none>, benchmark blockhash: 76b181cf5782e03af6adb8f990404168f05f9abd940e7a4e92a33e6044d1f6a5)
 - 2026-02-20T08:17:17.335294Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention cs_main, net_processing.cpp:1680 started
 - 2026-02-20T08:17:17.335304Z (mocktime: 2026-02-20T08:37:17Z) [net] [logging/timer.h:58] [Log] [lock] Enter: lock contention cs_main, net_processing.cpp:1680 completed (0μs)
 - 2026-02-20T08:17:17.335311Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=0
 - 2026-02-20T08:17:17.335335Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [logging/timer.h:58] [Log] [lock] Enter: lock contention cs_main, net_processing.cpp:5614 started
 - 2026-02-20T08:17:17.335343Z (mocktime: 2026-02-20T08:37:17Z) [net] [net_processing.cpp:1750] [FinalizeNode] [net] Cleared nodestate for peer=19
 - 2026-02-20T08:17:17.335351Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [logging/timer.h:58] [Log] [lock] Enter: lock contention cs_main, net_processing.cpp:5614 completed (0μs)
 - 2026-02-20T08:17:17.335403Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=3
 - 2026-02-20T08:17:17.335455Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=7
 - 2026-02-20T08:17:17.335481Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=5
 - 2026-02-20T08:17:17.335506Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=4
 - 2026-02-20T08:17:17.335532Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=2
 - 2026-02-20T08:17:17.335557Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=1
 - 2026-02-20T08:17:17.335583Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=8
 - 2026-02-20T08:17:17.335606Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=6
 - 2026-02-20T08:17:17.335632Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=9
 - 2026-02-20T08:17:17.335727Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: getdata (37 bytes) peer=7
 - 2026-02-20T08:17:17.335735Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:4225] [ProcessMessage] [net] received getdata (1 invsz) peer=7
 - 2026-02-20T08:17:17.335744Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:4228] [ProcessMessage] [net] received getdata for: wtx 300386bebae3d16bdf431a264212a900e15716f784d3888fd800b583d235a389 peer=7
 - 2026-02-20T08:17:17.335777Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending tx (133 bytes) peer=7
 - 2026-02-20T08:17:17.342789Z (mocktime: 2026-02-20T08:37:17Z) [scheduler] [txmempool.cpp:435] [check] [mempool] Checking mempool with 1 transactions and 1 inputs
 - 2026-02-20T08:17:17.342847Z (mocktime: 2026-02-20T08:37:17Z) [scheduler] [net_processing.cpp:1663] [ReattemptPrivateBroadcast] [privatebroadcast] Giving up broadcast attempts for txid=2db3a22f9370eb32f110597882acebef1c76cf319837bac69b829917730d2349 wtxid=300386bebae3d16bdf431a264212a900e15716f784d3888fd800b583d235a389: txn-already-in-mempool
 - 2026-02-20T08:17:17.343326Z (mocktime: 2026-02-20T08:37:17Z) [scheduler] [net.cpp:2401] [DumpAddresses] [net] Flushed 100 addresses to peers.dat  0ms
 - 2026-02-20T08:17:17.603367Z (mocktime: 2026-02-20T08:37:17Z) [opencon] [addrman.cpp:786] [Select_] [addrman] Selected [80::1]:8333 from new
 - 2026-02-20T08:17:17.603457Z (mocktime: 2026-02-20T08:37:17Z) [opencon] [net.cpp:396] [ConnectNode] [net] trying v1 connection [80::1]:8333 lastseen=0.3hrs
 - 2026-02-20T08:17:17.603487Z (mocktime: 2026-02-20T08:37:17Z) [opencon] [net.cpp:486] [ConnectNode] [proxy] Using proxy: 127.0.0.1:11890 to connect to [80::1]:8333
 - 2026-02-20T08:17:17.603607Z (mocktime: 2026-02-20T08:37:17Z) [opencon] [netbase.cpp:396] [Socks5] [net] SOCKS5 connecting 80::1
 - 2026-02-20T08:17:17.603898Z (mocktime: 2026-02-20T08:37:17Z) [opencon] [netbase.cpp:435] [Socks5] [proxy] SOCKS5 sending proxy authentication b498d4efaac06cd7-20:b498d4efaac06cd7-20
 - 2026-02-20T08:17:17.603975Z (mocktime: 2026-02-20T08:37:17Z) [opencon] [netbase.cpp:514] [Socks5] [net] SOCKS5 connected 80::1
 - 2026-02-20T08:17:17.604089Z (mocktime: 2026-02-20T08:37:17Z) [opencon] [net.cpp:4006] [CNode] [net] Added connection peer=20
 - 2026-02-20T08:17:17.636870Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending version (114 bytes) peer=20
 - 2026-02-20T08:17:17.636987Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:1595] [PushNodeVersion] [net] send version message: version=70016, blocks=200, txrelay=0, peer=20
 - 2026-02-20T08:17:17.655393Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: version (111 bytes) peer=20
 - 2026-02-20T08:17:17.655440Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3702] [ProcessMessage] [net] receive version message: /python-p2p-tester:0.0.3/: version 70016, blocks=-1, us=0.0.0.0:0, txrelay=1, peer=20
 - 2026-02-20T08:17:17.655453Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending wtxidrelay (0 bytes) peer=20
 - 2026-02-20T08:17:17.655510Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending sendaddrv2 (0 bytes) peer=20
 - 2026-02-20T08:17:17.655559Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending verack (0 bytes) peer=20
 - 2026-02-20T08:17:17.655679Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [addrman.cpp:676] [Good_] [addrman] Moved [80::1]:8333 to tried[35][47]
 - 2026-02-20T08:17:17.655695Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [node/timeoffsets.cpp:31] [Add] [net] Added time offset -1200s, total samples 11
 - 2026-02-20T08:17:17.655879Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: wtxidrelay (0 bytes) peer=20
 - 2026-02-20T08:17:17.656325Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: verack (0 bytes) peer=20
 - 2026-02-20T08:17:17.656342Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3842] [ProcessMessage] New block-relay-only peer connected: transport: v1, version: 70016, blocks=-1 peer=20
 - 2026-02-20T08:17:17.656359Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending sendcmpct (9 bytes) peer=20
 - 2026-02-20T08:17:17.656428Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending ping (8 bytes) peer=20
 - 2026-02-20T08:17:17.656487Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net.cpp:4074] [PushMessage] [net] sending getheaders (645 bytes) peer=20
 - 2026-02-20T08:17:17.656544Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5811] [SendMessages] [net] initial getheaders (199) to peer=20 (startheight:-1)
 - 2026-02-20T08:17:17.697564Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:3582] [ProcessMessage] [net] received: pong (8 bytes) peer=20
 - 2026-02-20T08:17:17.898187Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [logging/timer.h:58] [Log] [lock] Enter: lock contention connman.m_nodes_mutex, net.h:1812 started
 - 2026-02-20T08:17:17.898212Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [logging/timer.h:58] [Log] [lock] Enter: lock contention connman.m_nodes_mutex, net.h:1812 completed (1μs)
 - 2026-02-20T08:17:21.077693Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:418] [CreateIfNotCreatedAlready] [i2p] Creating persistent I2P SAM session 76611381d8 with 127.0.0.1:1
 - 2026-02-20T08:17:21.077810Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [netbase.cpp:584] [LogConnectFailure] connect() to 127.0.0.1:1 failed after wait: Connection refused (111)
 - 2026-02-20T08:17:21.077857Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:152] [Listen] [error] Couldn't listen: Cannot connect to 127.0.0.1:1
 - 2026-02-20T08:17:29.077977Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:418] [CreateIfNotCreatedAlready] [i2p] Creating persistent I2P SAM session ad468d1474 with 127.0.0.1:1
 - 2026-02-20T08:17:29.078063Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [netbase.cpp:584] [LogConnectFailure] connect() to 127.0.0.1:1 failed after wait: Connection refused (111)
 - 2026-02-20T08:17:29.078100Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:152] [Listen] [error] Couldn't listen: Cannot connect to 127.0.0.1:1
 - 2026-02-20T08:17:38.078194Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:418] [CreateIfNotCreatedAlready] [i2p] Creating persistent I2P SAM session 857489dee6 with 127.0.0.1:1
 - 2026-02-20T08:17:38.078258Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [netbase.cpp:584] [LogConnectFailure] connect() to 127.0.0.1:1 failed after wait: Connection refused (111)
 - 2026-02-20T08:17:38.078285Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:152] [Listen] [error] Couldn't listen: Cannot connect to 127.0.0.1:1
 - 2026-02-20T08:17:48.078396Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:418] [CreateIfNotCreatedAlready] [i2p] Creating persistent I2P SAM session 583b195c09 with 127.0.0.1:1
 - 2026-02-20T08:17:48.078489Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [netbase.cpp:584] [LogConnectFailure] connect() to 127.0.0.1:1 failed after wait: Connection refused (111)
 - 2026-02-20T08:17:48.078525Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:152] [Listen] [error] Couldn't listen: Cannot connect to 127.0.0.1:1
 - 2026-02-20T08:17:59.078597Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:418] [CreateIfNotCreatedAlready] [i2p] Creating persistent I2P SAM session d5af5b3c3c with 127.0.0.1:1
 - 2026-02-20T08:17:59.078672Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [netbase.cpp:584] [LogConnectFailure] connect() to 127.0.0.1:1 failed after wait: Connection refused (111)
 - 2026-02-20T08:17:59.078701Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:152] [Listen] [error] Couldn't listen: Cannot connect to 127.0.0.1:1
 - 2026-02-20T08:18:02.331914Z (mocktime: 2026-02-20T08:37:17Z) [scheduler] [net_processing.cpp:5393] [operator()] [net] keeping block-relay-only peer=20 chosen for eviction (connect time: 1771576637, blocks_in_flight: 0)
 - 2026-02-20T08:18:11.078881Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:418] [CreateIfNotCreatedAlready] [i2p] Creating persistent I2P SAM session 3d08732ffb with 127.0.0.1:1
 - 2026-02-20T08:18:11.079007Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [netbase.cpp:584] [LogConnectFailure] connect() to 127.0.0.1:1 failed after wait: Connection refused (111)
 - 2026-02-20T08:18:11.079052Z (mocktime: 2026-02-20T08:37:17Z) [i2paccept] [i2p.cpp:152] [Listen] [error] Couldn't listen: Cannot connect to 127.0.0.1:1


2026-02-20T08:18:17.391487Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.

Activity

  1. fanquake commented on Feb 20, 2026

    @fanquake
    Member
  2. added this to the 31.0 milestone on Feb 20, 2026
  3. maflcko commented on Feb 20, 2026

    @maflcko
    Member

    I guess that one is different from #34387

  4. maflcko commented on Feb 20, 2026

    @maflcko
    Member

    I was thinking this is just a assert_debug_log timeout issue, but the traceback shows tx_originator.busy_wait_for_debug_log(expected_msgs=[rebroadcast_msg.encode()]), so this must be somethign else.

  5. maflcko commented on Feb 20, 2026

    @maflcko
    Member

    There is also a third failure: https://github.com/bitcoin/bitcoin/actions/runs/22211364381/job/64246250770?pr=34628#step:9:8320:

    p2p_private_broadcast.py", line 432, in run_test
                                           self.check_broadcasts("Rebroadcast", txs[1], 1, skip_destinations)
                                         File "/home/admin/actions-runner/_work/bitcoin/bitcoin/ci_build/test/functional/p2p_private_broadcast.py", line 284, in check_broadcasts
                                           assert_equal(peer.message_count, {
                                         File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/util.py", line 78, in assert_equal
                                           raise AssertionError("not(%s == %s)\n  in particular not(%s == %s)" % (thing1, thing2, d1, d2))
                                       AssertionError: not(defaultdict(<class 'int'>, {'version': 1, 'verack': 1, 'inv': 1}) == {'version': 1, 'verack': 1, 'inv': 1, 'tx': 1, 'ping': 1})
                                         in particular not({} == {'ping': 1, 'tx': 1})
    
  6. vasild commented on Feb 21, 2026

    @vasild
    Contributor

    There is also a third failure ... not({} == {'ping': 1, 'tx': 1})

    This one is fixed in #34646.

    I am not sure about the issue from the OP. There is some blocks-only connection involved which means it might be fixed by #34410. Do you have the full log?

  7. achow101 commented on Feb 23, 2026

    @achow101
    Member

    It looks like that failure in the OP is because txs[1] makes it into the mempool during the wait_for_debug_log:

     - 2026-02-20T08:17:17.335744Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:4228] [ProcessMessage] [net] received getdata for: wtx 300386bebae3d16bdf431a264212a900e15716f784d3888fd800b583d235a389 peer=7
     - 2026-02-20T08:17:17.342847Z (mocktime: 2026-02-20T08:37:17Z) [scheduler] [net_processing.cpp:1663] [ReattemptPrivateBroadcast] [privatebroadcast] Giving up broadcast attempts for txid=2db3a22f9370eb32f110597882acebef1c76cf319837bac69b829917730d2349 wtxid=300386bebae3d16bdf431a264212a900e15716f784d3888fd800b583d235a389: txn-already-in-mempool
    

    AFAICT, node0 and node1 are connected to each other, so this test is racing against normal tx relay.

  8. vasild commented on Feb 24, 2026

    @vasild
    Contributor

    @achow101, thanks for looking into this. txid=2db3... wtxid=3003... is tx[0]. node0 and node1 are indeed connected but node0 has sent tx[0] to node1 and thus node1 will not send it to node0 because it knows that node0 is aware of it. The test waits until tx[0] comes back to node0's mempool before it proceeds to the rebroadcast section (which failed in the logs in the OP).

    I guess that what is happening is that one of the 3 connections fired by the newly added abort rpc tests picks up tx[1] txid=1586... and broadcasts it after the mocktime +20 min advance:

     - 2026-02-20T08:17:17.333530Z (mocktime: 2026-02-20T08:37:17Z) [msghand] [net_processing.cpp:5012] [ProcessMessage] [privatebroadcast] Got a PONG (the transaction will probably reach the network), marking for disconnect, peer=19
    

    So tx[1] is not picked for broadcast because it is not considered stale because we just sent it to somebody (peer=19) and thus the failure in the OP.

    To confirm this I would like to look at the full log of the failure, not just the snippet in the OP to answer those two questions:

    1. is that connection to peer=19 broadcasting tx[1] txid=1586...? (presumably yes)
    2. is that connection peer=19 fired by the abort rpc tests? (presumably yes)

    If "yes" to both, then this is fixed by #34646.

    @sedited Do you have the full log of the failure from the OP?

  9. maflcko commented on Feb 27, 2026

    @maflcko
    Member

    I guess there is not much that can be done without the full logs. So maybe this can be closed?

  10. sedited commented on Mar 2, 2026

    @sedited
    ContributorAuthor

    So maybe this can be closed?

    Reading through the logs posted here and the patch again, I think this is fixed.

    I guess there is not much that can be done without the full logs.

    Sorry, I was under the impression that the actions job gets archived somewhere, but I was unable to find it again.

  11. maflcko commented on Mar 2, 2026

    @maflcko
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions