MCPcopy Create free account
hub / github.com/ElementsProject/lightning / onchain_annotate_txin

Function onchain_annotate_txin

lightningd/onchain_control.c:511–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511static void onchain_annotate_txin(struct channel *channel, const u8 *msg)
512{
513 struct bitcoin_txid txid;
514 enum wallet_tx_type type;
515 u32 innum;
516 if (!fromwire_onchaind_annotate_txin(msg, &txid, &innum, &type))
517 fatal("onchaind gave invalid onchain_annotate_txin "
518 "message: %s",
519 tal_hex(msg, msg));
520 wallet_annotate_txin(channel->peer->ld->wallet, &txid, innum, type,
521 channel->dbid);
522}
523
524static unsigned int onchain_msg(struct subd *sd, const u8 *msg, const int *fds UNUSED)
525{

Callers 1

onchain_msgFunction · 0.70

Calls 3

tal_hexFunction · 0.85
wallet_annotate_txinFunction · 0.85
fatalFunction · 0.70

Tested by

no test coverage detected