aboutsummaryrefslogtreecommitdiffstats
path: root/dex/helper_test.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-26 17:58:02 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit73a301731264f567637eacdaabc34e17a4903f9c (patch)
tree22de9d50d5e03eccf43c869ec1e2a5069338f508 /dex/helper_test.go
parent207d24b34b2aa076c009e0b6de3a52895d9707fa (diff)
downloaddexon-73a301731264f567637eacdaabc34e17a4903f9c.tar
dexon-73a301731264f567637eacdaabc34e17a4903f9c.tar.gz
dexon-73a301731264f567637eacdaabc34e17a4903f9c.tar.bz2
dexon-73a301731264f567637eacdaabc34e17a4903f9c.tar.lz
dexon-73a301731264f567637eacdaabc34e17a4903f9c.tar.xz
dexon-73a301731264f567637eacdaabc34e17a4903f9c.tar.zst
dexon-73a301731264f567637eacdaabc34e17a4903f9c.zip
dex: fix tests
Diffstat (limited to 'dex/helper_test.go')
-rw-r--r--dex/helper_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/dex/helper_test.go b/dex/helper_test.go
index f57f3eff4..abe0f6b89 100644
--- a/dex/helper_test.go
+++ b/dex/helper_test.go
@@ -125,7 +125,7 @@ func newTestProtocolManager(mode downloader.SyncMode, blocks int, generator func
notarySetFunc: func(uint64, uint32) (map[string]struct{}, error) { return nil, nil },
}
- pm, err := NewProtocolManager(gspec.Config, mode, DefaultConfig.NetworkId, evmux, &testTxPool{added: newtx}, engine, blockchain, db, tgov)
+ pm, err := NewProtocolManager(gspec.Config, mode, DefaultConfig.NetworkId, evmux, &testTxPool{added: newtx}, engine, blockchain, db, true, tgov)
if err != nil {
return nil, nil, err
}
@@ -223,6 +223,10 @@ func (g *testGovernance) DKGSet(round uint64) (map[string]struct{}, error) {
return g.dkgSetFunc(round)
}
+func (g *testGovernance) GetRoundHeight(round uint64) uint64 {
+ return 0
+}
+
// testPeer is a simulated peer to allow testing direct network calls.
type testPeer struct {
net p2p.MsgReadWriter // Network layer reader/writer to simulate remote messaging