Skip to content

Commit fc9d2fa

Browse files
committed
fix(tools): send chain metadata url from upgrade testing
Signed-off-by: Artur Troian <[email protected]>
1 parent b756ba4 commit fc9d2fa

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

make/test-upgrade.mk

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ SNAPSHOT_SOURCE ?= sandbox
2525

2626
ifeq ($(SNAPSHOT_SOURCE),mainnet)
2727
SNAPSHOT_NETWORK := akashnet-2
28+
CHAIN_METADATA_URL := https://raw.githubusercontent.com/akash-network/net/master/mainnet/meta.json
2829
else
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
6871
test-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
7578
prepare-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
7982
bins:
8083
ifneq ($(findstring build,$(SKIP)),build)
8184
bins:
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
8386
endif
8487

8588
.PHONY: clean

0 commit comments

Comments
 (0)