From 933a969c22bbfc5c0cdabcfb9411b5d2e7ed063e Mon Sep 17 00:00:00 2001 From: seventeen <315654883@qq.com> Date: Thu, 17 Apr 2025 14:53:47 +0800 Subject: [PATCH] update download url to r2 --- 184_patch/patch.sh | 2 +- README.md | 4 ++-- README_CN.md | 4 ++-- README_CN_testnet.md | 4 ++-- README_testnet.md | 4 ++-- archive-node.md | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/184_patch/patch.sh b/184_patch/patch.sh index 06c3558..86b965b 100644 --- a/184_patch/patch.sh +++ b/184_patch/patch.sh @@ -17,7 +17,7 @@ echo "IOTEX_HOME : $IOTEX_HOME" cd $IOTEX_HOME #download readtip file -curl https://storage.googleapis.com/blockchain-archive/readtip > $IOTEX_HOME/readtip +curl https://r2.iotex.io/readtip > $IOTEX_HOME/readtip if [ ! -f $IOTEX_HOME/readtip ];then echo "$IOTEX_HOME/readtip does not exist" diff --git a/README.md b/README.md index 2376980..40bbc4c 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ tar -xzf data.tar.gz or download from Google Cloud: ``` -curl -L https://storage.googleapis.com/blockchain-archive/mainnet-data-latest.tar.gz > $IOTEX_HOME/data.tar.gz +curl -L https://r2.iotex.io/mainnet-data-latest.tar.gz > $IOTEX_HOME/data.tar.gz tar -xzf data.tar.gz ``` @@ -72,7 +72,7 @@ https://t.iotex.me/mainnet-data-with-idx-latest. - Optional 2: If you only want to sync chain data from 0 height without relaying on legacy delegate election data from Ethereum, you can setup legacy delegate election data with following command: ```bash -curl -L https://storage.googleapis.com/blockchain-golden/poll.mainnet.tar.gz > $IOTEX_HOME/poll.tar.gz; tar -xzf $IOTEX_HOME/poll.tar.gz --directory $IOTEX_HOME/data +curl -L https://r2.iotex.io/poll.mainnet.tar.gz > $IOTEX_HOME/poll.tar.gz; tar -xzf $IOTEX_HOME/poll.tar.gz --directory $IOTEX_HOME/data ``` - Optional 3: If you want to sync the chain from 0 height and also fetching legacy delegate election data from Ethereum, please change the `gravityChainAPIs` in config.yaml to use your infura key with Ethereum archive mode supported or change the API endpoint to an Ethereum archive node which you can access. diff --git a/README_CN.md b/README_CN.md index 5c2c494..b810994 100644 --- a/README_CN.md +++ b/README_CN.md @@ -59,7 +59,7 @@ tar -xzf data.tar.gz ``` 或者 请运行以下命令 ``` -curl -L https://storage.googleapis.com/blockchain-archive/mainnet-data-latest.tar.gz > $IOTEX_HOME/data.tar.gz +curl -L https://r2.iotex.io/mainnet-data-latest.tar.gz > $IOTEX_HOME/data.tar.gz tar -xzf data.tar.gz ``` @@ -69,7 +69,7 @@ tar -xzf data.tar.gz - 选择2:如果计划从 0 区块高度开始同步链上数据而不使用来自以太坊旧的节点代表数据,执行以下命令设置旧的节点代表数据: ``` -curl -L https://storage.googleapis.com/blockchain-golden/poll.mainnet.tar.gz > $IOTEX_HOME/poll.tar.gz; tar -xzf $IOTEX_HOME/poll.tar.gz --directory $IOTEX_HOME/data +curl -L https://r2.iotex.io/poll.mainnet.tar.gz > $IOTEX_HOME/poll.tar.gz; tar -xzf $IOTEX_HOME/poll.tar.gz --directory $IOTEX_HOME/data ``` - 选择3:如果计划从 0 区块高度开始同步链并从以太坊获取旧的节点代表数据,请更改 config.yaml 中的 `gravityChainAPIs`并在支持以太坊存档模式的情况下使用您的 infura 密钥,或将 API 端点更改为您有权限访问的以太坊存档节点。 diff --git a/README_CN_testnet.md b/README_CN_testnet.md index 6cdc7c5..00ad657 100644 --- a/README_CN_testnet.md +++ b/README_CN_testnet.md @@ -57,7 +57,7 @@ tar -xzf data.tar.gz ``` 或者 请运行以下命令 ``` -curl -L https://storage.googleapis.com/blockchain-archive/testnet-data-latest.tar.gz > $IOTEX_HOME/data.tar.gz +curl -L https://r2.iotex.io/testnet-data-latest.tar.gz > $IOTEX_HOME/data.tar.gz tar -xzf data.tar.gz ``` @@ -67,7 +67,7 @@ tar -xzf data.tar.gz - 选择2:如果计划从 0 区块高度开始同步链上数据而不使用来自以太坊旧的节点代表数据,执行以下命令设置旧的节点代表数据: ``` -curl -L https://storage.googleapis.com/blockchain-golden/poll.testnet.tar.gz > $IOTEX_HOME/poll.tar.gz; tar -xzf $IOTEX_HOME/poll.tar.gz --directory $IOTEX_HOME/data +curl -L https://r2.iotex.io/poll.testnet.tar.gz > $IOTEX_HOME/poll.tar.gz; tar -xzf $IOTEX_HOME/poll.tar.gz --directory $IOTEX_HOME/data ``` - 选择3:如果计划从 0 区块高度开始同步链并从以太坊获取旧的节点代表数据,请更改 config.yaml 中的 `gravityChainAPIs`并在支持以太坊存档模式的情况下使用您的 infura 密钥,或将 API 端点更改为您有权限访问的以太坊存档节点。 diff --git a/README_testnet.md b/README_testnet.md index 77eefc8..230883b 100644 --- a/README_testnet.md +++ b/README_testnet.md @@ -59,7 +59,7 @@ tar -xzf data.tar.gz or download from Google Cloud: ``` -curl -L https://storage.googleapis.com/blockchain-archive/testnet-data-latest.tar.gz > $IOTEX_HOME/data.tar.gz +curl -L https://r2.iotex.io/testnet-data-latest.tar.gz > $IOTEX_HOME/data.tar.gz tar -xzf data.tar.gz ``` @@ -70,7 +70,7 @@ https://t.iotex.me/testnet-data-with-idx-latest. - Optional 2: If you only want to sync chain data from 0 height without relaying on legacy delegate election data from Ethereum, you can setup legacy delegate election data with following command: ```bash -curl -L https://storage.googleapis.com/blockchain-golden/poll.testnet.tar.gz > $IOTEX_HOME/poll.tar.gz; tar -xzf $IOTEX_HOME/poll.tar.gz --directory $IOTEX_HOME/data +curl -L https://r2.iotex.io/poll.testnet.tar.gz > $IOTEX_HOME/poll.tar.gz; tar -xzf $IOTEX_HOME/poll.tar.gz --directory $IOTEX_HOME/data ``` - Optional 3: If you want to sync the chain from 0 height and also fetching legacy delegate election data from Ethereum, please change the `gravityChainAPIs` in config.yaml to use your infura key with Ethereum archive mode supported or change the API endpoint to an Ethereum archive node which you can access. diff --git a/archive-node.md b/archive-node.md index 6b822b0..62d02d9 100644 --- a/archive-node.md +++ b/archive-node.md @@ -57,7 +57,7 @@ mkdir -p $IOTEX_HOME/log curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/config_archive_mainnet.yaml > $IOTEX_HOME/etc/config.yaml curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/genesis_mainnet.yaml > $IOTEX_HOME/etc/genesis.yaml curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/trie.db.patch > $IOTEX_HOME/data/trie.db.patch -curl https://storage.googleapis.com/blockchain-golden/poll.mainnet.db > $IOTEX_HOME/data/poll.db +curl https://r2.iotex.io/poll.mainnet.db > $IOTEX_HOME/data/poll.db ``` ## Download Data Next step is to download the snapshot data. There are 2 files to download. The @@ -70,7 +70,7 @@ need to download and uncompress this file. In the $IOTEX_HOME folder, run the following commands: ``` #download the data files and uncompress it -curl -LO https://storage.googleapis.com/blockchain-golden/archive/iotex-data.tar.gz +curl -LO https://r2.iotex.io/iotex-data.tar.gz tar -xzf iotex-data.tar.gz #download the state database file