Skip to content

Commit

Permalink
Transaction: Remove serialize method
Browse files Browse the repository at this point in the history
It's not doing anything that differs from the default, save for the 'assert',
which is not the place to do it.
  • Loading branch information
Geod24 committed Jun 10, 2021
1 parent a6579ec commit 3f72bb8
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions source/agora/consensus/data/Transaction.d
Original file line number Diff line number Diff line change
Expand Up @@ -111,31 +111,6 @@ public struct Transaction
return hashFull(this).opCmp(hashFull(other));
}

/***************************************************************************
Transactions Serialization
Params:
dg = Serialize function
***************************************************************************/

public void serialize (scope SerializeDg dg) const
{
serializePart(this.inputs.length, dg);
foreach (const ref input; this.inputs)
serializePart(input, dg);

serializePart(this.outputs.length, dg);
assert(this.outputs.isSorted!((a, b) => a < b));
foreach (const ref output; this.outputs)
serializePart(output, dg);

serializePart(payload, dg);

serializePart(this.lock_height, dg);
}

pure nothrow @nogc:

/// A `Freeze` transaction is one that has one or more `Freeze` outputs
Expand Down

0 comments on commit 3f72bb8

Please sign in to comment.