nodeconf: expose CHash
This commit is contained in:
1 parent
957ed31ded
commit
aa9d84a86b
1 file changed
+6
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user