Browse Source
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; ```travis-debug
lisa neigut
5 years ago
committed by
Rusty Russell
1 changed files with 5 additions and 2 deletions
Loading…
Reference in new issue