frostfs-dev-env/services/chain/artifacts.mk
Alex Vanin 1818199ffc Download devenv chain dumps from github release
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-12-30 14:52:57 +03:00

17 lines
390 B
Makefile

# Download privnet chain dump with pre-deployed NeoFS contracts
get.chain: CHAIN_DUMP_NAME=devenv.dump.
get.chain: CHAIN_PATH?=
get.chain:
@mkdir -p ./vendor
ifeq (${CHAIN_PATH},)
@echo "⇒ Download blockchain dump from ${CHAIN_URL}"
@curl \
-sSL "${CHAIN_URL}" \
-o ./vendor/chain.gz
else
@echo "⇒ Copy local archive ${CHAIN_PATH}"
@cp ${CHAIN_PATH} ./vendor/chain.gz
endif