|
@ -632,8 +632,17 @@ static char *fmt_bitcoin_txid(const tal_t *ctx, const struct bitcoin_txid *txid) |
|
|
return hexstr; |
|
|
return hexstr; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static char *fmt_wally_tx(const tal_t *ctx, const struct wally_tx *tx) |
|
|
|
|
|
{ |
|
|
|
|
|
u8 *lin = linearize_wtx(ctx, tx); |
|
|
|
|
|
char *s = tal_hex(ctx, lin); |
|
|
|
|
|
tal_free(lin); |
|
|
|
|
|
return s; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
REGISTER_TYPE_TO_STRING(bitcoin_tx, fmt_bitcoin_tx); |
|
|
REGISTER_TYPE_TO_STRING(bitcoin_tx, fmt_bitcoin_tx); |
|
|
REGISTER_TYPE_TO_STRING(bitcoin_txid, fmt_bitcoin_txid); |
|
|
REGISTER_TYPE_TO_STRING(bitcoin_txid, fmt_bitcoin_txid); |
|
|
|
|
|
REGISTER_TYPE_TO_STRING(wally_tx, fmt_wally_tx); |
|
|
|
|
|
|
|
|
void fromwire_bitcoin_txid(const u8 **cursor, size_t *max, |
|
|
void fromwire_bitcoin_txid(const u8 **cursor, size_t *max, |
|
|
struct bitcoin_txid *txid) |
|
|
struct bitcoin_txid *txid) |
|
|