Skip to content

Commit

Permalink
new refetch script
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderZhi committed Dec 4, 2023
1 parent c868c4a commit 0a1b4a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/refetch2.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 0a1b4a4

Please sign in to comment.