-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e17f4ec
commit 9a92473
Showing
11 changed files
with
1,048 additions
and
133 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/Nethermind/Nethermind.Core/Specs/GoerliSpecProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Copyright (c) 2018 Demerzel Solutions Limited | ||
* This file is part of the Nethermind library. | ||
* | ||
* The Nethermind library is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The Nethermind library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with the Nethermind. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
using Nethermind.Dirichlet.Numerics; | ||
|
||
namespace Nethermind.Core.Specs | ||
{ | ||
public class GoerliSpecProvider : ISpecProvider | ||
{ | ||
public static readonly GoerliSpecProvider Instance = new GoerliSpecProvider(); | ||
|
||
private GoerliSpecProvider() | ||
{ | ||
} | ||
|
||
public IReleaseSpec CurrentSpec => Constantinople.Instance; | ||
|
||
public IReleaseSpec GenesisSpec => Constantinople.Instance; | ||
|
||
public IReleaseSpec GetSpec(UInt256 blockNumber) | ||
{ | ||
return Constantinople.Instance; | ||
} | ||
|
||
public UInt256? DaoBlockNumber { get; } = null; | ||
|
||
public int ChainId => 0x188c; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Nethermind/Nethermind.Runner/configs/goerli_posix.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[ | ||
{ | ||
"ConfigModule": "InitConfig", | ||
"ConfigItems": { | ||
"JsonRpcEnabled": false, | ||
"NetworkEnabled": true, | ||
"DiscoveryEnabled": true, | ||
"SynchronizationEnabled": true, | ||
"ProcessingEnabled": true, | ||
"IsMining": false, | ||
"DiscoveryPort": 30312, | ||
"P2PPort": 30312, | ||
"HttpHost": "127.0.0.1", | ||
"HttpPort": 8345, | ||
"ChainSpecPath": "chainspec/goerli.json", | ||
"GenesisHash": "", | ||
"BaseDbPath": "nethermind_db/goerli", | ||
"LogFileName": "goerli.logs.txt" | ||
} | ||
}, | ||
{ | ||
"ConfigModule": "DbConfig", | ||
"ConfigItems": { | ||
"WriteBufferSize": 67108864, | ||
"WriteBufferNumber": 6, | ||
"BlockCacheSize": 67108864, | ||
"CacheIndexAndFilterBlocks": true | ||
} | ||
} | ||
] |
30 changes: 30 additions & 0 deletions
30
src/Nethermind/Nethermind.Runner/configs/goerli_windows.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[ | ||
{ | ||
"ConfigModule": "InitConfig", | ||
"ConfigItems": { | ||
"JsonRpcEnabled": false, | ||
"NetworkEnabled": true, | ||
"DiscoveryEnabled": true, | ||
"SynchronizationEnabled": true, | ||
"ProcessingEnabled": true, | ||
"IsMining": false, | ||
"DiscoveryPort": 30312, | ||
"P2PPort": 30312, | ||
"HttpHost": "127.0.0.1", | ||
"HttpPort": 8345, | ||
"ChainSpecPath": "chainspec\\goerli.json", | ||
"GenesisHash": "", | ||
"BaseDbPath": "nethermind_db\\goerli", | ||
"LogFileName": "goerli.logs.txt" | ||
} | ||
}, | ||
{ | ||
"ConfigModule": "DbConfig", | ||
"ConfigItems": { | ||
"WriteBufferSize": 67108864, | ||
"WriteBufferNumber": 6, | ||
"BlockCacheSize": 67108864, | ||
"CacheIndexAndFilterBlocks": true | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters