diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-14 22:39:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | ee4b3e32c5040251b861a23cb8d8ddc41b232ce4 (patch) | |
tree | 38a77a9e61cf7b27141284589fb6e83103e21eef /dex/protocol.go | |
parent | 031fe42b08bb576b250a81e1e3885f15910551c5 (diff) | |
download | dexon-ee4b3e32c5040251b861a23cb8d8ddc41b232ce4.tar.gz dexon-ee4b3e32c5040251b861a23cb8d8ddc41b232ce4.tar.zst dexon-ee4b3e32c5040251b861a23cb8d8ddc41b232ce4.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 { |