aboutsummaryrefslogtreecommitdiffstats
path: root/dex/helper_test.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-16 17:01:19 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:53 +0800
commit4d269585ca3068a0bdae31e47b4d526243ee796f (patch)
tree833e8316c20d5e92a0aeeafa884d3e3921e6c054 /dex/helper_test.go
parentda7b76bd42f712dc1239a905eec771d44dc36026 (diff)
downloaddexon-4d269585ca3068a0bdae31e47b4d526243ee796f.tar
dexon-4d269585ca3068a0bdae31e47b4d526243ee796f.tar.gz
dexon-4d269585ca3068a0bdae31e47b4d526243ee796f.tar.bz2
dexon-4d269585ca3068a0bdae31e47b4d526243ee796f.tar.lz
dexon-4d269585ca3068a0bdae31e47b4d526243ee796f.tar.xz
dexon-4d269585ca3068a0bdae31e47b4d526243ee796f.tar.zst
dexon-4d269585ca3068a0bdae31e47b4d526243ee796f.zip
dex: implement peerSetLoop
Diffstat (limited to 'dex/helper_test.go')
-rw-r--r--dex/helper_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/dex/helper_test.go b/dex/helper_test.go
index 09d15d42f..5b73c4afa 100644
--- a/dex/helper_test.go
+++ b/dex/helper_test.go
@@ -183,6 +183,7 @@ func newTestTransaction(from *ecdsa.PrivateKey, nonce uint64, datasize int) *typ
// testGovernance is a fake, helper governance for testing purposes
type testGovernance struct {
numChainsFunc func(uint64) uint32
+ lenCRSFunc func() uint64
notarySetFunc func(uint64, uint32) (map[string]struct{}, error)
dkgSetFunc func(uint64) (map[string]struct{}, error)
}
@@ -191,6 +192,10 @@ func (g *testGovernance) GetNumChains(round uint64) uint32 {
return g.numChainsFunc(round)
}
+func (g *testGovernance) LenCRS() uint64 {
+ return g.lenCRSFunc()
+}
+
func (g *testGovernance) NotarySet(
round uint64, chainID uint32) (map[string]struct{}, error) {
return g.notarySetFunc(round, chainID)