diff options
| author | João Barbosa <[email protected]> | 2020-08-31 16:14:50 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-09-09 11:27:35 +0200 |
| commit | faf251d854e3a670533ea3e9087e82c92f3ae533 (patch) | |
| tree | e72462eda1b0cf2e4db6238b46893b51339a72a7 | |
| parent | test: Test empty array in gettxoutproof (diff) | |
| download | discoin-faf251d854e3a670533ea3e9087e82c92f3ae533.tar.xz discoin-faf251d854e3a670533ea3e9087e82c92f3ae533.zip | |
test: gettxoutproof duplicate txid
| -rwxr-xr-x | test/functional/rpc_txoutproof.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/rpc_txoutproof.py b/test/functional/rpc_txoutproof.py index 1699d36cf..93fb62c5d 100755 --- a/test/functional/rpc_txoutproof.py +++ b/test/functional/rpc_txoutproof.py @@ -79,6 +79,8 @@ class MerkleBlockTest(BitcoinTestFramework): assert_raises_rpc_error(-5, "Not all transactions found in specified or retrieved block", self.nodes[0].gettxoutproof, [txid1, txid3]) # Test empty list assert_raises_rpc_error(-5, "Transaction not yet in block", self.nodes[0].gettxoutproof, []) + # Test duplicate txid + assert_raises_rpc_error(-8, 'Invalid parameter, duplicated txid', self.nodes[0].gettxoutproof, [txid1, txid1]) # Now we'll try tweaking a proof. proof = self.nodes[1].gettxoutproof([txid1, txid2]) |