mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
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:
committed by
Rusty Russell
parent
12c9b27838
commit
ee276bcb86
@@ -74,6 +74,21 @@ void bitcoind_estimate_fees_(struct bitcoind *bitcoind,
|
||||
const u32 *), \
|
||||
(arg))
|
||||
|
||||
void bitcoind_sendrawtx_ahf_(struct bitcoind *bitcoind,
|
||||
const char *hextx,
|
||||
bool allowhighfees,
|
||||
void (*cb)(struct bitcoind *bitcoind,
|
||||
bool success, const char *msg, void *),
|
||||
void *arg);
|
||||
#define bitcoind_sendrawtx_ahf(bitcoind_, hextx, allowhighfees, cb, arg)\
|
||||
bitcoind_sendrawtx_ahf_((bitcoind_), (hextx), \
|
||||
(allowhighfees), \
|
||||
typesafe_cb_preargs(void, void *, \
|
||||
(cb), (arg), \
|
||||
struct bitcoind *, \
|
||||
bool, const char *),\
|
||||
(arg))
|
||||
|
||||
void bitcoind_sendrawtx_(struct bitcoind *bitcoind,
|
||||
const char *hextx,
|
||||
void (*cb)(struct bitcoind *bitcoind,
|
||||
|
||||
Reference in New Issue
Block a user