diff --git a/src/ctest/test_elements_tx.c b/src/ctest/test_elements_tx.c index c70e6f1e2..e8c7b0b93 100644 --- a/src/ctest/test_elements_tx.c +++ b/src/ctest/test_elements_tx.c @@ -203,7 +203,7 @@ static bool tx_pegin(const char *tx_hex, const char **tx_pegin_wit_hex, size_t n { struct wally_tx *tx; struct wally_tx_input *in; - struct wally_tx_witness_stack* pegin_wit; + struct wally_tx_witness_stack *pegin_wit; struct wally_tx_witness_item *item; char *new_hex; const uint32_t flags = WALLY_TX_FLAG_USE_WITNESS | WALLY_TX_FLAG_USE_ELEMENTS; diff --git a/src/transaction.c b/src/transaction.c index bada8b401..302a5d2c9 100644 --- a/src/transaction.c +++ b/src/transaction.c @@ -98,9 +98,9 @@ static bool is_valid_tx_input(const struct wally_tx_input *input) BYTES_VALID(input->script, input->script_len) && (!input->witness || is_valid_witness_stack(input->witness)) #ifdef BUILD_ELEMENTS - && (!input->pegin_witness || is_valid_witness_stack(input->pegin_witness)) + && (!input->pegin_witness || is_valid_witness_stack(input->pegin_witness)) #endif - ; + ; } static bool is_valid_tx_output(const struct wally_tx_output *output)