From 4cb79eeab95526a2897198b5e276864e4dcebc06 Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Fri, 13 Jan 2023 10:14:50 +0300 Subject: [PATCH] nodeconf: expose CHash --- nodeconf/configuration.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nodeconf/configuration.go b/nodeconf/configuration.go index 75924a57..af8e5f33 100644 --- a/nodeconf/configuration.go +++ b/nodeconf/configuration.go @@ -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 +}