mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
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:
committed by
Rusty Russell
parent
1522eee528
commit
28030c3d6b
@@ -286,8 +286,7 @@ static void process_sendrawtx(struct bitcoin_cli *bcli)
|
||||
cb(bcli->bitcoind, *bcli->exitstatus, msg, bcli->cb_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 *),
|
||||
|
||||
@@ -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 *, \
|
||||
|
||||
@@ -193,7 +193,7 @@ static void broadcast_remainder(struct bitcoind *bitcoind,
|
||||
}
|
||||
|
||||
/* Broadcast next one. */
|
||||
bitcoind_sendrawtx(NULL, bitcoind, txs->txs[txs->cursor],
|
||||
bitcoind_sendrawtx(bitcoind, txs->txs[txs->cursor],
|
||||
broadcast_remainder, txs);
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ void broadcast_tx(struct chain_topology *topo,
|
||||
if (topo->dev_no_broadcast)
|
||||
broadcast_done(topo->bitcoind, 0, "dev_no_broadcast", otx);
|
||||
else
|
||||
bitcoind_sendrawtx(peer, topo->bitcoind, otx->hextx,
|
||||
bitcoind_sendrawtx(topo->bitcoind, otx->hextx,
|
||||
broadcast_done, otx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user