mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-25 00:06:49 +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
353 B
Go
12 lines
353 B
Go
package transactionid
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// FromString creates a new DomainTransactionID from the given string
|
|
func FromString(str string) (*externalapi.DomainTransactionID, error) {
|
|
hash, err := externalapi.NewDomainHashFromString(str)
|
|
return (*externalapi.DomainTransactionID)(hash), err
|
|
}
|