From 94eaec7c207467c1a14ab42260413ac7580573fe Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 12 Feb 2026 15:43:37 +0800 Subject: [PATCH 1/3] fix(f3): set F3 initial power table on calibnet --- f3-sidecar/f3manifest_calibnet.json | 6 +++-- scripts/tests/api_compare/filter-list | 2 -- scripts/tests/calibnet_no_discovery_check.sh | 25 +++++++++---------- src/networks/mod.rs | 6 ++++- .../subcommands/api_cmd/api_compare_tests.rs | 2 +- 5 files changed, 22 insertions(+), 19 deletions(-) diff --git a/f3-sidecar/f3manifest_calibnet.json b/f3-sidecar/f3manifest_calibnet.json index 868b27c5dc44..497ce67e7633 100644 --- a/f3-sidecar/f3manifest_calibnet.json +++ b/f3-sidecar/f3manifest_calibnet.json @@ -6,7 +6,9 @@ "NetworkName": "calibrationnet2", "ExplicitPower": null, "IgnoreECPower": false, - "InitialPowerTable": null, + "InitialPowerTable": { + "/": "bafy2bzacednijkh5dhb6jb7snxhhtjt7zuqaydlewoha3ordhy76dhgwtmptg" + }, "CommitteeLookback": 10, "CatchUpAlignment": 15000000000, "Gpbft": { @@ -67,4 +69,4 @@ "MaxBufferedMessagesPerInstance": 25000, "MaxCachedValidatedMessagesPerInstance": 25000 } -} +} \ No newline at end of file diff --git a/scripts/tests/api_compare/filter-list b/scripts/tests/api_compare/filter-list index f95a722f47c7..0656b736d920 100644 --- a/scripts/tests/api_compare/filter-list +++ b/scripts/tests/api_compare/filter-list @@ -1,4 +1,2 @@ # This list contains potentially broken methods (or tests) that are ignored. # They should be considered bugged, and not used until the root cause is resolved. -# F3 is to be revived around 2026-02-12 -!Filecoin.F3 diff --git a/scripts/tests/calibnet_no_discovery_check.sh b/scripts/tests/calibnet_no_discovery_check.sh index d6fbd6aa4692..5d3332dca6ef 100755 --- a/scripts/tests/calibnet_no_discovery_check.sh +++ b/scripts/tests/calibnet_no_discovery_check.sh @@ -23,16 +23,15 @@ until $FOREST_CLI_PATH net peers | grep "calib"; do done # Verify F3 is getting certificates from the network -# 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 +until [[ $($FOREST_CLI_PATH f3 certs get --output json | jq '.GPBFTInstance') -gt 50 ]]; 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 diff --git a/src/networks/mod.rs b/src/networks/mod.rs index 4562fa79e289..5cab9a0e9cf4 100644 --- a/src/networks/mod.rs +++ b/src/networks/mod.rs @@ -346,7 +346,11 @@ impl ChainConfig { f3_consensus: true, // 2026-02-12T07:00:00Z f3_bootstrap_epoch: 3_451_774, - f3_initial_power_table: None, + f3_initial_power_table: Some( + "bafy2bzacednijkh5dhb6jb7snxhhtjt7zuqaydlewoha3ordhy76dhgwtmptg" + .parse() + .expect("invalid f3_initial_power_table"), + ), enable_indexer: false, enable_receipt_event_caching: true, default_max_fee: TokenAmount::zero(), diff --git a/src/tool/subcommands/api_cmd/api_compare_tests.rs b/src/tool/subcommands/api_cmd/api_compare_tests.rs index 79fca715e3a8..23df90854168 100644 --- a/src/tool/subcommands/api_cmd/api_compare_tests.rs +++ b/src/tool/subcommands/api_cmd/api_compare_tests.rs @@ -2735,7 +2735,7 @@ fn f3_tests() -> anyhow::Result> { ))?), RpcTest::identity(F3IsRunning::request(())?), RpcTest::identity(F3GetCertificate::request((0,))?), - RpcTest::identity(F3GetCertificate::request((100,))?), + RpcTest::identity(F3GetCertificate::request((50,))?), RpcTest::identity(F3GetManifest::request(())?), ]) } From e40dee6604450da0eacd1df40d082897cafa72bd Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 12 Feb 2026 15:55:48 +0800 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef1b18be2eae..923f74828e80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,8 @@ ### Added +- [#6590](https://github.com/ChainSafe/forest/pull/6590): Set F3 `InitialPowerTable` on calibnet. + - [#6524](https://github.com/ChainSafe/forest/pull/6524): Implemented `Filecoin.EthSendRawTransactionUntrusted` for API v2. - [#6513](https://github.com/ChainSafe/forest/pull/6513): Enabled `Filecoin.EthNewFilter` for API v2. From 4190961d15f71996db0ba2aeb88c77f883c946ad Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 12 Feb 2026 16:04:04 +0800 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- scripts/tests/calibnet_no_discovery_check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tests/calibnet_no_discovery_check.sh b/scripts/tests/calibnet_no_discovery_check.sh index 5d3332dca6ef..8d4c14f13ffb 100755 --- a/scripts/tests/calibnet_no_discovery_check.sh +++ b/scripts/tests/calibnet_no_discovery_check.sh @@ -31,7 +31,7 @@ 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 list +echo "Test subcommands: f3 certs get" $FOREST_CLI_PATH f3 certs get