Skip to content

Commit

Permalink
去掉统计旧链id日志
Browse files Browse the repository at this point in the history
  • Loading branch information
benbaley committed Feb 28, 2024
1 parent 42c3494 commit a56822d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions core/parallel_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ func (exe *Executor) ExecuteTransactions(ctx *ParallelContext) error {

start = time.Now()
batchNo := 0
chainIdForStatistic := big.NewInt(0)
blockNumber := ctx.GetHeader().Number
for !ctx.IsTimeout() && txDag.HasNext() {
parallelTxIdxs := txDag.Next()

Expand All @@ -90,22 +88,9 @@ func (exe *Executor) ExecuteTransactions(ctx *ParallelContext) error {

if len(parallelTxIdxs) == 1 && txDag.IsContract(parallelTxIdxs[0]) {
exe.executeContractTransaction(ctx, parallelTxIdxs[0])
if blockNumber.Cmp(big.NewInt(58421521)) > 0 {
tx := ctx.GetTx(parallelTxIdxs[0])
chainIdForStatistic = tx.ChainId()
if chainIdForStatistic.Cmp(big.NewInt(210425)) != 0 {
log.Error("STATISTIC chainid", "chainid", chainIdForStatistic, "blockNumber", blockNumber, "to", tx.To())
}
}
} else {
for _, originIdx := range parallelTxIdxs {
tx := ctx.GetTx(originIdx)
if blockNumber.Cmp(big.NewInt(58421521)) > 0 {
chainIdForStatistic = tx.ChainId()
if chainIdForStatistic.Cmp(big.NewInt(210425)) != 0 {
log.Error("STATISTIC chainid", "chainid", chainIdForStatistic, "blockNumber", blockNumber, "to", tx.To())
}
}
if ctx.packNewBlock {
if ctx.IsTimeout() {
log.Warn("Parallel executor is timeout,interrupt current tx-executing")
Expand Down

0 comments on commit a56822d

Please sign in to comment.