From 0a1b4a4cd3c475a509e2131a8152e625f7310002 Mon Sep 17 00:00:00 2001 From: zhi Date: Mon, 4 Dec 2023 14:56:37 +0800 Subject: [PATCH] new refetch script --- scripts/refetch2.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/refetch2.sh diff --git a/scripts/refetch2.sh b/scripts/refetch2.sh new file mode 100644 index 0000000..e6bb3a4 --- /dev/null +++ b/scripts/refetch2.sh @@ -0,0 +1,10 @@ +chain=$1 +shift +declare -A chainmap +chainmap["iotex"]="9081" +chainmap["ethereum"]="9083" +chainmap["matic"]="9085" +chainmap["bsc"]="9087" +echo "refetch from port:${port}" +curl -X POST localhost:$port/fetch -d '{"heights": '$@'}' +echo "...done" \ No newline at end of file