bitcoind: peer argument to bitcoind_sendrawtx is unused

This was a bit misleading, and we were passing in NULL sometimes
anyway. Removed unused argument.
This commit is contained in:
Christian Decker
2017-06-20 15:34:43 +02:00
committed by Rusty Russell
parent 1522eee528
commit 28030c3d6b
3 changed files with 6 additions and 8 deletions

View File

@@ -52,15 +52,14 @@ void bitcoind_estimate_fee_(struct bitcoind *bitcoind,
u64), \
(arg))
void bitcoind_sendrawtx_(struct peer *peer,
struct bitcoind *bitcoind,
void bitcoind_sendrawtx_(struct bitcoind *bitcoind,
const char *hextx,
void (*cb)(struct bitcoind *bitcoind,
int exitstatus, const char *msg, void *),
void *arg);
#define bitcoind_sendrawtx(peer_, bitcoind_, hextx, cb, arg) \
bitcoind_sendrawtx_((peer_), (bitcoind_), (hextx), \
#define bitcoind_sendrawtx(bitcoind_, hextx, cb, arg) \
bitcoind_sendrawtx_((bitcoind_), (hextx), \
typesafe_cb_preargs(void, void *, \
(cb), (arg), \
struct bitcoind *, \