copying genesis.json to /data/blast-data for blast

This commit is contained in:
jonathan@vulcanize.io 2024-03-05 20:32:56 +00:00 committed by jonathan@vulcanize.io
parent 42a1657afc
commit bf0027d10f
3 changed files with 13 additions and 2 deletions

View File

@ -64,7 +64,7 @@ services:
command: >
op-node
--l1="$L1_RPC_URL"
--l1.rpckind="$L1_RPC_KIND"
--l1.rpckind="any"
--l2="http://blast-geth:8551"
--l2.jwt-secret=/blast/jwt.txt
--rollup.config="/blast/${NETWORK:-mainnet}/rollup.json"

View File

@ -0,0 +1,11 @@
from pathlib import Path
from shutil import copy
def create(context, extra_args):
#Our goal here is just to copy the genesis.json file for blast
deployment_config_dir = context.deployment_dir.joinpath("data", "blast-data")
command_context = extra_args[2]
compose_file = [f for f in command_context.cluster_context.compose_files if "blast" in f][0]
source_config_file = Path(compose_file).parent.parent.joinpath("config", "blast", "genesis.json")
copy(source_config_file, deployment_config_dir)

View File

@ -2,7 +2,7 @@ version: "1.0"
name: blast
description: "A blast stack"
repos:
- github.com/blast-io/blast
containers:
pods:
- blast