mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Add configuration for localnet
This commit is contained in:
parent
287e347fb5
commit
ca676adc4f
2 changed files with 33 additions and 1 deletions
26
poohnet/config/el/genesis_local.json
Normal file
26
poohnet/config/el/genesis_local.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"config": {
|
||||
"chainId": 12301,
|
||||
"homesteadBlock": 0,
|
||||
"eip150Block": 0,
|
||||
"eip155Block": 0,
|
||||
"eip158Block": 0,
|
||||
"byzantiumBlock": 0,
|
||||
"constantinopleBlock": 0,
|
||||
"petersburgBlock": 0,
|
||||
"istanbulBlock": 0,
|
||||
"berlinBlock": 0,
|
||||
"londonBlock": 0,
|
||||
"arrowglacierBlock": 0,
|
||||
"clique": {
|
||||
"period": 14,
|
||||
"epoch": 30000
|
||||
}
|
||||
},
|
||||
"difficulty": "1",
|
||||
"gasLimit": "8000000",
|
||||
"extradata": "0x00000000000000000000000000000000000000000000000000000000000000008532654aD638Db3deE3836B22B35f7Ca707428ca0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||
"alloc": {
|
||||
"8B595d325485a0Ca9d41908cAbF265E23C172847": { "balance": "5000000000000000000000000000" }
|
||||
}
|
||||
}
|
||||
|
|
@ -24,12 +24,18 @@ mkdir $HOME/.pooh/el
|
|||
mkdir $HOME/.pooh/el/geth
|
||||
mkdir $HOME/.pooh/el/keystore
|
||||
|
||||
genesis_file="genesis.json"
|
||||
|
||||
if [ "$config" = "pow" ]
|
||||
then
|
||||
config_folder="config"
|
||||
elif [ "$config" = "pos" ]
|
||||
then
|
||||
config_folder="config4pos"
|
||||
elif [ "$config" = "local" ]
|
||||
then
|
||||
config_folder="config"
|
||||
genesis_file="genesis_local.json"
|
||||
else
|
||||
echo "Invalid config parameter"
|
||||
exit
|
||||
|
|
@ -45,7 +51,7 @@ docker run -it \
|
|||
linked0/poohnet-pow:latest \
|
||||
--datadir=/data \
|
||||
init \
|
||||
/config/genesis.json
|
||||
/config/$genesis_file
|
||||
|
||||
|
||||
if [ $number -ne 0 ]
|
||||
|
|
|
|||
Loading…
Reference in a new issue