@@ -25,9 +25,11 @@ SNAPSHOT_SOURCE ?= sandbox
2525
2626ifeq ($(SNAPSHOT_SOURCE ) ,mainnet)
2727 SNAPSHOT_NETWORK := akashnet-2
28+ CHAIN_METADATA_URL := https://raw.githubusercontent.com/akash-network/net/master/mainnet/meta.json
2829else
2930 ifeq ($(SNAPSHOT_SOURCE),sandbox)
3031 SNAPSHOT_NETWORK := sandbox-01
32+ CHAIN_METADATA_URL := https://raw.githubusercontent.com/akash-network/net/master/sandbox/meta.json
3133 else
3234$(error "invalid snapshot source $(SNAPSHOT_SOURCE)")
3335 endif
@@ -44,6 +46,7 @@ $(AKASH_INIT):
4446 --ufrom=$(UPGRADE_FROM ) \
4547 --uto=$(UPGRADE_TO ) \
4648 --config=" $( PWD) /config.json" \
49+ --chain-meta=$(CHAIN_METADATA_URL ) \
4750 --state-config=$(STATE_CONFIG ) \
4851 --snapshot-url=$(SNAPSHOT_URL ) init
4952 touch $@
@@ -66,20 +69,20 @@ test: init
6669
6770.PHONY : test-reset
6871test-reset :
69- $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --uto=$(UPGRADE_TO ) --snapshot-url=$(SNAPSHOT_URL ) clean
70- # $(ROOT_DIR)/script/upgrades.sh --workdir=$(AP_RUN_DIR) --config="$(PWD)/config.json" --uto=$(UPGRADE_TO) --snapshot-url=$(SNAPSHOT_URL) --gbv=$(GENESIS_BINARY_VERSION) bins
71- $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --uto=$(UPGRADE_TO ) --snapshot-url=$(SNAPSHOT_URL ) keys
72- $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --state-config=$(STATE_CONFIG ) --snapshot-url=$(SNAPSHOT_URL ) prepare-state
72+ $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --uto=$(UPGRADE_TO ) --snapshot-url=$(SNAPSHOT_URL ) --chain-meta= $( CHAIN_METADATA_URL ) clean
73+ # $(ROOT_DIR)/script/upgrades.sh --workdir=$(AP_RUN_DIR) --config="$(PWD)/config.json" --uto=$(UPGRADE_TO) --snapshot-url=$(SNAPSHOT_URL) --gbv=$(GENESIS_BINARY_VERSION) --chain-meta=$(CHAIN_METADATA_URL) bins
74+ $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --uto=$(UPGRADE_TO ) --snapshot-url=$(SNAPSHOT_URL ) --chain-meta= $( CHAIN_METADATA_URL ) keys
75+ $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --state-config=$(STATE_CONFIG ) --snapshot-url=$(SNAPSHOT_URL ) --chain-meta= $( CHAIN_METADATA_URL ) prepare-state
7376
7477.PHONY : prepare-state
7578prepare-state :
76- $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --state-config=$(STATE_CONFIG ) prepare-state
79+ $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --state-config=$(STATE_CONFIG ) --chain-meta= $( CHAIN_METADATA_URL ) prepare-state
7780
7881.PHONY : bins
7982bins :
8083ifneq ($(findstring build,$(SKIP ) ) ,build)
8184bins :
82- $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --uto=$(UPGRADE_TO ) bins
85+ $(ROOT_DIR ) /script/upgrades.sh --workdir=$(AP_RUN_DIR ) --config=" $( PWD) /config.json" --uto=$(UPGRADE_TO ) --chain-meta= $( CHAIN_METADATA_URL ) bins
8386endif
8487
8588.PHONY : clean
0 commit comments