diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-17 14:10:52 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 29cb2039698ec0dd7cbb0a45693d3967f24aa84f (patch) | |
tree | 590d0293f4f56497292a2f2ec645f92bb98e3f4b /dex/helper_test.go | |
parent | 8f9b8dd7fe2ce248d780585436dac66b7bd1391a (diff) | |
download | go-tangerine-29cb2039698ec0dd7cbb0a45693d3967f24aa84f.tar go-tangerine-29cb2039698ec0dd7cbb0a45693d3967f24aa84f.tar.gz go-tangerine-29cb2039698ec0dd7cbb0a45693d3967f24aa84f.tar.bz2 go-tangerine-29cb2039698ec0dd7cbb0a45693d3967f24aa84f.tar.lz go-tangerine-29cb2039698ec0dd7cbb0a45693d3967f24aa84f.tar.xz go-tangerine-29cb2039698ec0dd7cbb0a45693d3967f24aa84f.tar.zst go-tangerine-29cb2039698ec0dd7cbb0a45693d3967f24aa84f.zip |
dex: let notary nodes connect to some dkg nodes
BuildConnection builds notary and dkg connections together
Diffstat (limited to 'dex/helper_test.go')
-rw-r--r-- | dex/helper_test.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dex/helper_test.go b/dex/helper_test.go index 5b73c4afa..a077304b1 100644 --- a/dex/helper_test.go +++ b/dex/helper_test.go @@ -111,7 +111,14 @@ func newTestProtocolManager(mode downloader.SyncMode, blocks int, generator func panic(err) } - pm, err := NewProtocolManager(gspec.Config, mode, DefaultConfig.NetworkId, evmux, &testTxPool{added: newtx}, engine, blockchain, db, &testGovernance{}) + tgov := &testGovernance{ + numChainsFunc: func(uint64) uint32 { return 3 }, + lenCRSFunc: func() uint64 { return 1 }, + dkgSetFunc: func(uint64) (map[string]struct{}, error) { return nil, nil }, + 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) if err != nil { return nil, nil, err } |