@@ -1019,7 +1019,7 @@ func (cs *State) handleMsg(ctx context.Context, mi msgInfo, fsyncUponCompletion
1019
1019
1020
1020
switch msg := msg .(type ) {
1021
1021
case * ProposalMessage :
1022
- cs .logger .Info ("PSULOG - state handleMsg received proposal" , "proposal" , msg , "cs.ProposalBlockParts" , cs .ProposalBlockParts )
1022
+ // cs.logger.Info("PSULOG - state handleMsg received proposal", "proposal", msg, "cs.ProposalBlockParts", cs.ProposalBlockParts)
1023
1023
_ , span := cs .tracer .Start (cs .getTracingCtx (ctx ), "cs.state.handleProposalMsg" )
1024
1024
span .SetAttributes (attribute .Int ("round" , int (msg .Proposal .Round )))
1025
1025
defer span .End ()
@@ -1045,7 +1045,7 @@ func (cs *State) handleMsg(ctx context.Context, mi msgInfo, fsyncUponCompletion
1045
1045
span .SetAttributes (attribute .Int ("round" , int (msg .Round )))
1046
1046
defer span .End ()
1047
1047
1048
- cs .logger .Info ("PSULOG - received block part message" , "error" , err , "added" , added , "cs.ProposalBlockParts" , cs .ProposalBlockParts , "cs.Proposal" , cs .Proposal )
1048
+ // cs.logger.Info("PSULOG - received block part message", "error", err, "added", added, "cs.ProposalBlockParts", cs.ProposalBlockParts, "cs.Proposal", cs.Proposal)
1049
1049
// if the proposal is complete, we'll enterPrevote or tryFinalizeCommit
1050
1050
added , err = cs .addProposalBlockPart (msg , peerID )
1051
1051
@@ -1089,7 +1089,7 @@ func (cs *State) handleMsg(ctx context.Context, mi msgInfo, fsyncUponCompletion
1089
1089
}
1090
1090
cs .handleCompleteProposal (ctx , msg .Height , span )
1091
1091
} else {
1092
- cs .logger .Info ("PSULOG - did not complete proposal" , "added" , added , "proposalblockparts" , cs .ProposalBlockParts , "proposal" , cs .Proposal )
1092
+ // cs.logger.Info("PSULOG - did not complete proposal", "added", added, "proposalblockparts", cs.ProposalBlockParts, "proposal", cs.Proposal)
1093
1093
}
1094
1094
if added {
1095
1095
select {
@@ -1108,7 +1108,7 @@ func (cs *State) handleMsg(ctx context.Context, mi msgInfo, fsyncUponCompletion
1108
1108
)
1109
1109
err = nil
1110
1110
} else if err != nil {
1111
- cs .logger .Info ("PSULOG - added block part but received err" , "error" , err )
1111
+ // cs.logger.Info("PSULOG - added block part but received err", "error", err)
1112
1112
}
1113
1113
1114
1114
case * VoteMessage :
@@ -1496,7 +1496,7 @@ func (cs *State) defaultDecideProposal(ctx context.Context, height int64, round
1496
1496
propBlockID := types.BlockID {Hash : block .Hash (), PartSetHeader : blockParts .Header ()}
1497
1497
proposal := types .NewProposal (height , round , cs .ValidRound , propBlockID , block .Header .Time , block .Data .TxKeys , block .Header , block .LastCommit , block .Evidence , cs .privValidatorPubKey .Address ())
1498
1498
p := proposal .ToProto ()
1499
- cs .logger .Info ("PSULOG - converted proposal to proto" , "txkeys" , p .TxKeys , "height" , p .Height , "round" , p .Round )
1499
+ // cs.logger.Info("PSULOG - converted proposal to proto", "txkeys", p.TxKeys, "height", p.Height, "round", p.Round)
1500
1500
1501
1501
// wait the max amount we would wait for a proposal
1502
1502
ctxto , cancel := context .WithTimeout (ctx , cs .state .ConsensusParams .Timeout .Propose )
@@ -1574,7 +1574,7 @@ func (cs *State) createProposalBlock(ctx context.Context) (*types.Block, error)
1574
1574
1575
1575
//ret, err := cs.blockExec.CreateProposalBlock(ctx, cs.Height, cs.state, lastExtCommit, proposerAddr, cs.config.GossipTransactionHashOnly)
1576
1576
ret , err := cs .blockExec .CreateProposalBlock (ctx , cs .Height , cs .state , lastExtCommit , proposerAddr , false )
1577
- cs .logger .Info ("PSULOG - created proposal block" , "height" , ret .Height , "txs" , ret .Txs , "txkeys" , ret .TxKeys )
1577
+ // cs.logger.Info("PSULOG - created proposal block", "height", ret.Height, "txs", ret.Txs, "txkeys", ret.TxKeys)
1578
1578
if err != nil {
1579
1579
panic (err )
1580
1580
}
@@ -1630,26 +1630,26 @@ func (cs *State) defaultDoPrevote(ctx context.Context, height int64, round int32
1630
1630
1631
1631
// Check that a proposed block was not received within this round (and thus executing this from a timeout).
1632
1632
if ! cs .config .GossipTransactionHashOnly && cs .ProposalBlock == nil {
1633
- logger .Info ("prevote step: ProposalBlock is nil; prevoting nil" )
1633
+ // logger.Info("prevote step: ProposalBlock is nil; prevoting nil")
1634
1634
cs .signAddVote (ctx , tmproto .PrevoteType , nil , types.PartSetHeader {})
1635
1635
return
1636
1636
}
1637
1637
1638
1638
if cs .Proposal == nil {
1639
- logger .Info ("prevote step: did not receive proposal; prevoting nil" )
1639
+ // logger.Info("prevote step: did not receive proposal; prevoting nil")
1640
1640
cs .signAddVote (ctx , tmproto .PrevoteType , nil , types.PartSetHeader {})
1641
1641
return
1642
1642
}
1643
1643
1644
1644
// If we're not the proposer, we need to build the block
1645
1645
if cs .config .GossipTransactionHashOnly && cs .ProposalBlock == nil {
1646
- logger .Info ("prevote step: Creating proposal block from txs" , "proposal" , cs .Proposal , "proposal block parts" , cs .ProposalBlockParts )
1646
+ // logger.Info("prevote step: Creating proposal block from txs", "proposal", cs.Proposal, "proposal block parts", cs.ProposalBlockParts)
1647
1647
txKeys := cs .Proposal .TxKeys
1648
1648
if len (cs .blockExec .GetMissingTxs (txKeys )) != 0 {
1649
- logger .Info ("PSULOG - prevote step: populating txs has missing txs" , "keys" , cs .blockExec .GetMissingTxs (txKeys ))
1649
+ // logger.Info("PSULOG - prevote step: populating txs has missing txs", "keys", cs.blockExec.GetMissingTxs(txKeys))
1650
1650
return
1651
1651
} else if ! cs .ProposalBlockParts .IsComplete () {
1652
- logger .Info ("PSULOG - prevote step: proposal block parts is incomplete" , "keys" , cs .blockExec .GetMissingTxs (txKeys ), "block parts" , cs .ProposalBlockParts , "proposal" , cs .Proposal )
1652
+ // logger.Info("PSULOG - prevote step: proposal block parts is incomplete", "keys", cs.blockExec.GetMissingTxs(txKeys), "block parts", cs.ProposalBlockParts, "proposal", cs.Proposal)
1653
1653
return
1654
1654
} else {
1655
1655
bz , err := io .ReadAll (cs .ProposalBlockParts .GetReader ())
@@ -1675,7 +1675,7 @@ func (cs *State) defaultDoPrevote(ctx context.Context, height int64, round int32
1675
1675
block .Data .Txs = txs
1676
1676
block .DataHash = block .Data .Hash ()
1677
1677
cs .ProposalBlock = block
1678
- logger .Info ("PSULOG - setting proposal block in defaultDoPrevote" , "block" , block )
1678
+ // logger.Info("PSULOG - setting proposal block in defaultDoPrevote", "block", block)
1679
1679
}
1680
1680
}
1681
1681
@@ -2309,7 +2309,7 @@ func (cs *State) RecordMetrics(height int64, block *types.Block) {
2309
2309
func (cs * State ) defaultSetProposal (proposal * types.Proposal , recvTime time.Time ) error {
2310
2310
// Already have one
2311
2311
// TODO: possibly catch double proposals
2312
- cs .logger .Info ("PSULOG - defaultsetproposal enter - checking proposal" , "proposal" , proposal , "cs.Proposal" , cs .Proposal )
2312
+ // cs.logger.Info("PSULOG - defaultsetproposal enter - checking proposal", "proposal", proposal, "cs.Proposal", cs.Proposal)
2313
2313
2314
2314
if cs .Proposal != nil || proposal == nil {
2315
2315
return nil
@@ -2335,7 +2335,7 @@ func (cs *State) defaultSetProposal(proposal *types.Proposal, recvTime time.Time
2335
2335
}
2336
2336
2337
2337
proposal .Signature = p .Signature
2338
- cs .logger .Info ("PSULOG - defaultsetproposal setting proposal" , "proposal" , proposal )
2338
+ // cs.logger.Info("PSULOG - defaultsetproposal setting proposal", "proposal", proposal)
2339
2339
cs .Proposal = proposal
2340
2340
cs .ProposalReceiveTime = recvTime
2341
2341
cs .calculateProposalTimestampDifferenceMetric ()
@@ -2359,7 +2359,7 @@ func (cs *State) addProposalBlockPart(
2359
2359
peerID types.NodeID ,
2360
2360
) (added bool , err error ) {
2361
2361
height , round , part := msg .Height , msg .Round , msg .Part
2362
- cs .logger .Info ("PSULOG - adding proposal block part" , "blockpart" , msg )
2362
+ // cs.logger.Info("PSULOG - adding proposal block part", "blockpart", msg)
2363
2363
2364
2364
// Blocks might be reused, so round mismatch is OK
2365
2365
if cs .Height != height {
@@ -2417,23 +2417,23 @@ func (cs *State) addProposalBlockPart(
2417
2417
}
2418
2418
2419
2419
// We need to now populate proposal block with the txs
2420
- cs .logger .Info ("PSULOG - maybe populating proposal block with txs" , "current proposal" , cs .Proposal , "proposal block" , block )
2420
+ // cs.logger.Info("PSULOG - maybe populating proposal block with txs", "current proposal", cs.Proposal, "proposal block", block)
2421
2421
if cs .config .GossipTransactionHashOnly {
2422
2422
if cs .Proposal == nil {
2423
- cs .logger .Info ("PSULOG - populating tx has no proposal" )
2423
+ // cs.logger.Info("PSULOG - populating tx has no proposal")
2424
2424
} else {
2425
2425
txKeys := cs .Proposal .TxKeys
2426
2426
if len (cs .blockExec .GetMissingTxs (txKeys )) != 0 {
2427
- cs .logger .Info ("PSULOG - populating txs has missing txs" , "keys" , cs .blockExec .GetMissingTxs (txKeys ))
2427
+ // cs.logger.Info("PSULOG - populating txs has missing txs", "keys", cs.blockExec.GetMissingTxs(txKeys))
2428
2428
} else {
2429
2429
// We have full proposal block. Set txs in proposal block from mempool
2430
- cs .logger .Info ("PSULOG - populating txs with keys" , "keys" , txKeys )
2431
- cs .logger .Info ("PSULOG - recreating proposal block" , "block" , block )
2430
+ // cs.logger.Info("PSULOG - populating txs with keys", "keys", txKeys)
2431
+ // cs.logger.Info("PSULOG - recreating proposal block", "block", block)
2432
2432
txs := cs .blockExec .GetTxsForKeys (txKeys )
2433
2433
block .Data .Txs = txs
2434
2434
block .DataHash = block .Data .Hash ()
2435
2435
cs .ProposalBlock = block
2436
- cs .logger .Info ("PSULOG - setting proposal block" , "block" , block )
2436
+ // cs.logger.Info("PSULOG - setting proposal block", "block", block)
2437
2437
partSet , err := block .MakePartSet (types .BlockPartSizeBytes )
2438
2438
if err != nil {
2439
2439
return false , nil
@@ -2459,7 +2459,7 @@ func (cs *State) addProposalBlockPart(
2459
2459
}
2460
2460
2461
2461
func (cs * State ) tryCreateProposalBlock (height int64 , round int32 , header types.Header , lastCommit * types.Commit , evidence []types.Evidence , proposerAddress types.Address ) bool {
2462
- cs .logger .Info ("PSULOG - trying to create proposal block" )
2462
+ // cs.logger.Info("PSULOG - trying to create proposal block")
2463
2463
2464
2464
// Blocks might be reused, so round mismatch is OK
2465
2465
if cs .Height != height {
@@ -2469,23 +2469,23 @@ func (cs *State) tryCreateProposalBlock(height int64, round int32, header types.
2469
2469
}
2470
2470
2471
2471
if cs .Proposal == nil || len (cs .blockExec .GetMissingTxs (cs .Proposal .TxKeys )) != 0 {
2472
- cs .logger .Info ("PSULOG - cannot create block, either proposal is missing or we have missing keys" , "proposal" , cs .Proposal )
2472
+ // cs.logger.Info("PSULOG - cannot create block, either proposal is missing or we have missing keys", "proposal", cs.Proposal)
2473
2473
return false
2474
2474
} else {
2475
2475
txKeys := cs .Proposal .TxKeys
2476
2476
//block := types.MakeBlock(height, cs.blockExec.GetTxsForKeys(txKeys), lastCommit, evidence, false)
2477
2477
block := cs .state .MakeBlock (height , cs .blockExec .GetTxsForKeys (txKeys ), lastCommit , evidence , proposerAddress , false )
2478
2478
// We have full proposal block. Set txs in proposal block from mempool
2479
- cs .logger .Info ("PSULOG - populating txs with keys" , "keys" , txKeys )
2480
- cs .logger .Info ("PSULOG - recreating proposal block" , "block" , block )
2479
+ // cs.logger.Info("PSULOG - populating txs with keys", "keys", txKeys)
2480
+ // cs.logger.Info("PSULOG - recreating proposal block", "block", block)
2481
2481
txs := cs .blockExec .GetTxsForKeys (txKeys )
2482
2482
block .Version = header .Version
2483
2483
block .Data .Txs = txs
2484
2484
block .DataHash = block .Data .Hash ()
2485
2485
block .Header .Time = header .Time
2486
2486
block .Header .ProposerAddress = header .ProposerAddress
2487
2487
cs .ProposalBlock = block
2488
- cs .logger .Info ("PSULOG - setting proposal block" , "block" , block )
2488
+ // cs.logger.Info("PSULOG - setting proposal block", "block", block)
2489
2489
partSet , err := block .MakePartSet (types .BlockPartSizeBytes )
2490
2490
if err != nil {
2491
2491
return false
@@ -2498,7 +2498,7 @@ func (cs *State) tryCreateProposalBlock(height int64, round int32, header types.
2498
2498
}
2499
2499
2500
2500
func (cs * State ) handleCompleteProposal (ctx context.Context , height int64 , handleBlockPartSpan otrace.Span ) {
2501
- cs .logger .Info ("PSULOG - handle complete proposal" , "height" , height , "proposal block parts" , cs .ProposalBlockParts )
2501
+ // cs.logger.Info("PSULOG - handle complete proposal", "height", height, "proposal block parts", cs.ProposalBlockParts)
2502
2502
// Update Valid* if we can.
2503
2503
prevotes := cs .Votes .Prevotes (cs .Round )
2504
2504
blockID , hasTwoThirds := prevotes .TwoThirdsMajority ()
0 commit comments