good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
open
bor
Commits
86bc7795
Commit
86bc7795
authored
8 years ago
by
Yoichi Hirai
Browse files
Options
Downloads
Patches
Plain Diff
vm: Replace some SstoreClearGas with SstoreResetGas
parent
4f3f6e28
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/vm/jit.go
+1
-1
1 addition, 1 deletion
core/vm/jit.go
core/vm/vm.go
+1
-1
1 addition, 1 deletion
core/vm/vm.go
with
2 additions
and
2 deletions
core/vm/jit.go
+
1
−
1
View file @
86bc7795
...
...
@@ -421,7 +421,7 @@ func jitCalculateGasAndSize(env Environment, contract *Contract, instr instructi
g
=
params
.
SstoreClearGas
}
else
{
g
=
params
.
Sstore
Clear
Gas
g
=
params
.
Sstore
Reset
Gas
}
gas
.
Set
(
g
)
case
SUICIDE
:
...
...
This diff is collapsed.
Click to expand it.
core/vm/vm.go
+
1
−
1
View file @
86bc7795
...
...
@@ -306,7 +306,7 @@ func calculateGasAndSize(env Environment, contract *Contract, caller ContractRef
g
=
params
.
SstoreClearGas
}
else
{
// non 0 => non 0 (or 0 => 0)
g
=
params
.
Sstore
Clear
Gas
g
=
params
.
Sstore
Reset
Gas
}
gas
.
Set
(
g
)
case
SUICIDE
:
...
...
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