diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-14 22:39:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | f4d15de52885a472ffb4ae5982662ec3f41ebebc (patch) | |
tree | 7ac7bdb3724e63a55930382edfb30d2283ce028b /dex/protocol.go | |
parent | 2e1556d551420e5f52d6e4e157b46963277eaccd (diff) | |
download | go-tangerine-f4d15de52885a472ffb4ae5982662ec3f41ebebc.tar go-tangerine-f4d15de52885a472ffb4ae5982662ec3f41ebebc.tar.gz go-tangerine-f4d15de52885a472ffb4ae5982662ec3f41ebebc.tar.bz2 go-tangerine-f4d15de52885a472ffb4ae5982662ec3f41ebebc.tar.lz go-tangerine-f4d15de52885a472ffb4ae5982662ec3f41ebebc.tar.xz go-tangerine-f4d15de52885a472ffb4ae5982662ec3f41ebebc.tar.zst go-tangerine-f4d15de52885a472ffb4ae5982662ec3f41ebebc.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 { |