diff --git a/blockchain/store_test.go b/blockchain/store_test.go index a0d53e0c..a1bd0fd5 100644 --- a/blockchain/store_test.go +++ b/blockchain/store_test.go @@ -97,7 +97,7 @@ func TestBlockStoreSaveLoadBlock(t *testing.T) { incompletePartSet := types.NewPartSetFromHeader(types.PartSetHeader{Total: 2}) uncontiguousPartSet := types.NewPartSetFromHeader(types.PartSetHeader{Total: 0}) - uncontiguousPartSet.AddPart(part2, false) + uncontiguousPartSet.AddPart(part2) header1 := types.Header{ Height: 1, diff --git a/consensus/replay_test.go b/consensus/replay_test.go index c706cef0..ff0eee1c 100644 --- a/consensus/replay_test.go +++ b/consensus/replay_test.go @@ -538,7 +538,7 @@ func makeBlockchainFromWAL(wal WAL) ([]*types.Block, []*types.Commit, error) { case *types.PartSetHeader: thisBlockParts = types.NewPartSetFromHeader(*p) case *types.Part: - _, err := thisBlockParts.AddPart(p, false) + _, err := thisBlockParts.AddPart(p) if err != nil { return nil, nil, err } diff --git a/consensus/state.go b/consensus/state.go index d84d6d67..e4477a9b 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -1113,7 +1113,7 @@ func (cs *ConsensusState) enterPrecommitWait(height int64, round int) { // Enter: +2/3 precommits for block func (cs *ConsensusState) enterCommit(height int64, commitRound int) { - logger := cs.Logger.With("height", height, "round", round) + logger := cs.Logger.With("height", height, "commitRound", commitRound) if cs.Height != height || cstypes.RoundStepCommit <= cs.Step { logger.Debug(cmn.Fmt("enterCommit(%v/%v): Invalid args. Current step: %v/%v/%v", height, commitRound, cs.Height, cs.Round, cs.Step)) @@ -1142,7 +1142,7 @@ func (cs *ConsensusState) enterCommit(height int64, commitRound int) { // Move them over to ProposalBlock if they match the commit hash, // otherwise they'll be cleared in updateToState. if cs.LockedBlock.HashesTo(blockID.Hash) { - l.Info("Commit is for locked block. Set ProposalBlock=LockedBlock", "blockHash", blockID.Hash) + logger.Info("Commit is for locked block. Set ProposalBlock=LockedBlock", "blockHash", blockID.Hash) cs.ProposalBlock = cs.LockedBlock cs.ProposalBlockParts = cs.LockedBlockParts } @@ -1150,7 +1150,7 @@ func (cs *ConsensusState) enterCommit(height int64, commitRound int) { // If we don't have the block being committed, set up to get it. if !cs.ProposalBlock.HashesTo(blockID.Hash) { if !cs.ProposalBlockParts.HasHeader(blockID.PartsHeader) { - l.Info("Commit is for a block we don't know about. Set ProposalBlock=nil", "proposal", cs.ProposalBlock.Hash(), "commit", blockID.Hash) + logger.Info("Commit is for a block we don't know about. Set ProposalBlock=nil", "proposal", cs.ProposalBlock.Hash(), "commit", blockID.Hash) // We're getting the wrong block. // Set up ProposalBlockParts and keep waiting. cs.ProposalBlock = nil