Divergences in comparison with #9620. Part 1: easy/obvious (#9888)

* Obvious changes (including bugs)

* Update privval/file.go

Co-authored-by: Thane Thomson <connect@thanethomson.com>

Co-authored-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
Sergio Mena
2022-12-16 12:16:53 +01:00
committed by GitHub
parent 9eb3fb050b
commit a749afe8fb
12 changed files with 36 additions and 41 deletions

View File

@@ -566,9 +566,7 @@ func (bpr *bpRequester) setBlock(block *types.Block, extCommit *types.ExtendedCo
return false
}
bpr.block = block
if extCommit != nil {
bpr.extCommit = extCommit
}
bpr.extCommit = extCommit
bpr.mtx.Unlock()
select {

View File

@@ -109,14 +109,12 @@ func newReactor(
panic(err)
}
var lastExtCommit *types.ExtendedCommit
// The commit we are building for the current height.
seenExtCommit := &types.ExtendedCommit{}
// let's add some blocks in
for blockHeight := int64(1); blockHeight <= maxBlockHeight; blockHeight++ {
lastExtCommit = seenExtCommit.Clone()
lastExtCommit := seenExtCommit.Clone()
thisBlock := state.MakeBlock(blockHeight, nil, lastExtCommit.ToCommit(), nil, state.Validators.Proposer.Address)