aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2022-08-01 20:01:35 -0400
committerAndrew Chow <github@achow101.com>2022-08-29 12:41:50 -0400
commit3405f3eed5cf841b23a569b64a376c2e5b5026cd (patch)
tree41cf004d7f5a6b0e8b6285041f4e8f41f73597d7 /test/functional/test_framework
parent10d91c5abe9ed7dcc237c9d52c588e7d26e162a4 (diff)
downloadbitcoin-3405f3eed5cf841b23a569b64a376c2e5b5026cd.tar.xz
test: Test that an unconfirmed not-in-mempool chain is rebroadcast
The test checks that parent txs are broadcast before child txs. The previous behavior is that the rebroadcasting would simply iterate mapWallet. As mapWallet is a std::unsorted_map, the child can sometimes come before the parent and thus be rebroadcast in the wrong order and fail the test.
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-xtest/functional/test_framework/messages.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py
index 4e757b64ca..8a928a1e50 100755
--- a/test/functional/test_framework/messages.py
+++ b/test/functional/test_framework/messages.py
@@ -71,6 +71,7 @@ DEFAULT_DESCENDANT_LIMIT = 25 # default max number of in-mempool descendants
# Default setting for -datacarriersize. 80 bytes of data, +1 for OP_RETURN, +2 for the pushdata opcodes.
MAX_OP_RETURN_RELAY = 83
+DEFAULT_MEMPOOL_EXPIRY_HOURS = 336 # hours
def sha256(s):
return hashlib.sha256(s).digest()