blockchainer/network: move StateSync interface to the user
Only network package cares about it.
This commit is contained in:
parent
af87cb082f
commit
bf1604454c
11 changed files with 16 additions and 22 deletions
|
@ -83,7 +83,7 @@ func newTestChain(t *testing.T, f func(*config.Config), run bool) (*core.Blockch
|
|||
}
|
||||
|
||||
serverConfig := network.NewServerConfig(cfg)
|
||||
netSrv, err := network.NewServer(serverConfig, chain, zap.NewNop())
|
||||
netSrv, err := network.NewServer(serverConfig, chain, chain.GetStateSyncModule(), zap.NewNop())
|
||||
require.NoError(t, err)
|
||||
cons, err := consensus.NewService(consensus.Config{
|
||||
Logger: zap.NewNop(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue