mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 07:16:47 +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
15 lines
356 B
Go
15 lines
356 B
Go
package hashes
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// ToStrings converts a slice of hashes into a slice of the corresponding strings
|
|
func ToStrings(hashes []*externalapi.DomainHash) []string {
|
|
strings := make([]string, len(hashes))
|
|
for i, hash := range hashes {
|
|
strings[i] = hash.String()
|
|
}
|
|
return strings
|
|
}
|