Merge ElementsProject/elements#1028: test: fix surjectionproof overflow functional test for new RPC changes

c0936ba2a3 test: fix surjectionproof overflow functional test for new RPC changes (Andrew Poelstra)

Pull request description:

  This fixes an undetected merge conflict between #1014 and #900.

ACKs for top commit:
  gwillen:
    utACK c0936ba
  psgreco:
    UTACK c0936ba2a3

Tree-SHA512: a39d98db91d92f7e0e739e06d7a1bb13814d2bc7751cb6105a759af04ed0d61d206d1650f5e4e087feaeafcf1c482587b05b66d9cc497bc594a45df6bf23c07a
This commit is contained in:
Andrew Poelstra 2021-08-31 18:38:09 +00:00
commit 338ccc49e8
No known key found for this signature in database
GPG key ID: C588D63CE41B97C1

View file

@ -985,11 +985,11 @@ class RawTransactionsTest(BitcoinTestFramework):
# ...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'])