diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-14 22:39:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 47f5134d1d45538b95dfc45913a83bab594d3ca5 (patch) | |
tree | c49a0ede8b012cb6c9fed2a7d34dc49b229adc28 /dex/protocol.go | |
parent | b0c906ba404b55147b5e3a085b6a4c3906524a1d (diff) | |
download | dexon-47f5134d1d45538b95dfc45913a83bab594d3ca5.tar dexon-47f5134d1d45538b95dfc45913a83bab594d3ca5.tar.gz dexon-47f5134d1d45538b95dfc45913a83bab594d3ca5.tar.bz2 dexon-47f5134d1d45538b95dfc45913a83bab594d3ca5.tar.lz dexon-47f5134d1d45538b95dfc45913a83bab594d3ca5.tar.xz dexon-47f5134d1d45538b95dfc45913a83bab594d3ca5.tar.zst dexon-47f5134d1d45538b95dfc45913a83bab594d3ca5.zip |
dex: add method to get NumChains, NotarySet, DKGSet easily
Diffstat (limited to 'dex/protocol.go')
-rw-r--r-- | dex/protocol.go | 8 |
1 files changed, 3 insertions, 5 deletions
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 { |