frostfs-dev-env/services/chain/artifacts.mk

18 lines
390 B
Makefile
Raw Normal View History

# Download privnet chain dump with pre-deployed NeoFS contracts
2020-07-10 15:14:30 +00:00
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}"
2020-07-10 15:14:30 +00:00
@curl \
-sSL "${CHAIN_URL}" \
2020-07-10 15:14:30 +00:00
-o ./vendor/chain.gz
else
@echo "⇒ Copy local archive ${CHAIN_PATH}"
@cp ${CHAIN_PATH} ./vendor/chain.gz
endif