aboutsummaryrefslogtreecommitdiffstats
path: root/dex/protocol.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-14 22:39:11 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:49 +0800
commitee4b3e32c5040251b861a23cb8d8ddc41b232ce4 (patch)
tree38a77a9e61cf7b27141284589fb6e83103e21eef /dex/protocol.go
parent031fe42b08bb576b250a81e1e3885f15910551c5 (diff)
downloaddexon-ee4b3e32c5040251b861a23cb8d8ddc41b232ce4.tar
dexon-ee4b3e32c5040251b861a23cb8d8ddc41b232ce4.tar.gz
dexon-ee4b3e32c5040251b861a23cb8d8ddc41b232ce4.tar.bz2
dexon-ee4b3e32c5040251b861a23cb8d8ddc41b232ce4.tar.lz
dexon-ee4b3e32c5040251b861a23cb8d8ddc41b232ce4.tar.xz
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.go8
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 {