mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-31 19:26:42 +00:00

* Convert BlockGHOSTDAGData from an interface to a public struct with getters * Move hashes.Less to externalapi so it can access the hashes directly without copying * Reduce calls to ghostdagstore.Get in blueWindow * Simplify the logic in RequiredDifficulty and reuse big.Int * Remove bigintpool as its no longer used * Use ChooseSelectedParent in RequiredDifficulty instead of looping over the parents * Remove comment
11 lines
305 B
Go
11 lines
305 B
Go
package transactionid
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// Less returns true iff transaction ID a is less than hash b
|
|
func Less(a, b *externalapi.DomainTransactionID) bool {
|
|
return externalapi.Less((*externalapi.DomainHash)(a), (*externalapi.DomainHash)(b))
|
|
}
|