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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
32276e8b
Commit
32276e8b
authored
May 15, 2015
by
Gustav Simonsson
Browse files
Options
Downloads
Patches
Plain Diff
Update StateTests and nil create return on failed code deposit
parent
830bdb1c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/state_transition.go
+1
-0
1 addition, 0 deletions
core/state_transition.go
tests/vm/gh_test.go
+12
-2
12 additions, 2 deletions
tests/vm/gh_test.go
with
13 additions
and
2 deletions
core/state_transition.go
+
1
−
0
View file @
32276e8b
...
...
@@ -205,6 +205,7 @@ func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, er
if
err
:=
self
.
UseGas
(
dataGas
);
err
==
nil
{
ref
.
SetCode
(
ret
)
}
else
{
ret
=
nil
// does not affect consensus but useful for StateTests validations
glog
.
V
(
logger
.
Core
)
.
Infoln
(
"Insufficient gas for creating code. Require"
,
dataGas
,
"and have"
,
self
.
gas
)
}
}
...
...
This diff is collapsed.
Click to expand it.
tests/vm/gh_test.go
+
12
−
2
View file @
32276e8b
...
...
@@ -269,8 +269,13 @@ func TestVmLog(t *testing.T) {
RunVmTest
(
fn
,
t
)
}
func
TestInputLimits1
(
t
*
testing
.
T
)
{
const
fn
=
"../files/VMTests/vmInputLimits1.json"
func
TestInputLimits
(
t
*
testing
.
T
)
{
const
fn
=
"../files/VMTests/vmInputLimits.json"
RunVmTest
(
fn
,
t
)
}
func
TestInputLimitsLight
(
t
*
testing
.
T
)
{
const
fn
=
"../files/VMTests/vmInputLimitsLight.json"
RunVmTest
(
fn
,
t
)
}
...
...
@@ -350,3 +355,8 @@ func TestSolidity(t *testing.T) {
const
fn
=
"../files/StateTests/stSolidityTest.json"
RunVmTest
(
fn
,
t
)
}
func
TestWallet
(
t
*
testing
.
T
)
{
const
fn
=
"../files/StateTests/stWalletTest.json"
RunVmTest
(
fn
,
t
)
}
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