From f4d15de52885a472ffb4ae5982662ec3f41ebebc Mon Sep 17 00:00:00 2001 From: Sonic Date: Sun, 14 Oct 2018 22:39:11 +0800 Subject: dex: add method to get NumChains, NotarySet, DKGSet easily --- dex/protocol.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'dex/protocol.go') diff --git a/dex/protocol.go b/dex/protocol.go index 94241104b..3507965ae 100644 --- a/dex/protocol.go +++ b/dex/protocol.go @@ -124,13 +124,11 @@ type txPool interface { } type governance interface { - GetChainNum(uint64) uint32 + GetNumChains(uint64) uint32 - GetNotarySet(uint32, uint64) map[string]struct{} + NotarySet(uint32, uint64) map[string]struct{} - GetDKGSet(uint64) map[string]struct{} - - SubscribeNewCRSEvent(ch chan core.NewCRSEvent) event.Subscription + DKGSet(uint64) map[string]struct{} } type p2pServer interface { -- cgit v1.2.3