mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-08 23:26: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 includeMass {
|
||||||
if tx.MassCommitment > 0 { // For backward compatibility, serialize MassCommitment only if it's not zero
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user