Use proposer of previous block for ConsensusInfo
@@ -254,7 +254,7 @@ func (m *manager) _import(
if vt, err := verifyBlock(block, bn.block, validators); err != nil {
return nil, err
} else {
- csi = common.NewConsensusInfo(block.Proposer(), validators, vt)
+ csi = common.NewConsensusInfo(bn.block.Proposer(), validators, vt)
}
it := &importTask{
block: block,
@@ -412,7 +412,7 @@ func (m *manager) _propose(
if voted, err := votes.VerifyBlock(bn.block, validators); err != nil {
return nil, err
} else {
- csi = common.NewConsensusInfo(m.chain.Wallet().Address(), validators, voted)
+ csi = common.NewConsensusInfo(bn.block.Proposer(), validators, voted)
}
pt := &proposeTask{
task: task{
@@ -1574,7 +1574,7 @@ func (m *manager) newConsensusInfo(blk module.Block) (module.ConsensusInfo, erro
if err != nil {
return nil, err
}
- return common.NewConsensusInfo(blk.Proposer(), vl, voted), nil
+ return common.NewConsensusInfo(pblk.Proposer(), vl, voted), nil
}
func GetLastHeight(dbase db.Database) (int64, error) {
