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
7ace5a3a
Unverified
Commit
7ace5a3a
authored
May 12, 2020
by
Martin Holst Swende
Committed by
GitHub
May 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fixup blockchain tests (#21062)
core: fixup blockchain tests
parent
40859a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
blockchain_test.go
core/blockchain_test.go
+6
-6
No files found.
core/blockchain_test.go
View file @
7ace5a3a
...
...
@@ -994,7 +994,7 @@ func TestLogRebirth(t *testing.T) {
genesis
=
gspec
.
MustCommit
(
db
)
signer
=
types
.
NewEIP155Signer
(
gspec
.
Config
.
ChainID
)
engine
=
ethash
.
NewFaker
()
blockchain
,
_
=
NewBlockChain
(
db
,
nil
,
gspec
.
Config
,
engine
,
vm
.
Config
{},
nil
)
blockchain
,
_
=
NewBlockChain
(
db
,
nil
,
gspec
.
Config
,
engine
,
vm
.
Config
{},
nil
,
nil
)
)
defer
blockchain
.
Stop
()
...
...
@@ -1057,7 +1057,7 @@ func TestSideLogRebirth(t *testing.T) {
gspec
=
&
Genesis
{
Config
:
params
.
TestChainConfig
,
Alloc
:
GenesisAlloc
{
addr1
:
{
Balance
:
big
.
NewInt
(
10000000000000
)}}}
genesis
=
gspec
.
MustCommit
(
db
)
signer
=
types
.
NewEIP155Signer
(
gspec
.
Config
.
ChainID
)
blockchain
,
_
=
NewBlockChain
(
db
,
nil
,
gspec
.
Config
,
ethash
.
NewFaker
(),
vm
.
Config
{},
nil
)
blockchain
,
_
=
NewBlockChain
(
db
,
nil
,
gspec
.
Config
,
ethash
.
NewFaker
(),
vm
.
Config
{},
nil
,
nil
)
)
defer
blockchain
.
Stop
()
...
...
@@ -2615,7 +2615,7 @@ func TestDeleteRecreateSlots(t *testing.T) {
chain
,
err
:=
NewBlockChain
(
diskdb
,
nil
,
params
.
TestChainConfig
,
engine
,
vm
.
Config
{
Debug
:
true
,
Tracer
:
vm
.
NewJSONLogger
(
nil
,
os
.
Stdout
),
},
nil
)
},
nil
,
nil
)
if
err
!=
nil
{
t
.
Fatalf
(
"failed to create tester chain: %v"
,
err
)
}
...
...
@@ -2695,7 +2695,7 @@ func TestDeleteRecreateAccount(t *testing.T) {
chain
,
err
:=
NewBlockChain
(
diskdb
,
nil
,
params
.
TestChainConfig
,
engine
,
vm
.
Config
{
Debug
:
true
,
Tracer
:
vm
.
NewJSONLogger
(
nil
,
os
.
Stdout
),
},
nil
)
},
nil
,
nil
)
if
err
!=
nil
{
t
.
Fatalf
(
"failed to create tester chain: %v"
,
err
)
}
...
...
@@ -2868,7 +2868,7 @@ func TestDeleteRecreateSlotsAcrossManyBlocks(t *testing.T) {
chain
,
err
:=
NewBlockChain
(
diskdb
,
nil
,
params
.
TestChainConfig
,
engine
,
vm
.
Config
{
//Debug: true,
//Tracer: vm.NewJSONLogger(nil, os.Stdout),
},
nil
)
},
nil
,
nil
)
if
err
!=
nil
{
t
.
Fatalf
(
"failed to create tester chain: %v"
,
err
)
}
...
...
@@ -3002,7 +3002,7 @@ func TestInitThenFailCreateContract(t *testing.T) {
chain
,
err
:=
NewBlockChain
(
diskdb
,
nil
,
params
.
TestChainConfig
,
engine
,
vm
.
Config
{
//Debug: true,
//Tracer: vm.NewJSONLogger(nil, os.Stdout),
},
nil
)
},
nil
,
nil
)
if
err
!=
nil
{
t
.
Fatalf
(
"failed to create tester chain: %v"
,
err
)
}
...
...
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