Skip to content

Commit

Permalink
fix: l2-rpc gas price stay high (#193)
Browse files Browse the repository at this point in the history
* feat: gas oracle support volatile exchange rate

* feat: support volatile exchange rate

* update contracts

* update config file

* clean up

* fix: l2 rpc gas price stays high

* revert: gpo config for sequencer
  • Loading branch information
yiweichi authored Oct 17, 2024
1 parent 7e764d2 commit 8365399
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/l2-rpc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: l2-rpc helm chart
name: l2-rpc
version: 0.0.13
version: 0.0.14
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/l2-rpc/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# l2-rpc

![Version: 0.0.13](https://img.shields.io/badge/Version-0.0.13-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.14](https://img.shields.io/badge/Version-0.0.14-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

l2-rpc helm chart

Expand All @@ -25,7 +25,7 @@ Kubernetes: `>=1.22.0-0`
|-----|------|---------|-------------|
| command[0] | string | `"bash"` | |
| command[1] | string | `"-c"` | |
| command[2] | string | `"geth --datadir \"/l2geth/data\" init /l2geth/genesis/genesis.json && echo \"[Node.P2P] StaticNodes = $L2GETH_PEER_LIST\" > \"/l2geth/config.toml\" && geth --datadir \"/l2geth/data\" --port \"$L2GETH_P2P_PORT\" --nodiscover --syncmode full --networkid \"$CHAIN_ID\" --config \"/l2geth/config.toml\" --http --http.port \"$L2GETH_RPC_HTTP_PORT\" --http.addr \"0.0.0.0\" --http.vhosts=\"*\" --http.corsdomain '*' --http.api \"eth,scroll,net,web3,debug\" --pprof --pprof.addr \"0.0.0.0\" --pprof.port 6060 --ws --ws.port \"$L2GETH_RPC_WS_PORT\" --ws.addr \"0.0.0.0\" --ws.api \"eth,scroll,net,web3,debug\" $L2GETH_CCC_FLAG --ccc.numworkers \"$L2GETH_CCC_NUMWORKERS\" $METRICS_FLAGS --gcmode archive --cache.noprefetch --verbosity 3 --txpool.globalqueue 4096 --txpool.globalslots 40960 --txpool.pricelimit \"$L2GETH_MIN_GAS_PRICE\" $LOCALS_FLAG --miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --rpc.gascap 0 --gpo.ignoreprice \"$L2GETH_MIN_GAS_PRICE\" --gpo.percentile 20 --gpo.blocks 100 --l1.endpoint \"$L2GETH_L1_ENDPOINT\" --l1.confirmations \"$L2GETH_L1_WATCHER_CONFIRMATIONS\" --l1.sync.startblock \"$L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK\" --rollup.verify --metrics --metrics.expensive $L2GETH_EXTRA_PARAMS"` | |
| command[2] | string | `"geth --datadir \"/l2geth/data\" init /l2geth/genesis/genesis.json && echo \"[Node.P2P] StaticNodes = $L2GETH_PEER_LIST\" > \"/l2geth/config.toml\" && geth --datadir \"/l2geth/data\" --port \"$L2GETH_P2P_PORT\" --nodiscover --syncmode full --networkid \"$CHAIN_ID\" --config \"/l2geth/config.toml\" --http --http.port \"$L2GETH_RPC_HTTP_PORT\" --http.addr \"0.0.0.0\" --http.vhosts=\"*\" --http.corsdomain '*' --http.api \"eth,scroll,net,web3,debug\" --pprof --pprof.addr \"0.0.0.0\" --pprof.port 6060 --ws --ws.port \"$L2GETH_RPC_WS_PORT\" --ws.addr \"0.0.0.0\" --ws.api \"eth,scroll,net,web3,debug\" $L2GETH_CCC_FLAG --ccc.numworkers \"$L2GETH_CCC_NUMWORKERS\" $METRICS_FLAGS --gcmode archive --cache.noprefetch --verbosity 3 --txpool.globalqueue 4096 --txpool.globalslots 40960 --txpool.pricelimit \"$L2GETH_MIN_GAS_PRICE\" $LOCALS_FLAG --miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --rpc.gascap 0 --gpo.ignoreprice \"$L2GETH_MIN_GAS_PRICE\" --gpo.percentile 20 --gpo.blocks 100 --gpo.congestionthreshold 500 --l1.endpoint \"$L2GETH_L1_ENDPOINT\" --l1.confirmations \"$L2GETH_L1_WATCHER_CONFIRMATIONS\" --l1.sync.startblock \"$L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK\" --rollup.verify --metrics --metrics.expensive $L2GETH_EXTRA_PARAMS"` | |
| controller.replicas | int | `1` | |
| controller.strategy | string | `"RollingUpdate"` | |
| controller.type | string | `"statefulset"` | |
Expand Down
1 change: 1 addition & 0 deletions charts/l2-rpc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ command:
--miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --rpc.gascap 0 --gpo.ignoreprice \"$L2GETH_MIN_GAS_PRICE\" \
--gpo.percentile 20 \
--gpo.blocks 100 \
--gpo.congestionthreshold 500 \
--l1.endpoint \"$L2GETH_L1_ENDPOINT\" --l1.confirmations \"$L2GETH_L1_WATCHER_CONFIRMATIONS\" --l1.sync.startblock \"$L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK\" \
--rollup.verify \
--metrics --metrics.expensive \
Expand Down
4 changes: 2 additions & 2 deletions charts/scroll-sdk/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: scroll helm charts to deploy scroll sdk
name: scroll-sdk
version: 0.0.49
version: 0.0.50
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down Expand Up @@ -70,7 +70,7 @@ dependencies:
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: l2-bootnode.enabled
- name: l2-rpc
version: 0.0.13
version: 0.0.14
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: l2-rpc.enabled
- name: grafana
Expand Down
4 changes: 2 additions & 2 deletions charts/scroll-sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scroll-sdk

![Version: 0.0.49](https://img.shields.io/badge/Version-0.0.49-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.50](https://img.shields.io/badge/Version-0.0.50-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

scroll helm charts to deploy scroll sdk

Expand Down Expand Up @@ -38,7 +38,7 @@ Kubernetes: `>=1.22.0-0`
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l1-devnet | 0.0.3 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l1-explorer | 0.0.2 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l2-bootnode | 0.0.14 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l2-rpc | 0.0.13 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l2-rpc | 0.0.14 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l2-sequencer | 0.0.12 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | rollup-explorer-backend | 0.0.4 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | rollup-node | 0.0.12 |
Expand Down
2 changes: 1 addition & 1 deletion devnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ L1_RPC_HOST := l1-devnet.scrollsdk

bootstrap:
echo "Pulling helm chart..."
helm pull oci://ghcr.io/scroll-tech/scroll-sdk/helm/scroll-sdk --version 0.0.49
helm pull oci://ghcr.io/scroll-tech/scroll-sdk/helm/scroll-sdk --version 0.0.50
echo "Extracting helm chart..."
tar -xvf *.tgz
$(MAKE) config
Expand Down

0 comments on commit 8365399

Please sign in to comment.