add testnet

This commit is contained in:
Sebastian
2024-10-23 04:13:38 +02:00
parent 0c56968419
commit 7ffba3114f
3 changed files with 87 additions and 0 deletions

35
bsc-testnet.yml Normal file
View File

@@ -0,0 +1,35 @@
version: '3.1'
services:
bsc-testnet:
image: ghcr.io/bnb-chain/bsc:1.4.15
user: root
ports:
- "29061:29061"
- "29061:29061/udp"
expose:
- "8545"
- "8546"
- "29061"
volumes:
- bsc-testnet:/bsc-testnet/.ethereum
- ./bsc-testnet/config:/bsc-testnet/config
entrypoint: geth
command: --config=/bsc-testnet/config/config.toml --ws.origins='*' --history.transactions=0 --state.scheme=path --syncmode=full --db.engine=pebble --rpc.gascap=600000000
restart: unless-stopped
stop_grace_period: 3m
networks:
- chains
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.bsc-testnet-stripprefix.stripprefix.prefixes=/bsc-testnet"
- "traefik.http.services.bsc-testnet.loadbalancer.server.port=8545"
- "traefik.http.routers.bsc-testnet.entrypoints=websecure"
- "traefik.http.routers.bsc-testnet.tls.certresolver=myresolver"
- "traefik.http.routers.bsc-testnet.rule=Host(`$DOMAIN`) && PathPrefix(`/bsc-testnet`)"
- "traefik.http.routers.bsc-testnet.middlewares=bsc-testnet-stripprefix, ipwhitelist"
volumes:
bsc-testnet:

View File

@@ -0,0 +1,47 @@
[Eth]
NetworkId = 97
LightPeers = 100
TrieTimeout = 150000000000
[Eth.Miner]
GasCeil = 140000000
GasPrice = 1000000000
Recommit = 10000000000
[Eth.TxPool]
Locals = []
NoLocals = true
Journal = "transactions.rlp"
Rejournal = 3600000000000
PriceLimit = 1000000000
PriceBump = 10
AccountSlots = 200
GlobalSlots = 8000
AccountQueue = 200
GlobalQueue = 4000
[Eth.GPO]
Blocks = 20
Percentile = 60
OracleThreshold = 1000
[Node]
IPCPath = "geth.ipc"
HTTPHost = "0.0.0.0"
InsecureUnlockAllowed = false
HTTPPort = 8545
HTTPVirtualHosts = ["*"]
HTTPModules = ["admin", "eth", "net", "web3", "txpool", "parlia"]
WSHost = "0.0.0.0"
WSPort = 8545
WSModules = ["net", "web3", "eth"]
[Node.P2P]
MaxPeers = 222
NoDiscovery = false
StaticNodes = []
ListenAddr = ":29061"
EnableMsgEvents = false

View File

@@ -392,6 +392,11 @@
"reth-bsc-fullnode" "reth-bsc-fullnode"
] ]
}, },
"bsc-testnet": {
"id": 97,
"urls": ["https://data-seed-prebsc-1-s3.bnbchain.org:8545"],
"default": ["bsc-testnet"]
},
"bartio": { "bartio": {
"id": 80084, "id": 80084,
"urls": [ "urls": [