diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-08-01 20:01:35 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2022-08-29 12:41:50 -0400 |
commit | 3405f3eed5cf841b23a569b64a376c2e5b5026cd (patch) | |
tree | 41cf004d7f5a6b0e8b6285041f4e8f41f73597d7 /test/functional/mempool_expiry.py | |
parent | 10d91c5abe9ed7dcc237c9d52c588e7d26e162a4 (diff) | |
download | bitcoin-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/mempool_expiry.py')
-rwxr-xr-x | test/functional/mempool_expiry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/mempool_expiry.py b/test/functional/mempool_expiry.py index 47ae0c762b..21721177e6 100755 --- a/test/functional/mempool_expiry.py +++ b/test/functional/mempool_expiry.py @@ -13,6 +13,7 @@ definable expiry timeout via the '-mempoolexpiry=<n>' command line argument from datetime import timedelta from test_framework.blocktools import COINBASE_MATURITY +from test_framework.messages import DEFAULT_MEMPOOL_EXPIRY_HOURS from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, @@ -20,7 +21,6 @@ from test_framework.util import ( ) from test_framework.wallet import MiniWallet -DEFAULT_MEMPOOL_EXPIRY_HOURS = 336 # hours CUSTOM_MEMPOOL_EXPIRY = 10 # hours |