We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f7869f commit 139bc54Copy full SHA for 139bc54
src/tx_io.c
@@ -962,9 +962,11 @@ int wally_tx_get_input_signature_hash(
962
!flags || (flags & ~SIGTYPE_ALL) || !bytes_out || len != SHA256_LEN)
963
return WALLY_EINVAL;
964
965
-#ifdef BUILD_ELEMENTS
966
if ((ret = wally_tx_is_elements(tx, &is_elements)) != WALLY_OK)
967
return ret;
+#ifndef BUILD_ELEMENTS
968
+ if (is_elements)
969
+ return WALLY_EINVAL;
970
#endif
971
972
switch (sighash) {
@@ -1017,5 +1019,5 @@ int wally_tx_get_input_signature_hash(
1017
1019
genesis_blockhash, genesis_blockhash_len,
1018
1020
sighash, cache, is_elements,
1021
bytes_out, len);
- return WALLY_EINVAL;
1022
+ return WALLY_EINVAL; /* Unknown sighash type */
1023
}
0 commit comments