nodeconf: expose CHash

This commit is contained in:
Sergey Cherepanov authored and Sergey Cherepanov committed 2023-01-13 10:14:50 +03:00
1 parent 9f0c7f4711
commit 4cb79eeab9
1 file changed
+6
+6
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
}