From 77d93454a27264073d173c770ca39faecb348a69 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 24 Mar 2024 09:45:09 +0100 Subject: [PATCH] fix --- bsc.yml | 20 +++----------------- bsc/config/config.toml | 9 +++++---- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/bsc.yml b/bsc.yml index f9e760f4..e35f3e6a 100644 --- a/bsc.yml +++ b/bsc.yml @@ -13,24 +13,10 @@ services: - "8546" - "29061" volumes: - - bsc:/data + - bsc:/bsc/.ethereum - ./bsc/config:/bsc/config - environment: - GETH_HTTP_ADDR: 0.0.0.0 - GETH_HTTP: 'true' - GETH_HTTP_PORT: 8545 - GETH_HTTP_VHOSTS: '*' - GETH_WS: 'true' - GETH_WS_ADDR: 0.0.0.0 - GETH_WS_PORT: 8545 - GETH_WS_ORIGINS: '*' - GETH_DISCOVERY_PORT: 29061 - GETH_PORT: 29061 - #GETH_DATADIR: /bsc/node - GETH_STATE_SCHEME: path - GETH_DB_ENGINE: pebble - GETH_SYNCMODE: full - GETH_HISTORY_TRANSACTIONS: 0 + entrypoint: geth + command: --config=/bsc/config/config.toml --ws.origins='*' --history.transactions=0 --state.scheme=path --syncmode=full --db.engine=pebble restart: unless-stopped stop_grace_period: 3m networks: diff --git a/bsc/config/config.toml b/bsc/config/config.toml index 6fde6d48..0326e9cb 100644 --- a/bsc/config/config.toml +++ b/bsc/config/config.toml @@ -27,19 +27,20 @@ OracleThreshold = 1000 [Node] IPCPath = "geth.ipc" -HTTPHost = "localhost" +HTTPHost = "0.0.0.0" InsecureUnlockAllowed = false HTTPPort = 8545 -HTTPVirtualHosts = ["localhost"] +HTTPVirtualHosts = ["*"] HTTPModules = ["eth", "net", "web3", "txpool", "parlia"] -WSPort = 8546 +WSHost = "0.0.0.0" +WSPort = 8545 WSModules = ["net", "web3", "eth"] [Node.P2P] MaxPeers = 200 NoDiscovery = false StaticNodes = [] -ListenAddr = ":30311" +ListenAddr = ":29061" EnableMsgEvents = false