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
4b40b537
Commit
4b40b537
authored
Dec 10, 2019
by
Charing
Committed by
Péter Szilágyi
Dec 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
miner: add dependency for stress tests (#20436)
1.to build stress tests Depends-On:
6269e557
parent
370cb95b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
stress_clique.go
miner/stress_clique.go
+2
-1
stress_ethash.go
miner/stress_ethash.go
+2
-1
No files found.
miner/stress_clique.go
View file @
4b40b537
...
...
@@ -37,6 +37,7 @@ import (
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/miner"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/enode"
...
...
@@ -199,7 +200,7 @@ func makeSealer(genesis *core.Genesis) (*node.Node, error) {
DatabaseHandles
:
256
,
TxPool
:
core
.
DefaultTxPoolConfig
,
GPO
:
eth
.
DefaultConfig
.
GPO
,
Miner
:
Config
{
Miner
:
miner
.
Config
{
GasFloor
:
genesis
.
GasLimit
*
9
/
10
,
GasCeil
:
genesis
.
GasLimit
*
11
/
10
,
GasPrice
:
big
.
NewInt
(
1
),
...
...
miner/stress_ethash.go
View file @
4b40b537
...
...
@@ -38,6 +38,7 @@ import (
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/miner"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/enode"
...
...
@@ -179,7 +180,7 @@ func makeMiner(genesis *core.Genesis) (*node.Node, error) {
TxPool
:
core
.
DefaultTxPoolConfig
,
GPO
:
eth
.
DefaultConfig
.
GPO
,
Ethash
:
eth
.
DefaultConfig
.
Ethash
,
Miner
:
Config
{
Miner
:
miner
.
Config
{
GasFloor
:
genesis
.
GasLimit
*
9
/
10
,
GasCeil
:
genesis
.
GasLimit
*
11
/
10
,
GasPrice
:
big
.
NewInt
(
1
),
...
...
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