diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-16 10:33:24 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:50 +0800 |
commit | 04838f384450658d678e44c0f902c0eed9cd04bd (patch) | |
tree | 53d0acae28f78ab024fd3a6d19089ddafd138cbb /dex/helper_test.go | |
parent | 8a2cd037f77716cf83d17b9cfe8831c81427b91e (diff) | |
download | dexon-04838f384450658d678e44c0f902c0eed9cd04bd.tar dexon-04838f384450658d678e44c0f902c0eed9cd04bd.tar.gz dexon-04838f384450658d678e44c0f902c0eed9cd04bd.tar.bz2 dexon-04838f384450658d678e44c0f902c0eed9cd04bd.tar.lz dexon-04838f384450658d678e44c0f902c0eed9cd04bd.tar.xz dexon-04838f384450658d678e44c0f902c0eed9cd04bd.tar.zst dexon-04838f384450658d678e44c0f902c0eed9cd04bd.zip |
dex: gov: using dex-consensus-core NodeSetCache
Diffstat (limited to 'dex/helper_test.go')
-rw-r--r-- | dex/helper_test.go | 11 |
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) } |