Skip to content

Commit

Permalink
test: fix surjectionproof overflow functional test for new RPC changes
Browse files Browse the repository at this point in the history
This fixes an undetected merge conflict between ElementsProject#1014 and ElementsProject#900.
  • Loading branch information
apoelstra committed Aug 31, 2021
1 parent d973e11 commit c0936ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/rpc_fundrawtransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,11 +985,11 @@ def test_surjectionproof_many_inputs(self):

# ...and try to send them all in one transaction
# This should fail but we should not see an assertation failure.
rawtx = recipient.createrawtransaction([], {wallet.getnewaddress(): 49.99})
rawtx = recipient.createrawtransaction([], [{wallet.getnewaddress(): 49.99}])
assert_raises_rpc_error(-4, "Unable to blind the transaction properly. This should not happen.", recipient.fundrawtransaction, rawtx)

# Try to send them across two transactions. This should succeed.
rawtx = recipient.createrawtransaction([], {wallet.getnewaddress(): 24.99})
rawtx = recipient.createrawtransaction([], [{wallet.getnewaddress(): 24.99}])
for i in range(0, 2):
fundedtx = recipient.fundrawtransaction(rawtx)
blindedtx = recipient.blindrawtransaction(fundedtx['hex'])
Expand Down

0 comments on commit c0936ba

Please sign in to comment.