nodeconf: expose CHash
This commit is contained in:
parent
9f0c7f4711
commit
4cb79eeab9
@ -16,6 +16,8 @@ type Configuration interface {
|
|||||||
ConsensusPeers() []string
|
ConsensusPeers() []string
|
||||||
// Addresses returns map[peerId][]addr with connection addresses for all known nodes
|
// Addresses returns map[peerId][]addr with connection addresses for all known nodes
|
||||||
Addresses() map[string][]string
|
Addresses() map[string][]string
|
||||||
|
// CHash returns nodes consistent table
|
||||||
|
CHash() chash.CHash
|
||||||
}
|
}
|
||||||
|
|
||||||
type configuration struct {
|
type configuration struct {
|
||||||
@ -66,3 +68,7 @@ func (c *configuration) Addresses() map[string][]string {
|
|||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *configuration) CHash() chash.CHash {
|
||||||
|
return c.chash
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user