This commit is contained in:
Sebastian
2024-03-24 09:45:09 +01:00
parent 0dd2b510ac
commit 77d93454a2
2 changed files with 8 additions and 21 deletions

20
bsc.yml
View File

@@ -13,24 +13,10 @@ services:
- "8546" - "8546"
- "29061" - "29061"
volumes: volumes:
- bsc:/data - bsc:/bsc/.ethereum
- ./bsc/config:/bsc/config - ./bsc/config:/bsc/config
environment: entrypoint: geth
GETH_HTTP_ADDR: 0.0.0.0 command: --config=/bsc/config/config.toml --ws.origins='*' --history.transactions=0 --state.scheme=path --syncmode=full --db.engine=pebble
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
restart: unless-stopped restart: unless-stopped
stop_grace_period: 3m stop_grace_period: 3m
networks: networks:

View File

@@ -27,19 +27,20 @@ OracleThreshold = 1000
[Node] [Node]
IPCPath = "geth.ipc" IPCPath = "geth.ipc"
HTTPHost = "localhost" HTTPHost = "0.0.0.0"
InsecureUnlockAllowed = false InsecureUnlockAllowed = false
HTTPPort = 8545 HTTPPort = 8545
HTTPVirtualHosts = ["localhost"] HTTPVirtualHosts = ["*"]
HTTPModules = ["eth", "net", "web3", "txpool", "parlia"] HTTPModules = ["eth", "net", "web3", "txpool", "parlia"]
WSPort = 8546 WSHost = "0.0.0.0"
WSPort = 8545
WSModules = ["net", "web3", "eth"] WSModules = ["net", "web3", "eth"]
[Node.P2P] [Node.P2P]
MaxPeers = 200 MaxPeers = 200
NoDiscovery = false NoDiscovery = false
StaticNodes = [] StaticNodes = []
ListenAddr = ":30311" ListenAddr = ":29061"
EnableMsgEvents = false EnableMsgEvents = false