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
b7e8d954
Commit
b7e8d954
authored
Jul 06, 2015
by
Gustav Simonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add TestBcGasPricer, comments and unskip tests
parent
457a3c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
block_test.go
tests/block_test.go
+7
-0
init.go
tests/init.go
+12
-8
No files found.
tests/block_test.go
View file @
b7e8d954
...
...
@@ -71,3 +71,10 @@ func TestBcWallet(t *testing.T) {
t
.
Fatal
(
err
)
}
}
func
TestBcGasPricer
(
t
*
testing
.
T
)
{
err
:=
RunBlockTest
(
filepath
.
Join
(
blockTestDir
,
"bcGasPricerTest.json"
),
BlockSkipTests
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
}
tests/init.go
View file @
b7e8d954
...
...
@@ -20,22 +20,26 @@ var (
vmTestDir
=
filepath
.
Join
(
baseDir
,
"VMTests"
)
BlockSkipTests
=
[]
string
{
// Fails in InsertPreState with: computed state root does not
// match genesis block bba25a96 0d8f85c8 Christoph said it will be
// fixed eventually
"SimpleTx3"
,
// TODO: check why these fail
// These tests are not valid, as they are out of scope for RLP and
// the consensus protocol.
"BLOCK__RandomByteAtTheEnd"
,
"TRANSCT__RandomByteAtTheEnd"
,
"BLOCK__ZeroByteAtTheEnd"
,
"TRANSCT__ZeroByteAtTheEnd"
,
// TODO: why does this fail? should be check in ethash now
"DifficultyIsZero"
,
// TODO: why does this fail?
"wrongMixHash"
,
}
/* Go does not support transaction (account) nonces above 2^64. This
technically breaks consensus but is regarded as "reasonable
engineering constraint" as accounts cannot easily reach such high
nonce values in practice
*/
TransSkipTests
=
[]
string
{
"TransactionWithHihghNonce256"
}
StateSkipTests
=
[]
string
{
"mload32bitBound_return"
,
"mload32bitBound_return2"
}
StateSkipTests
=
[]
string
{}
VmSkipTests
=
[]
string
{}
)
...
...
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