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

Function fmt_wally_tx

bitcoin/tx.c:695–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695static char *fmt_wally_tx(const tal_t *ctx, const struct wally_tx *tx)
696{
697 u8 *lin = linearize_wtx(ctx, tx);
698 char *s = tal_hex(ctx, lin);
699 tal_free(lin);
700 return s;
701}
702
703REGISTER_TYPE_TO_STRING(bitcoin_tx, fmt_bitcoin_tx);
704REGISTER_TYPE_TO_STRING(bitcoin_txid, fmt_bitcoin_txid);

Callers

nothing calls this directly

Calls 3

linearize_wtxFunction · 0.85
tal_hexFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected