give geth a chance

This commit is contained in:
Sebastian
2024-03-23 16:28:53 +01:00
parent fccedcc532
commit ce8167f0dd
3 changed files with 129 additions and 7 deletions

17
bsc.yml
View File

@@ -2,16 +2,19 @@ version: '3.1'
services: services:
binance-smart-chain: bsc:
image: dysnix/bsc:v1.1.11 image: ghcr.io/bnb-chain/bsc:1.1.18_hf
ports:
- "29061:29061"
- "29061:29061/udp"
expose: expose:
- "8545" - "8545"
- "8546" - "8546"
- "30303" - "29061"
volumes: volumes:
- bsc_data:/datadir - bsc:/bsc/node
- ./bsc/config.toml:/config.toml - ./bsc/config:/bsc/config
command: "--cache 18000 --rpc --rpcaddr=\"0.0.0.0\" --rpc.allow-unprotected-txs --txlookuplimit 0 --syncmode snap --config /config.toml --datadir /datadir" command: "--port=29061 --history.transactions=0 --syncmode=full --db.engine=pebble --state.scheme=path --http.addr 0.0.0.0 --http.port 8545 --http.vhosts '*' --verbosity 5 --ws.addr 0.0.0.0 --ws.port 8545 --ws.origins '*'"
restart: unless-stopped restart: unless-stopped
networks: networks:
- chains - chains
@@ -25,5 +28,5 @@ services:
- "traefik.http.routers.bsc.middlewares=bsc-stripprefix, ipwhitelist" - "traefik.http.routers.bsc.middlewares=bsc-stripprefix, ipwhitelist"
volumes: volumes:
bsc_data: bsc:

50
bsc/config/config.toml Normal file
View File

@@ -0,0 +1,50 @@
[Eth]
NetworkId = 56
LightPeers = 100
TrieTimeout = 150000000000
[Eth.Miner]
GasCeil = 140000000
GasPrice = 3000000000
Recommit = 10000000000
[Eth.TxPool]
Locals = []
NoLocals = true
Journal = "transactions.rlp"
Rejournal = 3600000000000
PriceLimit = 3000000000
PriceBump = 10
AccountSlots = 200
GlobalSlots = 8000
AccountQueue = 200
GlobalQueue = 4000
[Eth.GPO]
Blocks = 20
Percentile = 60
OracleThreshold = 1000
[Node]
IPCPath = "geth.ipc"
HTTPHost = "localhost"
InsecureUnlockAllowed = false
HTTPPort = 8545
HTTPVirtualHosts = ["localhost"]
HTTPModules = ["eth", "net", "web3", "txpool", "parlia"]
WSPort = 8546
WSModules = ["net", "web3", "eth"]
[Node.P2P]
MaxPeers = 200
NoDiscovery = false
StaticNodes = []
ListenAddr = ":30311"
EnableMsgEvents = false
[Node.LogConfig]
FilePath = "bsc.log"
MaxBytesSize = 10485760
Level = "info"
FileRoot = ""

69
bsc/config/genesis.json Normal file

File diff suppressed because one or more lines are too long