Skip to content

Commit

Permalink
feat: integrate one-pass-ccc to miner
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Aug 12, 2024
1 parent 68d277e commit 74a3430
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 374 deletions.
6 changes: 6 additions & 0 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package core

import (
"errors"
"fmt"
"math/big"
"time"
Expand Down Expand Up @@ -132,6 +133,11 @@ func applyTransaction(msg types.Message, config *params.ChainConfig, bc ChainCon
// Apply the transaction to the current state (included in the env).
applyMessageStartTime := time.Now()
result, err := ApplyMessage(evm, msg, gp, l1DataFee)
if evm.Config.Debug {
if erroringTracer, ok := evm.Config.Tracer.(interface{ Error() error }); ok {
err = errors.Join(err, erroringTracer.Error())
}
}
applyMessageTimer.Update(time.Since(applyMessageStartTime))
if err != nil {
return nil, err
Expand Down
Loading

0 comments on commit 74a3430

Please sign in to comment.