File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ echo 'encrypt_keystore = false' >> "${CONFIG_FILE}"
45
45
forest --chain calibnet --log-dir " $LOG_DIRECTORY " --halt-after-import --track-peak-rss --config " ${CONFIG_FILE} "
46
46
47
47
# Sync to HEAD. This might reveal migrations errors not caught above.
48
- forest --chain calibnet --log-dir " $LOG_DIRECTORY " --track-peak-rss --config " ${CONFIG_FILE} " &
48
+ forest --chain calibnet --log-dir " $LOG_DIRECTORY " --save-token ./admin_token --track-peak-rss --config " ${CONFIG_FILE} " &
49
+
50
+ forest_wait_api
51
+
52
+ ADMIN_TOKEN=$( cat admin_token)
53
+ FULLNODE_API_INFO=" $ADMIN_TOKEN :/ip4/127.0.0.1/tcp/2345/http"
49
54
50
55
forest_wait_for_sync
51
56
forest_check_db_stats
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ function forest_run_node_stateless_detached_with_filter_list {
11
11
local filter_list=$1
12
12
13
13
$FOREST_PATH --chain calibnet --encrypt-keystore false --log-dir " $LOG_DIRECTORY " --skip-load-actors --stateless --rpc-filter-list " $filter_list " &
14
+ forest_wait_api
14
15
}
15
16
16
17
# Tests the RPC method `Filecoin.ChainHead` and checks if the status code matches the expected code.
Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ function forest_init {
119
119
120
120
function forest_init_stateless {
121
121
forest_run_node_stateless_detached
122
-
122
+ forest_wait_api
123
+
123
124
ADMIN_TOKEN=$( cat stateless_admin_token)
124
125
FULLNODE_API_INFO=" $ADMIN_TOKEN :/ip4/127.0.0.1/tcp/2345/http"
125
126
You can’t perform that action at this time.
0 commit comments