[rpc] require package to be a tree in submitpackage

This commit is contained in:
glozow
2023-05-11 17:54:39 +01:00
parent e32ba1599c
commit 5b9087a9a7
2 changed files with 5 additions and 1 deletions

View File

@ -335,7 +335,7 @@ class RPCPackagesTest(BitcoinTestFramework):
self.log.info("Submitpackage only allows packages of 1 child with its parents")
# Chain of 3 transactions has too many generations
chain_hex = [t["hex"] for t in self.wallet.create_self_transfer_chain(chain_length=25)]
assert_raises_rpc_error(-25, "not-child-with-parents", node.submitpackage, chain_hex)
assert_raises_rpc_error(-25, "package topology disallowed", node.submitpackage, chain_hex)
if __name__ == "__main__":