|
|
@ -381,12 +381,13 @@ static void pull_witness(struct bitcoin_tx_input *inputs, size_t i, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
struct bitcoin_tx *pull_bitcoin_tx_onto(const tal_t *ctx, const u8 **cursor, |
|
|
|
size_t *max, struct bitcoin_tx *tx) |
|
|
|
struct bitcoin_tx *pull_bitcoin_tx(const tal_t *ctx, const u8 **cursor, |
|
|
|
size_t *max) |
|
|
|
{ |
|
|
|
size_t i; |
|
|
|
u64 count; |
|
|
|
u8 flag = 0; |
|
|
|
struct bitcoin_tx *tx = tal(ctx, struct bitcoin_tx); |
|
|
|
|
|
|
|
tx->version = pull_le32(cursor, max); |
|
|
|
count = pull_length(cursor, max, 32 + 4 + 4 + 1); |
|
|
@ -422,13 +423,6 @@ struct bitcoin_tx *pull_bitcoin_tx_onto(const tal_t *ctx, const u8 **cursor, |
|
|
|
return tx; |
|
|
|
} |
|
|
|
|
|
|
|
struct bitcoin_tx *pull_bitcoin_tx(const tal_t *ctx, |
|
|
|
const u8 **cursor, size_t *max) |
|
|
|
{ |
|
|
|
struct bitcoin_tx *tx = tal(ctx, struct bitcoin_tx); |
|
|
|
return pull_bitcoin_tx_onto(ctx, cursor, max, tx); |
|
|
|
} |
|
|
|
|
|
|
|
struct bitcoin_tx *bitcoin_tx_from_hex(const tal_t *ctx, const char *hex, |
|
|
|
size_t hexlen) |
|
|
|
{ |
|
|
|