Skip to content

Commit

Permalink
chore: delete processer debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
joeylichang committed Aug 16, 2024
1 parent ec24451 commit ccd9ce0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
)

Expand Down Expand Up @@ -105,15 +104,12 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
systemTxs := make([]*types.Transaction, 0, 2)

for i, tx := range block.Transactions() {
log.Info("%%%%%%%%%%%%%%")
if isPoSA {
if isSystemTx, err := posa.IsSystemTransaction(tx, block.Header()); err != nil {
bloomProcessors.Close()
return statedb, nil, nil, 0, err
} else if isSystemTx {
systemTxs = append(systemTxs, tx)
log.Info("tx process", "idx", i, "hash", tx.Hash().String())
log.Info("%%%%%%%%%%%%%%")
continue
}
}
Expand All @@ -136,8 +132,6 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
bloomProcessors.Close()
return statedb, nil, nil, 0, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err)
}
log.Info("tx process", "idx", i, "hash", receipt.TxHash.String(), "status", receipt.Status, "GasUsed", receipt.GasUsed, "CumulativeGasUsed", receipt.CumulativeGasUsed, "postRoot", common.Bytes2Hex(receipt.PostState))
log.Info("%%%%%%%%%%%%%%")
commonTxs = append(commonTxs, tx)
receipts = append(receipts, receipt)
}
Expand Down

0 comments on commit ccd9ce0

Please sign in to comment.