good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Erigon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
a
Erigon
Commits
cf448036
Unverified
Commit
cf448036
authored
3 years ago
by
Groute
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
state_processor: fix ignored SkipAnalysis() result (#4046)
`cfg` is not a pointer
parent
e758fb80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/state_processor.go
+4
-4
4 additions, 4 deletions
core/state_processor.go
with
4 additions
and
4 deletions
core/state_processor.go
+
4
−
4
View file @
cf448036
...
@@ -143,6 +143,10 @@ func applyTransaction(config *params.ChainConfig, gp *GasPool, statedb *state.In
...
@@ -143,6 +143,10 @@ func applyTransaction(config *params.ChainConfig, gp *GasPool, statedb *state.In
func
ApplyTransaction
(
config
*
params
.
ChainConfig
,
getHeader
func
(
hash
common
.
Hash
,
number
uint64
)
*
types
.
Header
,
engine
consensus
.
Engine
,
author
*
common
.
Address
,
gp
*
GasPool
,
ibs
*
state
.
IntraBlockState
,
stateWriter
state
.
StateWriter
,
header
*
types
.
Header
,
tx
types
.
Transaction
,
usedGas
*
uint64
,
cfg
vm
.
Config
,
contractHasTEVM
func
(
contractHash
common
.
Hash
)
(
bool
,
error
))
(
*
types
.
Receipt
,
[]
byte
,
error
)
{
func
ApplyTransaction
(
config
*
params
.
ChainConfig
,
getHeader
func
(
hash
common
.
Hash
,
number
uint64
)
*
types
.
Header
,
engine
consensus
.
Engine
,
author
*
common
.
Address
,
gp
*
GasPool
,
ibs
*
state
.
IntraBlockState
,
stateWriter
state
.
StateWriter
,
header
*
types
.
Header
,
tx
types
.
Transaction
,
usedGas
*
uint64
,
cfg
vm
.
Config
,
contractHasTEVM
func
(
contractHash
common
.
Hash
)
(
bool
,
error
))
(
*
types
.
Receipt
,
[]
byte
,
error
)
{
// Create a new context to be used in the EVM environment
// Create a new context to be used in the EVM environment
// Add addresses to access list if applicable
// about the transaction and calling mechanisms.
cfg
.
SkipAnalysis
=
SkipAnalysis
(
config
,
header
.
Number
.
Uint64
())
var
vmenv
vm
.
VMInterface
var
vmenv
vm
.
VMInterface
if
tx
.
IsStarkNet
()
{
if
tx
.
IsStarkNet
()
{
...
@@ -152,9 +156,5 @@ func ApplyTransaction(config *params.ChainConfig, getHeader func(hash common.Has
...
@@ -152,9 +156,5 @@ func ApplyTransaction(config *params.ChainConfig, getHeader func(hash common.Has
vmenv
=
vm
.
NewEVM
(
blockContext
,
vm
.
TxContext
{},
ibs
,
config
,
cfg
)
vmenv
=
vm
.
NewEVM
(
blockContext
,
vm
.
TxContext
{},
ibs
,
config
,
cfg
)
}
}
// Add addresses to access list if applicable
// about the transaction and calling mechanisms.
cfg
.
SkipAnalysis
=
SkipAnalysis
(
config
,
header
.
Number
.
Uint64
())
return
applyTransaction
(
config
,
gp
,
ibs
,
stateWriter
,
header
,
tx
,
usedGas
,
vmenv
,
cfg
)
return
applyTransaction
(
config
,
gp
,
ibs
,
stateWriter
,
header
,
tx
,
usedGas
,
vmenv
,
cfg
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment