mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
cbfa045f91
this is unnecessary, and actually severely limits the functionality of `wally_tx_add_input`, which will expand the allocated input length if there's not enough room for the additional input ```external/libwally-core/src/transaction.c if (tx->num_inputs >= tx->inputs_allocation_len) { /* Expand the inputs array */ struct wally_tx_input *p; p = realloc_array(tx->inputs, tx->inputs_allocation_len, tx->num_inputs + 1, sizeof(*tx->inputs)); ... tx->inputs = p; tx->inputs_allocation_len += 1; ``` |
||
---|---|---|
.. | ||
test | ||
address.h | ||
base58.c | ||
base58.h | ||
block.c | ||
block.h | ||
chainparams.c | ||
chainparams.h | ||
feerate.h | ||
locktime.c | ||
locktime.h | ||
Makefile | ||
preimage.h | ||
privkey.c | ||
privkey.h | ||
pubkey.c | ||
pubkey.h | ||
pullpush.c | ||
pullpush.h | ||
README | ||
script.c | ||
script.h | ||
shadouble.c | ||
shadouble.h | ||
short_channel_id.c | ||
short_channel_id.h | ||
signature.c | ||
signature.h | ||
tx.c | ||
tx.h | ||
varint.c | ||
varint.h |
These are standard bitcoin manipulation routines which should be provided by any normal bitcoin library in whatever language you choose. The ones here are standalone ones taken from bitcoin core and some I wrote, many taken from bitcoin-iterate and pasted in here.