mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
wallet: Annotate only the funding output instead of the whole tx
This commit is contained in:
parent
33bb4f7f58
commit
af53e3494b
@ -1018,8 +1018,8 @@ static enum watch_result funding_depth_cb(struct lightningd *ld,
|
|||||||
if ((min_depth_reached && !channel->scid) || (depth && channel->scid)) {
|
if ((min_depth_reached && !channel->scid) || (depth && channel->scid)) {
|
||||||
struct txlocator *loc;
|
struct txlocator *loc;
|
||||||
|
|
||||||
wallet_transaction_annotate(ld->wallet, txid,
|
wallet_annotate_txout(ld->wallet, txid, channel->funding_outnum,
|
||||||
TX_CHANNEL_FUNDING, channel->dbid);
|
TX_CHANNEL_FUNDING, channel->dbid);
|
||||||
loc = wallet_transaction_locate(tmpctx, ld->wallet, txid);
|
loc = wallet_transaction_locate(tmpctx, ld->wallet, txid);
|
||||||
if (!mk_short_channel_id(&scid,
|
if (!mk_short_channel_id(&scid,
|
||||||
loc->blkheight, loc->index,
|
loc->blkheight, loc->index,
|
||||||
|
@ -474,6 +474,10 @@ void txfilter_add_scriptpubkey(struct txfilter *filter UNNEEDED, const u8 *scrip
|
|||||||
/* Generated stub for version */
|
/* Generated stub for version */
|
||||||
const char *version(void)
|
const char *version(void)
|
||||||
{ fprintf(stderr, "version called!\n"); abort(); }
|
{ fprintf(stderr, "version called!\n"); abort(); }
|
||||||
|
/* Generated stub for wallet_annotate_txout */
|
||||||
|
void wallet_annotate_txout(struct wallet *w UNNEEDED, const struct bitcoin_txid *txid UNNEEDED,
|
||||||
|
int outnum UNNEEDED, enum wallet_tx_type type UNNEEDED, u64 channel UNNEEDED)
|
||||||
|
{ fprintf(stderr, "wallet_annotate_txout called!\n"); abort(); }
|
||||||
/* Generated stub for wallet_channel_close */
|
/* Generated stub for wallet_channel_close */
|
||||||
void wallet_channel_close(struct wallet *w UNNEEDED, u64 wallet_id UNNEEDED)
|
void wallet_channel_close(struct wallet *w UNNEEDED, u64 wallet_id UNNEEDED)
|
||||||
{ fprintf(stderr, "wallet_channel_close called!\n"); abort(); }
|
{ fprintf(stderr, "wallet_channel_close called!\n"); abort(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user