Skip to content

Commit

Permalink
Add missing Less method for node's sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekay committed Dec 12, 2023
1 parent ca5bdf9 commit 6042163
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin/evm/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ func (tx *Tx) Compare(other *Tx) int {
}
}

func (tx *Tx) Less(other *Tx) bool {
txHex := tx.ID().Hex()
otherHex := other.ID().Hex()
return txHex < otherHex
}

// Sign this transaction with the provided signers
func (tx *Tx) Sign(c codec.Manager, signers [][]*secp256k1.PrivateKey) error {
unsignedBytes, err := c.Marshal(codecVersion, &tx.UnsignedAtomicTx)
Expand Down

0 comments on commit 6042163

Please sign in to comment.