mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-03 20:56:42 +00:00
Fix serializeTransaction (#2302)
This commit is contained in:
parent
43b9523919
commit
352d261fd6
@ -128,7 +128,7 @@ func serializeTransaction(w io.Writer, tx *externalapi.DomainTransaction, encodi
|
||||
|
||||
if includeMass {
|
||||
if tx.MassCommitment > 0 { // For backward compatibility, serialize MassCommitment only if it's not zero
|
||||
err = binaryserializer.PutUint64(w, tx.Mass)
|
||||
err = binaryserializer.PutUint64(w, tx.MassCommitment)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user