File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed
Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ defmodule Scripts.FetchOperatorsMetadata do
77 # This Script is to fetch operators metadata from the blockchain activity
88 # and insert/update them into the Ecto database
99
10- def run ( fromBlock ) do
10+ def run ( ) do
1111 "Fetching old operators changes" |> Logger . debug ( )
12- update_operators_metadata ( fromBlock )
12+ update_operators_metadata ( )
1313
1414 "Done" |> Logger . debug ( )
1515 end
1616
17- def update_operators_metadata ( fromBlock ) do
17+ def update_operators_metadata ( ) do
1818 with { :ok , operators } <- OperatorStateRetriever . get_operators ( ) do
1919 # Construct tuple {%Operator{}, op_data}
2020 operators = Enum . map ( operators , fn op_data ->
Original file line number Diff line number Diff line change @@ -9,23 +9,9 @@ export ELIXIR_HOSTNAME=$ELIXIR_HOSTNAME
99export ALIGNED_CONFIG_FILE=$ALIGNED_CONFIG_FILE
1010export OPERATOR_FETCHER_WAIT_TIME_MS=$OPERATOR_FETCHER_WAIT_TIME_MS
1111
12- if [ " $# " -eq 0 ]; then
13- echo " Error, No arguments provided."
14- echo " Try running the make target with FROM_BLOCK=<n>"
15- exit 1
16- elif [ " $# " -eq 1 ]; then
17- # argument provided, use it
18- FROM=$1
19- else
20- echo " Please provide 1 arguments."
21- exit 1
22- fi
23-
24- echo " Running fetch_operators_metadata.sh from block: $FROM "
25-
2612mix compile --force # force recompile to get the latest .env values
2713
2814echo " You will now connect to the Telemetry Node, make sure you run the following command inside it:"
29- echo " Scripts.FetchOperatorsMetadata.run($FROM )"
15+ echo " Scripts.FetchOperatorsMetadata.run()"
3016
3117iex --sname fetch_operators_metadata --remsh telemetry@$ELIXIR_HOSTNAME
You can’t perform that action at this time.
0 commit comments