Browse Source

remove debugging log

pull/8068/head
jay tseng 3 years ago
parent
commit
bcf2037bef
No known key found for this signature in database GPG Key ID: 5A9D3063305E6427
2 changed files with 0 additions and 6 deletions
  1. +0
    -2
      internal/consensus/state.go
  2. +0
    -4
      internal/state/rollback.go

+ 0
- 2
internal/consensus/state.go View File

@ -1381,8 +1381,6 @@ func (cs *State) createProposalBlock(ctx context.Context) (block *types.Block, b
proposerAddr := cs.privValidatorPubKey.Address()
cs.logger.Debug("cs.state %w", cs.state)
return cs.blockExec.CreateProposalBlock(ctx, cs.Height, cs.state, commit, proposerAddr, votes)
}


+ 0
- 4
internal/state/rollback.go View File

@ -57,8 +57,6 @@ func Rollback(bs BlockStore, ss Store) (int64, []byte, error) {
return -1, nil, err
}
fmt.Printf("previousParams version %d", previousParams.Version.AppVersion)
valChangeHeight := invalidState.LastHeightValidatorsChanged
// this can only happen if the validator set changed since the last block
if valChangeHeight > rollbackHeight {
@ -100,8 +98,6 @@ func Rollback(bs BlockStore, ss Store) (int64, []byte, error) {
AppHash: latestBlock.Header.AppHash,
}
fmt.Printf("rollback state %w", rolledBackState)
// persist the new state. This overrides the invalid one. NOTE: this will also
// persist the validator set and consensus params over the existing structures,
// but both should be the same


Loading…
Cancel
Save