| 509 | } |
| 510 | |
| 511 | static 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 | |
| 524 | static unsigned int onchain_msg(struct subd *sd, const u8 *msg, const int *fds UNUSED) |
| 525 | { |
no test coverage detected