mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-01 19:56:45 +00:00

* Remove DomainSubnetworkID reversal * Fix DomaiNSubnetworkID FromString implementation * Change RPC conversation logic to use Stringer/FromString Co-authored-by: Ori Newman <orinewman1@gmail.com>
12 lines
249 B
Go
12 lines
249 B
Go
package subnetworks
|
|
|
|
import (
|
|
"bytes"
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// Less returns true iff id a is less than id b
|
|
func Less(a, b externalapi.DomainSubnetworkID) bool {
|
|
return bytes.Compare(a[:], b[:]) < 0
|
|
}
|