consensus: store ProtocolConfiguration in consensus config

This commit is contained in:
Anna Shaleva 2021-03-15 12:25:52 +03:00
parent f7d74190f5
commit 23a3514cc0
3 changed files with 26 additions and 27 deletions

View file

@ -206,11 +206,12 @@ func newServerFromConstructors(config ServerConfig, chain blockchainer.Blockchai
}
srv, err := newConsensus(consensus.Config{
Logger: log,
Broadcast: s.handleNewPayload,
Chain: chain,
RequestTx: s.requestTx,
Wallet: config.Wallet,
Logger: log,
Broadcast: s.handleNewPayload,
Chain: chain,
ProtocolConfiguration: chain.GetConfig(),
RequestTx: s.requestTx,
Wallet: config.Wallet,
TimePerBlock: config.TimePerBlock,
})