plugins/bcli.c: sendrawtransaction now has a required allowhighfees argument.

Changelog-Deprecated: plugin: `bcli` replacements should note that `sendrawtransaction` now has a second required Boolean argument, `allowhighfees`, which if `true`, means ignore any fee limits and just broadcast the transaction. Use `--deprecated-apis` to use older `bcli` replacement plugins that only support a single argument.
This commit is contained in:
ZmnSCPxj jxPCSnmZ
2020-09-08 12:52:41 +09:30
committed by Rusty Russell
parent 12c9b27838
commit ee276bcb86
8 changed files with 162 additions and 17 deletions

View File

@@ -1279,7 +1279,7 @@ def test_bcli(node_factory, bitcoind, chainparams):
"vout": fc['outnum']
})['amount'] is None)
resp = l1.rpc.call("sendrawtransaction", {"tx": "dummy"})
resp = l1.rpc.call("sendrawtransaction", {"tx": "dummy", "allowhighfees": False})
assert not resp["success"] and "decode failed" in resp["errmsg"]