From e95584db3f8394c5cbd6f9da89105326467d267e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 3 Jan 2022 12:32:00 +0100 Subject: [PATCH] make xdai p2p sync port available --- docker-compose-rpc.yml | 5 +++- xdai/xdai.cfg | 4 +-- xdai/xdai.cfg~ | 61 ------------------------------------------ 3 files changed, 6 insertions(+), 64 deletions(-) delete mode 100644 xdai/xdai.cfg~ diff --git a/docker-compose-rpc.yml b/docker-compose-rpc.yml index 4defea03..3619ff2b 100644 --- a/docker-compose-rpc.yml +++ b/docker-compose-rpc.yml @@ -113,7 +113,10 @@ services: image: nethermind/nethermind:latest expose: - "8545" - - "30303" + - "40444" + ports: + - "40444:40444" + - "40444:40444/udp" volumes: - xdai:/nethermind_db/xdai - ./xdai/xdai.cfg:/xdai.cfg diff --git a/xdai/xdai.cfg b/xdai/xdai.cfg index 28f03b82..c0c46f8e 100644 --- a/xdai/xdai.cfg +++ b/xdai/xdai.cfg @@ -10,8 +10,8 @@ "MemoryHint": 768000000 }, "Network": { - "DiscoveryPort": 30303, - "P2PPort": 30303 + "DiscoveryPort": 40444, + "P2PPort": 40444 }, "TxPool": { "Size": 2048 diff --git a/xdai/xdai.cfg~ b/xdai/xdai.cfg~ deleted file mode 100644 index 1c32be2c..00000000 --- a/xdai/xdai.cfg~ +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Init": { - "WebSocketsEnabled": false, - "StoreReceipts": true, - "IsMining": false, - "ChainSpecPath": "chainspec/xdai.json", - "GenesisHash": "0x4f1dd23188aab3a76b463e4af801b52b1248ef073c648cbdc4c9333d3da79756", - "BaseDbPath": "nethermind_db/xdai", - "LogFileName": "xdai.logs.txt", - "MemoryHint": 768000000 - }, - "Network": { - "DiscoveryPort": 30303, - "P2PPort": 30303 - }, - "TxPool": { - "Size": 2048 - }, - "JsonRpc": { - "Enabled": false, - "Timeout": 20000, - "Host": "127.0.0.1", - "Port": 8545, - "WebSocketsPort": 8546 - }, - "Db": { - "CacheIndexAndFilterBlocks": false - }, - "Sync": { - "FastSync": true, - "PivotNumber": 18110000, - "PivotHash": "0xb06aa318f3968e3ec3ee9a5d67562bc6a470cacb76497d433f31da65f6abdf80", - "PivotTotalDifficulty": "6162513664938195573321714140589322309123831870", - "FastBlocks": true, - "UseGethLimitsInFastBlocks": false, - "FastSyncCatchUpHeightDelta": 10000000000 - }, - "EthStats": { - "Enabled": false, - "Server": "ws://localhost:3000/api", - "Name": "Nethermind xDai", - "Secret": "secret", - "Contact": "hello@nethermind.io" - }, - "Metrics": { - "NodeName": "xDai", - "Enabled": false, - "PushGatewayUrl": "http://localhost:9091/metrics", - "IntervalSeconds": 5 - }, - "Aura": { - "ForceSealing": true - }, - "Bloom": { - "IndexLevelBucketSizes": [ - 16, - 16, - 16 - ] - } -} \ No newline at end of file