Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/tests/calibnet_stateless_rpc_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function forest_run_node_stateless_detached_with_filter_list {
pkill -9 forest || true
local filter_list=$1

$FOREST_PATH --chain calibnet --encrypt-keystore false --log-dir "$LOG_DIRECTORY" --skip-load-actors --stateless --rpc-filter-list "$filter_list" &
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--stateless implies --skip-load-actors

$FOREST_PATH --chain calibnet --encrypt-keystore false --log-dir "$LOG_DIRECTORY" --stateless --rpc-filter-list "$filter_list" &
forest_wait_api
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function forest_run_node_stateless_detached {
listening_multiaddrs = ["/ip4/127.0.0.1/tcp/0"]
EOF

$FOREST_PATH --chain calibnet --encrypt-keystore false --config "$CONFIG_PATH" --log-dir "$LOG_DIRECTORY" --save-token ./stateless_admin_token --skip-load-actors --stateless &
$FOREST_PATH --chain calibnet --encrypt-keystore false --config "$CONFIG_PATH" --log-dir "$LOG_DIRECTORY" --save-token ./stateless_admin_token --stateless &
}

function forest_wait_api {
Expand Down
7 changes: 5 additions & 2 deletions src/daemon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,11 @@ pub(super) async fn start_services(
if opts.exit_after_init {
return Ok(());
}
if !opts.stateless {
ctx.state_manager.maybe_rewind_heaviest_tipset()?;
if !opts.stateless
&& !opts.skip_load_actors
&& let Err(e) = ctx.state_manager.maybe_rewind_heaviest_tipset()
{
tracing::warn!("error in maybe_rewind_heaviest_tipset: {e}");
}
let p2p_service = create_p2p_service(&mut services, &mut config, &ctx).await?;
let mpool = create_mpool(&mut services, &p2p_service, &ctx)?;
Expand Down
Loading