Skip to content
Draft
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
8 changes: 3 additions & 5 deletions f3-sidecar/f3manifest_calibnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
"Pause": false,
"ProtocolVersion": 7,
"InitialInstance": 0,
"BootstrapEpoch": 2081674,
"NetworkName": "calibrationnet",
"BootstrapEpoch": 3385534,
"NetworkName": "calibrationnet2",
"ExplicitPower": null,
"IgnoreECPower": false,
"InitialPowerTable": {
"/": "bafy2bzaceab236vmmb3n4q4tkvua2n4dphcbzzxerxuey3mot4g3cov5j3r2c"
},
"InitialPowerTable": null,
"CommitteeLookback": 10,
"CatchUpAlignment": 15000000000,
"Gpbft": {
Expand Down
25 changes: 13 additions & 12 deletions scripts/tests/calibnet_no_discovery_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ until $FOREST_CLI_PATH net peers | grep "calib"; do
done

# Verify F3 is getting certificates from the network
until [[ $($FOREST_CLI_PATH f3 certs get --output json | jq '.GPBFTInstance') -gt 100 ]]; do
sleep 1s;
done

echo "Test subcommands: f3 status"
$FOREST_CLI_PATH f3 status
echo "Test subcommands: f3 manifest"
$FOREST_CLI_PATH f3 manifest
echo "Test subcommands: f3 certs get"
$FOREST_CLI_PATH f3 certs list
echo "Test subcommands: f3 certs list"
$FOREST_CLI_PATH f3 certs get
# Disable until F3 is re-activated on calibnet
# until [[ $($FOREST_CLI_PATH f3 certs get --output json | jq '.GPBFTInstance') -gt 100 ]]; do
# sleep 1s;
# done

# echo "Test subcommands: f3 status"
# $FOREST_CLI_PATH f3 status
# echo "Test subcommands: f3 manifest"
# $FOREST_CLI_PATH f3 manifest
# echo "Test subcommands: f3 certs get"
# $FOREST_CLI_PATH f3 certs list
# echo "Test subcommands: f3 certs list"
# $FOREST_CLI_PATH f3 certs get
5 changes: 5 additions & 0 deletions src/health/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ async fn check_f3_running(state: &ForestState, acc: &mut MessageAccumulator) ->
} else if F3IsRunning::is_f3_running().await.unwrap_or_default() {
acc.push_ok("f3 running");
true
} else if crate::f3::get_f3_sidecar_params(&state.chain_config).bootstrap_epoch
> state.sync_status.read().network_head_epoch
{
acc.push_ok("f3 pending activation");
true
} else {
acc.push_err("f3 not running");
false
Expand Down
12 changes: 4 additions & 8 deletions src/networks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,12 @@ impl ChainConfig {
// FIP-0100: 300M -> 1.2B FIL
upgrade_teep_initial_fil_reserved: Some(TokenAmount::from_whole(1_200_000_000)),
// Enable after `f3_initial_power_table` is determined and set to avoid GC hell
// (state tree of epoch 2_081_674 - 900 has to be present in the database if `f3_initial_power_table` is not set)
// (state tree of epoch 3_385_534 - 900 has to be present in the database if `f3_initial_power_table` is not set)
f3_enabled: true,
f3_consensus: true,
// 2024-10-24T13:30:00Z
f3_bootstrap_epoch: 2_081_674,
f3_initial_power_table: Some(
"bafy2bzaceab236vmmb3n4q4tkvua2n4dphcbzzxerxuey3mot4g3cov5j3r2c"
.parse()
.expect("invalid f3_initial_power_table"),
),
// 2026-01-19T07:00:00Z
f3_bootstrap_epoch: 3_385_534,
f3_initial_power_table: None,
enable_indexer: false,
enable_receipt_event_caching: true,
default_max_fee: TokenAmount::zero(),
Expand Down
Loading