diff options
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 |