diff options
author | stickies-v <stickies-v@protonmail.com> | 2024-01-22 15:51:31 +0000 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2024-05-07 00:22:28 +0100 |
commit | 1a875d4049574730d4a53a1b68bd29b80ad96d38 (patch) | |
tree | 6b1d4ab798a00babfe2882a2a8a229792a630341 /test | |
parent | f9ece258aa868d0776caa86b94e71ba05a9b287e (diff) | |
download | bitcoin-1a875d4049574730d4a53a1b68bd29b80ad96d38.tar.xz |
rpc: update min package size error message in submitpackage
Currently, the only allowed package topology has a min size of 2.
Update the error message to reflect that.
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/rpc_packages.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/rpc_packages.py b/test/functional/rpc_packages.py index 76a08171b5..ab679eec9a 100755 --- a/test/functional/rpc_packages.py +++ b/test/functional/rpc_packages.py @@ -343,10 +343,10 @@ class RPCPackagesTest(BitcoinTestFramework): assert_raises_rpc_error(-25, "package topology disallowed", node.submitpackage, chain_hex) assert_equal(legacy_pool, node.getrawmempool()) - assert_raises_rpc_error(-8, f"Array must contain between 1 and {MAX_PACKAGE_COUNT} transactions.", node.submitpackage, []) - assert_raises_rpc_error(-25, "package topology disallowed", node.submitpackage, [chain_hex[0]] * 1) + assert_raises_rpc_error(-8, f"Array must contain between 2 and {MAX_PACKAGE_COUNT} transactions.", node.submitpackage, []) + assert_raises_rpc_error(-8, f"Array must contain between 2 and {MAX_PACKAGE_COUNT} transactions.", node.submitpackage, [chain_hex[0]] * 1) assert_raises_rpc_error( - -8, f"Array must contain between 1 and {MAX_PACKAGE_COUNT} transactions.", + -8, f"Array must contain between 2 and {MAX_PACKAGE_COUNT} transactions.", node.submitpackage, [chain_hex[0]] * (MAX_PACKAGE_COUNT + 1) ) |