mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
chain_topology: remove unneeded struct outgoing_tx topo pointer.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
cc60735aee
commit
3332cd6395
@ -236,7 +236,7 @@ static void broadcast_done(struct bitcoind *bitcoind,
|
|||||||
} else {
|
} else {
|
||||||
/* For continual rebroadcasting, until peer freed. */
|
/* For continual rebroadcasting, until peer freed. */
|
||||||
tal_steal(otx->peer, otx);
|
tal_steal(otx->peer, otx);
|
||||||
list_add_tail(&otx->topo->outgoing_txs, &otx->list);
|
list_add_tail(&bitcoind->ld->topology->outgoing_txs, &otx->list);
|
||||||
tal_add_destructor(otx, destroy_outgoing_tx);
|
tal_add_destructor(otx, destroy_outgoing_tx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -254,7 +254,6 @@ void broadcast_tx(struct chain_topology *topo,
|
|||||||
bitcoin_txid(tx, &otx->txid);
|
bitcoin_txid(tx, &otx->txid);
|
||||||
otx->hextx = tal_hex(otx, rawtx);
|
otx->hextx = tal_hex(otx, rawtx);
|
||||||
otx->failed = failed;
|
otx->failed = failed;
|
||||||
otx->topo = topo;
|
|
||||||
tal_free(rawtx);
|
tal_free(rawtx);
|
||||||
tal_add_destructor2(peer, clear_otx_peer, otx);
|
tal_add_destructor2(peer, clear_otx_peer, otx);
|
||||||
|
|
||||||
|
@ -32,8 +32,6 @@ struct outgoing_tx {
|
|||||||
const char *hextx;
|
const char *hextx;
|
||||||
struct bitcoin_txid txid;
|
struct bitcoin_txid txid;
|
||||||
void (*failed)(struct peer *peer, int exitstatus, const char *err);
|
void (*failed)(struct peer *peer, int exitstatus, const char *err);
|
||||||
/* FIXME: Remove this. */
|
|
||||||
struct chain_topology *topo;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct block {
|
struct block {
|
||||||
|
Loading…
Reference in New Issue
Block a user