Skip to content

Commit

Permalink
Optimize in set code
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da committed Mar 14, 2024
1 parent cb048d7 commit b8d8a72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/state/state_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package state
import (
"bytes"
"fmt"
"github.com/ethereum/go-ethereum/core/opcodeCompiler/compiler"
"io"
"math/big"
"sync"
Expand Down Expand Up @@ -514,7 +515,7 @@ func (s *stateObject) setCode(codeHash common.Hash, code []byte) {
s.code = code
s.data.CodeHash = codeHash[:]
s.dirtyCode = true
//compiler.GenOrLoadOptimizedCode(s.address, s.code)
compiler.GenOrLoadOptimizedCode(codeHash, s.code)
}

func (s *stateObject) SetNonce(nonce uint64) {
Expand Down

0 comments on commit b8d8a72

Please sign in to comment.