Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature/era-import
Browse files Browse the repository at this point in the history
  • Loading branch information
asdacap committed Nov 1, 2024
2 parents d9e5f0e + f6e41da commit 69fbf66
Show file tree
Hide file tree
Showing 177 changed files with 4,052 additions and 3,069 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/sync-supported-chains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ jobs:
--network $stripped_network \
--consensus-url $CONSENSUS_URL \
--execution-api-url $EXECUTION_URL \
--el-op-extra-flag Sync.VerifyTrieOnStateSyncFinished=true \
$extra_param
else
./build/sedge generate \
Expand All @@ -176,6 +177,7 @@ jobs:
--el-extra-flag Sync.DownloadBodiesInFastSync=false \
--el-extra-flag Sync.DownloadReceiptsInFastSync=false \
--el-extra-flag JsonRpc.EnabledModules=[Eth,Subscribe,Trace,TxPool,Web3,Personal,Proof,Net,Parity,Health,Rpc,Debug] \
--el-extra-flag Sync.VerifyTrieOnStateSyncFinished=true \
--el-extra-flag Sync.SnapSync=true \
--checkpoint-sync-url=${{ matrix.config.checkpoint-sync-url }}
fi
Expand All @@ -190,12 +192,14 @@ jobs:
declare -A good_logs
declare -A required_count
bad_logs["Corrupt"]=1
bad_logs["Exception"]=1
bad_logs["Missing node found!"]=1
good_logs["Processed"]=0
good_logs["Stats after finishing state"]=0
required_count["Processed"]=20
required_count["Stats after finishing state"]=1
network="${{ matrix.config.network }}"
if [[ "$network" != "joc-mainnet" && "$network" != "joc-testnet" && "$network" != "linea-mainnet" && "$network" != "linea-sepolia" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions scripts/dev-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ echo =======================================================

echo -e "\033[32m";
read -e -p "Which configuration/s (space separated) you wish to run? " -i "mainnet" config
for cfg in $config; do cp nethermind/configs/$cfg.cfg ~; done
for cfg in $config; do cp nethermind/configs/$cfg.json ~; done
echo -e "\033[00m";

echo =======================================================
echo To run the node type:
echo 1. screen -S node
echo 2. ./infra.sh config-name.cfg
echo 2. ./infra.sh config-name.json
echo =======================================================
4 changes: 2 additions & 2 deletions scripts/infra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ mkdir ~/nethermind_$CONFIG/keystore
cp ~/$CONFIG.key ~/nethermind_$CONFIG/keystore/node.key.plain
DB_PATH="/root/db/$CONFIG"
echo "DB PATH: " $DB_PATH
cat ~/$CONFIG.cfg | jq '.Init.BaseDbPath = "'$DB_PATH'"' | sponge ~/$CONFIG.cfg
dotnet nethermind.dll -c ../$CONFIG.cfg
cat ~/$CONFIG.json | jq '.Init.BaseDbPath = "'$DB_PATH'"' | sponge ~/$CONFIG.json
dotnet nethermind.dll -c ../$CONFIG.json
6 changes: 3 additions & 3 deletions scripts/private-networking/clique-validators.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ docker-compose up
#END of main

function writeNethermindConfig() {
cat <<EOF > node_$1/configs/config.cfg
cat <<EOF > node_$1/configs/config.json
{
"Init": {
"WebSocketsEnabled": false,
Expand Down Expand Up @@ -196,7 +196,7 @@ cat <<EOF >> docker-compose.yml
command: --config config
volumes:
- ./genesis:/config/genesis
- ./node_$1/configs/config.cfg:/nethermind/configs/config.cfg
- ./node_$1/configs/config.json:/nethermind/configs/config.json
- ./static-nodes.json:/nethermind/Data/static-nodes.json
- ./node_$1/db/clique:/nethermind/nethermind_db/clique
- ./node_$1/keystore:/nethermind/keystore
Expand Down Expand Up @@ -233,4 +233,4 @@ function clearDbs() {
done
}

main
main
4 changes: 2 additions & 2 deletions scripts/syncSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ def fastBlocksSettings(configuration, apiUrl, blockReduced, multiplierRequiremen
print(configuration + 'PivotHash: ' + str(pivotHash))
print(configuration + 'PivotTotalDifficulty: ' + str(pivotTotalDifficulty))
data = {}
with open(f'{configsPath}/{configuration}.cfg', 'r') as mainnetCfg:
with open(f'{configsPath}/{configuration}.json', 'r') as mainnetCfg:
data = json.load(mainnetCfg)
data['Sync']['PivotNumber'] = baseBlock
data['Sync']['PivotHash'] = pivotHash
data['Sync']['PivotTotalDifficulty'] = str(pivotTotalDifficulty)
with open(f'{configsPath}/{configuration}.cfg', 'w') as mainnetCfgChanged:
with open(f'{configsPath}/{configuration}.json', 'w') as mainnetCfgChanged:
json.dump(data, mainnetCfgChanged, indent=2)

for config, value in configs.items():
Expand Down
268 changes: 0 additions & 268 deletions src/Nethermind/Chains/kovan.json

This file was deleted.

Loading

0 comments on commit 69fbf66

Please sign in to comment.