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/geth
|
||||||
mkdir $HOME/.pooh/el/keystore
|
mkdir $HOME/.pooh/el/keystore
|
||||||
|
|
||||||
|
genesis_file="genesis.json"
|
||||||
|
|
||||||
if [ "$config" = "pow" ]
|
if [ "$config" = "pow" ]
|
||||||
then
|
then
|
||||||
config_folder="config"
|
config_folder="config"
|
||||||
elif [ "$config" = "pos" ]
|
elif [ "$config" = "pos" ]
|
||||||
then
|
then
|
||||||
config_folder="config4pos"
|
config_folder="config4pos"
|
||||||
|
elif [ "$config" = "local" ]
|
||||||
|
then
|
||||||
|
config_folder="config"
|
||||||
|
genesis_file="genesis_local.json"
|
||||||
else
|
else
|
||||||
echo "Invalid config parameter"
|
echo "Invalid config parameter"
|
||||||
exit
|
exit
|
||||||
|
|
@ -45,7 +51,7 @@ docker run -it \
|
||||||
linked0/poohnet-pow:latest \
|
linked0/poohnet-pow:latest \
|
||||||
--datadir=/data \
|
--datadir=/data \
|
||||||
init \
|
init \
|
||||||
/config/genesis.json
|
/config/$genesis_file
|
||||||
|
|
||||||
|
|
||||||
if [ $number -ne 0 ]
|
if [ $number -ne 0 ]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue