Skip to content

Commit c680e6b

Browse files
Fix l2 sequencer backup (#177)
* upgrade l2geth to 5.7.21 * fix the sequencer * fix create-env-file script
1 parent b5089c8 commit c680e6b

15 files changed

Lines changed: 47 additions & 53 deletions

File tree

charts/l2-bootnode/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v2
33
description: l2-bootnode helm chart
44
name: l2-bootnode
5-
version: 0.0.11
5+
version: 0.0.12
66
appVersion: v0.1.0
77
kubeVersion: ">=1.22.0-0"
88
maintainers:

charts/l2-bootnode/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# l2-bootnode
22

3-
![Version: 0.0.11](https://img.shields.io/badge/Version-0.0.11-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
3+
![Version: 0.0.12](https://img.shields.io/badge/Version-0.0.12-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
44

55
l2-bootnode helm chart
66

@@ -58,7 +58,7 @@ Kubernetes: `>=1.22.0-0`
5858
| global.nameOverride | string | `"l2-bootnode"` | |
5959
| image.pullPolicy | string | `"Always"` | |
6060
| image.repository | string | `"scrolltech/l2geth"` | |
61-
| image.tag | string | `"scroll-v5.7.11"` | |
61+
| image.tag | string | `"scroll-v5.7.21"` | |
6262
| initContainers.wait-for-l1.command[0] | string | `"/bin/sh"` | |
6363
| initContainers.wait-for-l1.command[1] | string | `"-c"` | |
6464
| initContainers.wait-for-l1.command[2] | string | `"/wait-for-l1.sh $L2GETH_L1_ENDPOINT"` | |

charts/l2-bootnode/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ controller:
1111
image:
1212
repository: scrolltech/l2geth
1313
pullPolicy: Always
14-
tag: scroll-v5.7.11
14+
tag: scroll-v5.7.21
1515

1616
env:
1717
- name: L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK

charts/l2-rpc/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v2
33
description: l2-rpc helm chart
44
name: l2-rpc
5-
version: 0.0.10
5+
version: 0.0.11
66
appVersion: v0.1.0
77
kubeVersion: ">=1.22.0-0"
88
maintainers:

charts/l2-rpc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# l2-rpc
22

3-
![Version: 0.0.10](https://img.shields.io/badge/Version-0.0.10-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
3+
![Version: 0.0.11](https://img.shields.io/badge/Version-0.0.11-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
44

55
l2-rpc helm chart
66

@@ -60,7 +60,7 @@ Kubernetes: `>=1.22.0-0`
6060
| global.nameOverride | string | `"l2-rpc"` | |
6161
| image.pullPolicy | string | `"Always"` | |
6262
| image.repository | string | `"scrolltech/l2geth"` | |
63-
| image.tag | string | `"scroll-v5.7.11"` | |
63+
| image.tag | string | `"scroll-v5.7.21"` | |
6464
| ingress.main.annotations | object | `{}` | |
6565
| ingress.main.enabled | bool | `true` | |
6666
| ingress.main.hosts[0].host | string | `"l2-rpc.scrollsdk"` | |

charts/l2-rpc/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ controller:
1111
image:
1212
repository: scrolltech/l2geth
1313
pullPolicy: Always
14-
tag: scroll-v5.7.11
14+
tag: scroll-v5.7.21
1515

1616
service:
1717
main:

charts/l2-sequencer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v2
33
description: l2-sequencer helm charts
44
name: l2-sequencer
5-
version: 0.0.9
5+
version: 0.0.10
66
appVersion: v0.1.0
77
kubeVersion: ">=1.22.0-0"
88
maintainers:

charts/l2-sequencer/README.md

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# l2-sequencer
22

3-
![Version: 0.0.9](https://img.shields.io/badge/Version-0.0.9-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
3+
![Version: 0.0.10](https://img.shields.io/badge/Version-0.0.10-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
44

55
l2-sequencer helm charts
66

@@ -25,9 +25,7 @@ Kubernetes: `>=1.22.0-0`
2525
|-----|------|---------|-------------|
2626
| command[0] | string | `"bash"` | |
2727
| command[1] | string | `"-c"` | |
28-
| command[2] | string | `"mkdir -p /l2geth/data/keystore && mkdir -p /l2geth/data/geth && echo ${L2GETH_PASSWORD} > /l2geth/password && echo ${L2GETH_KEYSTORE} > /l2geth/data/keystore/keystore.json && echo ${L2GETH_NODEKEY} > /l2geth/data/geth/nodekey && geth --datadir \"/l2geth/data\" init /l2geth/genesis/genesis.json && geth --datadir \"/l2geth/data\" --port \"$L2GETH_P2P_PORT\" --nodiscover --syncmode full --networkid \"$CHAIN_ID\" --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\" --unlock \"$L2GETH_SIGNER_ADDRESS\" --password \"/l2geth/password\" --allow-insecure-unlock --mine --ccc --ccc.numworkers 5 --gcmode archive --cache.noprefetch --verbosity ${VERBOSITY} --txpool.globalqueue 4096 --txpool.globalslots 40960 --txpool.pricelimit \"$L2GETH_MIN_GAS_PRICE\" $LOCALS_FLAG --miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --miner.gaslimit \"$L2GETH_MINER_GASLIMIT\" --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"` | |
29-
| configMaps.config.data."config.toml" | string | `"[Node.P2P] StaticNodes = \"[]\"\n"` | |
30-
| configMaps.config.enabled | bool | `true` | |
28+
| command[2] | string | `"mkdir -p /l2geth/data/keystore && mkdir -p /l2geth/data/geth && echo \"[Node.P2P] StaticNodes = $L2GETH_PEER_LIST\" > \"/l2geth/config.toml\" && echo ${L2GETH_PASSWORD} > /l2geth/password && echo ${L2GETH_KEYSTORE} > /l2geth/data/keystore/keystore.json && echo ${L2GETH_NODEKEY} > /l2geth/data/geth/nodekey && geth --datadir \"/l2geth/data\" init /l2geth/genesis/genesis.json && 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\" --unlock \"$L2GETH_SIGNER_ADDRESS\" --password \"/l2geth/password\" --allow-insecure-unlock --mine --ccc --ccc.numworkers 5 --gcmode archive --cache.noprefetch --verbosity ${VERBOSITY} --txpool.globalqueue 4096 --txpool.globalslots 40960 --txpool.pricelimit \"$L2GETH_MIN_GAS_PRICE\" $LOCALS_FLAG --miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --miner.gaslimit \"$L2GETH_MINER_GASLIMIT\" --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"` | |
3129
| controller.replicas | int | `1` | |
3230
| controller.strategy | string | `"RollingUpdate"` | |
3331
| controller.type | string | `"statefulset"` | |
@@ -36,31 +34,29 @@ Kubernetes: `>=1.22.0-0`
3634
| defaultProbes.spec.httpGet.path | string | `"/"` | |
3735
| defaultProbes.spec.httpGet.port | int | `8545` | |
3836
| envFrom[0].configMapRef.name | string | `"l2-sequencer-env"` | |
39-
| env[0].name | string | `"L2GETH_PEER_LIST"` | |
40-
| env[0].value[0] | string | `""` | |
41-
| env[1].name | string | `"L2GETH_L1_WATCHER_CONFIRMATIONS"` | |
42-
| env[1].value | string | `"0x6"` | |
43-
| env[2].name | string | `"L2GETH_LOCALS"` | |
44-
| env[2].value | string | `""` | |
45-
| env[3].name | string | `"L2GETH_ENABLE_CCC"` | |
46-
| env[3].value | string | `"true"` | |
47-
| env[4].name | string | `"L2GETH_MINER_GASLIMIT"` | |
48-
| env[4].value | string | `"10000000"` | |
49-
| env[5].name | string | `"L2GETH_RPC_HTTP_PORT"` | |
50-
| env[5].value | int | `8545` | |
51-
| env[6].name | string | `"L2GETH_RPC_WS_PORT"` | |
52-
| env[6].value | int | `8546` | |
53-
| env[7].name | string | `"L2GETH_P2P_PORT"` | |
54-
| env[7].value | string | `"30303"` | |
55-
| env[8].name | string | `"L2GETH_MIN_GAS_PRICE"` | |
56-
| env[8].value | string | `"1000000"` | |
57-
| env[9].name | string | `"VERBOSITY"` | |
58-
| env[9].value | string | `"3"` | |
37+
| env[0].name | string | `"L2GETH_L1_WATCHER_CONFIRMATIONS"` | |
38+
| env[0].value | string | `"0x6"` | |
39+
| env[1].name | string | `"L2GETH_LOCALS"` | |
40+
| env[1].value | string | `""` | |
41+
| env[2].name | string | `"L2GETH_ENABLE_CCC"` | |
42+
| env[2].value | string | `"true"` | |
43+
| env[3].name | string | `"L2GETH_MINER_GASLIMIT"` | |
44+
| env[3].value | string | `"10000000"` | |
45+
| env[4].name | string | `"L2GETH_RPC_HTTP_PORT"` | |
46+
| env[4].value | int | `8545` | |
47+
| env[5].name | string | `"L2GETH_RPC_WS_PORT"` | |
48+
| env[5].value | int | `8546` | |
49+
| env[6].name | string | `"L2GETH_P2P_PORT"` | |
50+
| env[6].value | string | `"30303"` | |
51+
| env[7].name | string | `"L2GETH_MIN_GAS_PRICE"` | |
52+
| env[7].value | string | `"1000000"` | |
53+
| env[8].name | string | `"VERBOSITY"` | |
54+
| env[8].value | string | `"3"` | |
5955
| global.fullnameOverride | string | `"l2-sequencer"` | |
6056
| global.nameOverride | string | `"l2-sequencer"` | |
6157
| image.pullPolicy | string | `"Always"` | |
6258
| image.repository | string | `"scrolltech/l2geth"` | |
63-
| image.tag | string | `"scroll-v5.7.11"` | |
59+
| image.tag | string | `"scroll-v5.7.21"` | |
6460
| initContainers.wait-for-l1.command[0] | string | `"/bin/sh"` | |
6561
| initContainers.wait-for-l1.command[1] | string | `"-c"` | |
6662
| initContainers.wait-for-l1.command[2] | string | `"/wait-for-l1.sh $L2GETH_L1_ENDPOINT"` | |

charts/l2-sequencer/values.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ controller:
1111
image:
1212
repository: scrolltech/l2geth
1313
pullPolicy: Always
14-
tag: scroll-v5.7.11
14+
tag: scroll-v5.7.21
1515

1616
env:
17-
- name: L2GETH_PEER_LIST
18-
value: [""]
1917
- name: L2GETH_L1_WATCHER_CONFIRMATIONS
2018
value: "0x6"
2119
- name: L2GETH_LOCALS
@@ -45,12 +43,14 @@ command:
4543
"-c",
4644
"mkdir -p /l2geth/data/keystore && \
4745
mkdir -p /l2geth/data/geth && \
46+
echo \"[Node.P2P] StaticNodes = $L2GETH_PEER_LIST\" > \"/l2geth/config.toml\" && \
4847
echo ${L2GETH_PASSWORD} > /l2geth/password && \
4948
echo ${L2GETH_KEYSTORE} > /l2geth/data/keystore/keystore.json && \
5049
echo ${L2GETH_NODEKEY} > /l2geth/data/geth/nodekey && \
5150
geth --datadir \"/l2geth/data\" init /l2geth/genesis/genesis.json && \
5251
geth --datadir \"/l2geth/data\" \
5352
--port \"$L2GETH_P2P_PORT\" --nodiscover --syncmode full --networkid \"$CHAIN_ID\" \
53+
--config \"/l2geth/config.toml\" \
5454
--http --http.port \"$L2GETH_RPC_HTTP_PORT\" --http.addr \"0.0.0.0\" --http.vhosts=\"*\" --http.corsdomain \"*\" --http.api \"eth,scroll,net,web3,debug\" \
5555
--pprof --pprof.addr \"0.0.0.0\" --pprof.port 6060 \
5656
--ws --ws.port \"$L2GETH_RPC_WS_PORT\" --ws.addr \"0.0.0.0\" --ws.api \"eth,scroll,net,web3,debug\" \
@@ -153,13 +153,6 @@ persistence:
153153
name: wait-for-l1-script
154154
defaultMode: "0777"
155155

156-
configMaps:
157-
config:
158-
enabled: true
159-
data:
160-
config.toml: |
161-
[Node.P2P] StaticNodes = "[]"
162-
163156
serviceMonitor:
164157
main:
165158
enabled: true

charts/l2-sequencer/values/production-1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ configMaps:
3030
L2GETH_L1_ENDPOINT: ""
3131
L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK: ""
3232
L2GETH_SIGNER_ADDRESS: ""
33+
L2GETH_PEER_LIST: '[""]'
3334

3435
persistence:
3536
env:

0 commit comments

Comments
 (0)