aboutsummaryrefslogtreecommitdiffstats
path: root/dex/helper_test.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-16 10:33:24 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:53 +0800
commit9bc6509251d76f9e9a58c7d8dfe4a492dd265c4f (patch)
treef10020f265a9dc2899db0cb1bee14cf2a4607b75 /dex/helper_test.go
parentf922f73f143993c8f0f653aaeb334cc1e5bb3b59 (diff)
downloaddexon-9bc6509251d76f9e9a58c7d8dfe4a492dd265c4f.tar
dexon-9bc6509251d76f9e9a58c7d8dfe4a492dd265c4f.tar.gz
dexon-9bc6509251d76f9e9a58c7d8dfe4a492dd265c4f.tar.bz2
dexon-9bc6509251d76f9e9a58c7d8dfe4a492dd265c4f.tar.lz
dexon-9bc6509251d76f9e9a58c7d8dfe4a492dd265c4f.tar.xz
dexon-9bc6509251d76f9e9a58c7d8dfe4a492dd265c4f.tar.zst
dexon-9bc6509251d76f9e9a58c7d8dfe4a492dd265c4f.zip
dex: gov: using dex-consensus-core NodeSetCache
Diffstat (limited to 'dex/helper_test.go')
-rw-r--r--dex/helper_test.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/dex/helper_test.go b/dex/helper_test.go
index 21803ed88..09d15d42f 100644
--- a/dex/helper_test.go
+++ b/dex/helper_test.go
@@ -183,19 +183,20 @@ 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
- notarySetFunc func(uint32, uint64) map[string]struct{}
- dkgSetFunc func(uint64) map[string]struct{}
+ notarySetFunc func(uint64, uint32) (map[string]struct{}, error)
+ dkgSetFunc func(uint64) (map[string]struct{}, error)
}
func (g *testGovernance) GetNumChains(round uint64) uint32 {
return g.numChainsFunc(round)
}
-func (g *testGovernance) NotarySet(chainID uint32, round uint64) map[string]struct{} {
- return g.notarySetFunc(chainID, round)
+func (g *testGovernance) NotarySet(
+ round uint64, chainID uint32) (map[string]struct{}, error) {
+ return g.notarySetFunc(round, chainID)
}
-func (g *testGovernance) DKGSet(round uint64) map[string]struct{} {
+func (g *testGovernance) DKGSet(round uint64) (map[string]struct{}, error) {
return g.dkgSetFunc(round)
}