Skip to content

Commit

Permalink
fix(legacy): input hash could be different on emulator
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
mmilata committed Jan 30, 2025
1 parent 79bb074 commit ba96a42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion legacy/firmware/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ bool tx_input_check_hash(Hasher *hasher, const TxInputType *input) {
HASHER_UPDATE_INT(hasher, input->prev_index, uint32_t);
tx_script_hash(hasher, input->script_sig.size, input->script_sig.bytes);
HASHER_UPDATE_INT(hasher, input->sequence, uint32_t);
HASHER_UPDATE_INT(hasher, input->script_type, uint32_t);
uint32_t script_type = input->script_type;
HASHER_UPDATE_INT(hasher, script_type, uint32_t);
uint8_t multisig_fp[32] = {0};
if (input->has_multisig) {
if (cryptoMultisigFingerprint(&input->multisig, multisig_fp) == 0) {
Expand Down

0 comments on commit ba96a42

Please sign in to comment.