mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
test: gettxoutproof duplicate txid
This commit is contained in:
parent
faf5eb45c4
commit
faf251d854
1 changed files with 2 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue