mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 21:22:10 +00:00
legacy/signing: Don't force nJoinSplit to be 0 for prev_tx in overwintered. This was dead code until we started validating prevout amounts.
This commit is contained in:
parent
386be6ff09
commit
e6745bce43
@ -711,8 +711,7 @@ uint32_t tx_serialize_footer_hash(TxStruct *tx) {
|
||||
#if !BITCOIN_ONLY
|
||||
if (tx->overwintered) {
|
||||
hasher_Update(&(tx->hasher), (const uint8_t *)&(tx->expiry), 4);
|
||||
hasher_Update(&(tx->hasher), (const uint8_t *)"\x00", 1); // nJoinSplit
|
||||
return 9;
|
||||
return 8;
|
||||
}
|
||||
if (tx->is_decred) {
|
||||
hasher_Update(&(tx->hasher), (const uint8_t *)&(tx->expiry), 4);
|
||||
|
Loading…
Reference in New Issue
Block a user