diff options
author | merge-script <fanquake@gmail.com> | 2024-07-17 16:11:08 +0100 |
---|---|---|
committer | merge-script <fanquake@gmail.com> | 2024-07-17 16:11:08 +0100 |
commit | 5f5862f3820a7618522970e32d4011a57a5cc87b (patch) | |
tree | fff0afd75094323db9a227d41b247d5ebc2367e5 /src/wallet/coincontrol.h | |
parent | bfce85d135cb12b9d72852312a1b590301d4caff (diff) | |
parent | c322bddd08ed1f1f7f0c39768b659dd62d5e2dd5 (diff) |
Merge bitcoin/bitcoin#30468: test: bump mocktime only after node has received and sent bytes
c322bddd08ed1f1f7f0c39768b659dd62d5e2dd5 test: bump mocktime after node has received and sent bytes (stratospher)
Pull request description:
Fixes an intermittent failure for `p2p_v2_misbehaving.py` reported in https://github.com/bitcoin/bitcoin/pull/30420#discussion_r1680462164.
A [different error message](https://github.com/bitcoin/bitcoin/blob/262260ce1e919613ba60194a5861b0b0a51dfe01/src/net.cpp#L1970) `"socket no message in first %i seconds"` will be displayed if `m_last_send=0` or if `m_last_recv is 0`. Fix this by:
1. mocktime bump is done after all the bytes are received. (`m_last_recv is not 0 now`)
2. wait until bytes are sent by `TestNode`/`bitcoind` (`m_last_send is not 0 now`)
See https://cirrus-ci.com/task/5359619151757312?logs=ci#L3935 for an example failure (I wasn't able to reproduce the intermittent failure locally but I think the fix is logical)
ACKs for top commit:
maflcko:
reACK c322bddd08ed1f1f7f0c39768b659dd62d5e2dd5
Tree-SHA512: 1c05524c2819041eb2001c2baf2c912d4f812a39347f784f212634e8c53131357a73116a46b4b7542bc7fc8c1370c4d36fc9898a2cbdb40bcee61105123c4a35
Diffstat (limited to 'src/wallet/coincontrol.h')
0 files changed, 0 insertions, 0 deletions