This commit is contained in:
Sergio Mena
2022-11-28 05:25:36 +01:00
parent 8ef66fca2a
commit c855c9d47c
2 changed files with 3 additions and 3 deletions

View File

@@ -227,7 +227,7 @@ func (bcR *Reactor) Receive(e p2p.Envelope) {
extCommit, err := types.ExtendedCommitFromProto(msg.ExtCommit)
if err != nil {
bcR.Logger.Error("failed to convert extended commit from proto",
"peer", src,
"peer", e.Src,
"err", err)
return
}

View File

@@ -312,7 +312,7 @@ const numBlocks = 6
var modes = []uint{0, 1, 2, 3}
// This is actually not a test, it's for storing validator change tx data for testHandshakeReplay
func setupChainWithChangingValidators(t *testing.T, name string, nBlocks int) (*cfg.Config, []*types.Block, []*types.Commit, sm.State) {
func setupChainWithChangingValidators(t *testing.T, name string, nBlocks int) (*cfg.Config, []*types.Block, []*types.ExtendedCommit, sm.State) {
nPeers := 7
nVals := 4
css, genDoc, config, cleanup := randConsensusNetWithPeers(
@@ -543,7 +543,7 @@ func setupChainWithChangingValidators(t *testing.T, name string, nBlocks int) (*
chain = append(chain, css[0].blockStore.LoadBlock(int64(i)))
extCommits = append(extCommits, css[0].blockStore.LoadBlockExtendedCommit(int64(i)))
}
return config, chain, commits, genesisState
return config, chain, extCommits, genesisState
}
// Sync from scratch