Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
32276e8b
Commit
32276e8b
authored
May 15, 2015
by
Gustav Simonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update StateTests and nil create return on failed code deposit
parent
830bdb1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
state_transition.go
core/state_transition.go
+1
-0
gh_test.go
tests/vm/gh_test.go
+12
-2
No files found.
core/state_transition.go
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
)
}
}
...
...
tests/vm/gh_test.go
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
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment