diff --git a/Dockerfile.l1 b/Dockerfile.l1 index 10ee11b..dd603be 100644 --- a/Dockerfile.l1 +++ b/Dockerfile.l1 @@ -3,6 +3,8 @@ FROM ethereum/client-go:v1.13.14 RUN apk add --no-cache jq curl COPY entrypoint-l1.sh /entrypoint.sh +COPY config/config.toml /config/config.toml +COPY config/jwt-secret.json /config/jwt-secret.json VOLUME ["/db"] diff --git a/config/config.toml b/config/config.toml new file mode 100644 index 0000000..14712de --- /dev/null +++ b/config/config.toml @@ -0,0 +1,111 @@ +[Eth] +NetworkId = 900 +SyncMode = "full" +EthDiscoveryURLs = [] +SnapDiscoveryURLs = [] +NoPruning = true +NoPrefetch = false +TxLookupLimit = 2350000 +StateHistory = 90000 +LightPeers = 100 +DatabaseCache = 315 +DatabaseFreezer = "" +TrieCleanCache = 94 +TrieDirtyCache = 157 +TrieTimeout = 3600000000000 +SnapshotCache = 63 +Preimages = true +FilterLogCacheSize = 32 +EnablePreimageRecording = false +RPCGasCap = 50000000 +RPCEVMTimeout = 5000000000 +RPCTxFeeCap = 1e+00 + +[Eth.Miner] +Etherbase = "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266" +GasFloor = 0 +GasCeil = 30000000 +GasPrice = 1 +Recommit = 2000000000 +NewPayloadTimeout = 2000000000 + +[Eth.TxPool] +Locals = [] +NoLocals = false +Journal = "transactions.rlp" +Rejournal = 3600000000000 +PriceLimit = 1 +PriceBump = 10 +AccountSlots = 16 +GlobalSlots = 5120 +AccountQueue = 64 +GlobalQueue = 1024 +Lifetime = 10800000000000 + +[Eth.BlobPool] +Datadir = "blobpool" +Datacap = 2684354560 +PriceBump = 100 + +[Eth.GPO] +Blocks = 20 +Percentile = 60 +MaxHeaderHistory = 1024 +MaxBlockHistory = 1024 +MaxPrice = 500000000000 +IgnorePrice = 2 + +[Node] +DataDir = "/db" +UseLightweightKDF = true +InsecureUnlockAllowed = true +IPCPath = "geth.ipc" +HTTPHost = "0.0.0.0" +HTTPPort = 8545 +HTTPCors = ["*"] +HTTPVirtualHosts = ["*"] +HTTPModules = ["web3", "debug", "eth", "txpool", "net", "engine"] +AuthAddr = "0.0.0.0" +AuthPort = 8551 +AuthVirtualHosts = ["*"] +WSHost = "0.0.0.0" +WSPort = 8546 +WSOrigins = ["*"] +WSModules = ["debug", "eth", "txpool", "net", "engine"] +GraphQLVirtualHosts = ["localhost"] +AllowUnprotectedTxs = true +BatchRequestLimit = 1000 +BatchResponseMaxSize = 25000000 +JWTSecret = "/config/jwt-secret.txt" + +[Node.P2P] +MaxPeers = 0 +NoDiscovery = true +DiscoveryV4 = true +BootstrapNodes = ["enode://d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666@18.138.108.67:30303", "enode://22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de@3.209.45.79:30303", "enode://2b252ab6a1d0f971d9722cb839a42cb81db019ba44c08754628ab4a823487071b5695317c8ccd085219c3a03af063495b2f1da8d18218da2d6a82981b45e6ffc@65.108.70.101:30303", "enode://4aeb4ab6c14b23e2c4cfdce879c04b0748a20d8e9b59e25ded2a08143e265c6c25936e74cbc8e641e3312ca288673d91f2f93f8e277de3cfa444ecdaaf982052@157.90.35.166:30303"] +BootstrapNodesV5 = ["enr:-KG4QMOEswP62yzDjSwWS4YEjtTZ5PO6r65CPqYBkgTTkrpaedQ8uEUo1uMALtJIvb2w_WWEVmg5yt1UAuK1ftxUU7QDhGV0aDKQu6TalgMAAAD__________4JpZIJ2NIJpcIQEnfA2iXNlY3AyNTZrMaEDfol8oLr6XJ7FsdAYE7lpJhKMls4G_v6qQOGKJUWGb_uDdGNwgiMog3VkcIIjKA", "enr:-KG4QF4B5WrlFcRhUU6dZETwY5ZzAXnA0vGC__L1Kdw602nDZwXSTs5RFXFIFUnbQJmhNGVU6OIX7KVrCSTODsz1tK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ZhwRiwHvqNXdoN0Y3CCI4yDdWRwgiOM"] +StaticNodes = [] +TrustedNodes = [] +ListenAddr = "" +DiscAddr = "" +NoDial = true +EnableMsgEvents = false + +[Node.HTTPTimeouts] +ReadTimeout = 30000000000 +ReadHeaderTimeout = 30000000000 +WriteTimeout = 30000000000 +IdleTimeout = 120000000000 + +[Metrics] +Enabled = true +HTTP = "0.0.0.0" +Port = 6060 +InfluxDBEndpoint = "http://localhost:8086" +InfluxDBDatabase = "geth" +InfluxDBUsername = "test" +InfluxDBPassword = "test" +InfluxDBTags = "host=localhost" +InfluxDBToken = "test" +InfluxDBBucket = "geth" +InfluxDBOrganization = "geth" diff --git a/config/jwt-secret.json b/config/jwt-secret.json new file mode 100644 index 0000000..6e72091 --- /dev/null +++ b/config/jwt-secret.json @@ -0,0 +1 @@ +688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a diff --git a/entrypoint-l1.sh b/entrypoint-l1.sh index 9d9918a..50ef668 100644 --- a/entrypoint-l1.sh +++ b/entrypoint-l1.sh @@ -38,37 +38,15 @@ fi # pruned within minutes of starting the devnet. exec geth \ + --config=/config/config.toml \ --dev \ --dev.period=12 \ --datadir="$GETH_DATA_DIR" \ --verbosity="$VERBOSITY" \ - --http \ - --http.corsdomain="*" \ - --http.vhosts="*" \ - --http.addr=0.0.0.0 \ --http.port="$RPC_PORT" \ - --http.api=web3,debug,eth,txpool,net,engine \ - --ws \ - --ws.addr=0.0.0.0 \ --ws.port="$WS_PORT" \ - --ws.origins="*" \ - --ws.api=debug,eth,txpool,net,engine \ - --syncmode=full \ - --nodiscover \ - --maxpeers=1 \ --networkid=$CHAIN_ID \ --unlock=$BLOCK_SIGNER_ADDRESS \ - --mine \ --miner.etherbase=$BLOCK_SIGNER_ADDRESS \ --password="$GETH_DATA_DIR"/password \ - --allow-insecure-unlock \ - --rpc.allow-unprotected-txs \ - --authrpc.addr="0.0.0.0" \ - --authrpc.port="8551" \ - --authrpc.vhosts="*" \ - --authrpc.jwtsecret=/config/jwt-secret.txt \ - --gcmode=archive \ - --metrics \ - --metrics.addr=0.0.0.0 \ - --metrics.port=6060 \ "$@"