Skip to content

Commit faf251d

Browse files
promagMarcoFalke
authored andcommitted
test: gettxoutproof duplicate txid
1 parent faf5eb4 commit faf251d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/rpc_txoutproof.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def run_test(self):
7979
assert_raises_rpc_error(-5, "Not all transactions found in specified or retrieved block", self.nodes[0].gettxoutproof, [txid1, txid3])
8080
# Test empty list
8181
assert_raises_rpc_error(-5, "Transaction not yet in block", self.nodes[0].gettxoutproof, [])
82+
# Test duplicate txid
83+
assert_raises_rpc_error(-8, 'Invalid parameter, duplicated txid', self.nodes[0].gettxoutproof, [txid1, txid1])
8284

8385
# Now we'll try tweaking a proof.
8486
proof = self.nodes[1].gettxoutproof([txid1, txid2])

0 commit comments

Comments
 (0)