mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-29 02:06:43 +00:00

* Increase size of reachability cache * Change DomainHash to struct with unexported hashArray * Fixing compilation errors stemming from new DomainHash structure * Remove obsolete Read/WriteElement methods in appmessage * Fix all tests * Fix all tests * Add comments * A few renamings * go mod tidy
12 lines
360 B
Go
12 lines
360 B
Go
package transactionid
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
"github.com/kaspanet/kaspad/domain/consensus/utils/hashes"
|
|
)
|
|
|
|
// Less returns true iff transaction ID a is less than hash b
|
|
func Less(a, b *externalapi.DomainTransactionID) bool {
|
|
return hashes.Less((*externalapi.DomainHash)(a), (*externalapi.DomainHash)(b))
|
|
}
|