nodeconf: expose CHash

This commit is contained in:
Sergey Cherepanov 2023-01-13 10:14:50 +03:00 committed by Mikhail Iudin
parent 957ed31ded
commit aa9d84a86b
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -16,6 +16,8 @@ type Configuration interface {
ConsensusPeers() []string
// Addresses returns map[peerId][]addr with connection addresses for all known nodes
Addresses() map[string][]string
// CHash returns nodes consistent table
CHash() chash.CHash
}
type configuration struct {
@ -66,3 +68,7 @@ func (c *configuration) Addresses() map[string][]string {
}
return res
}
func (c *configuration) CHash() chash.CHash {
return c.chash
}