mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-18 12:38:37 +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 !BITCOIN_ONLY
|
||||||
if (tx->overwintered) {
|
if (tx->overwintered) {
|
||||||
hasher_Update(&(tx->hasher), (const uint8_t *)&(tx->expiry), 4);
|
hasher_Update(&(tx->hasher), (const uint8_t *)&(tx->expiry), 4);
|
||||||
hasher_Update(&(tx->hasher), (const uint8_t *)"\x00", 1); // nJoinSplit
|
return 8;
|
||||||
return 9;
|
|
||||||
}
|
}
|
||||||
if (tx->is_decred) {
|
if (tx->is_decred) {
|
||||||
hasher_Update(&(tx->hasher), (const uint8_t *)&(tx->expiry), 4);
|
hasher_Update(&(tx->hasher), (const uint8_t *)&(tx->expiry), 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user