diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 17:58:02 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:19 +0800 |
commit | a0adfadd8aa2f471a76dd35622b49bb83e67bf6c (patch) | |
tree | 5b459e29327ab521ff4c1fbcd54500431a2a0456 /dex/helper_test.go | |
parent | 5791965d8af0b1d8d30ae7232879d063cb5cd8f0 (diff) | |
download | go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.tar go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.tar.gz go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.tar.bz2 go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.tar.lz go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.tar.xz go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.tar.zst go-tangerine-a0adfadd8aa2f471a76dd35622b49bb83e67bf6c.zip |
dex: fix tests
Diffstat (limited to 'dex/helper_test.go')
-rw-r--r-- | dex/helper_test.go | 6 |
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 |