Skip to content

Commit e757bc7

Browse files
fix(f3): set F3 initial power table on calibnet (#6590)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 796f531 commit e757bc7

File tree

6 files changed

+24
-19
lines changed

6 files changed

+24
-19
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
### Added
3131

32+
- [#6590](https://github.com/ChainSafe/forest/pull/6590): Set F3 `InitialPowerTable` on calibnet.
33+
3234
- [#6524](https://github.com/ChainSafe/forest/pull/6524): Implemented `Filecoin.EthSendRawTransactionUntrusted` for API v2.
3335

3436
- [#6513](https://github.com/ChainSafe/forest/pull/6513): Enabled `Filecoin.EthNewFilter` for API v2.

f3-sidecar/f3manifest_calibnet.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"NetworkName": "calibrationnet2",
77
"ExplicitPower": null,
88
"IgnoreECPower": false,
9-
"InitialPowerTable": null,
9+
"InitialPowerTable": {
10+
"/": "bafy2bzacednijkh5dhb6jb7snxhhtjt7zuqaydlewoha3ordhy76dhgwtmptg"
11+
},
1012
"CommitteeLookback": 10,
1113
"CatchUpAlignment": 15000000000,
1214
"Gpbft": {
@@ -67,4 +69,4 @@
6769
"MaxBufferedMessagesPerInstance": 25000,
6870
"MaxCachedValidatedMessagesPerInstance": 25000
6971
}
70-
}
72+
}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
# This list contains potentially broken methods (or tests) that are ignored.
22
# They should be considered bugged, and not used until the root cause is resolved.
3-
# F3 is to be revived around 2026-02-12
4-
!Filecoin.F3

scripts/tests/calibnet_no_discovery_check.sh

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@ until $FOREST_CLI_PATH net peers | grep "calib"; do
2323
done
2424

2525
# Verify F3 is getting certificates from the network
26-
# Disable until F3 is re-activated on calibnet
27-
# until [[ $($FOREST_CLI_PATH f3 certs get --output json | jq '.GPBFTInstance') -gt 100 ]]; do
28-
# sleep 1s;
29-
# done
30-
31-
# echo "Test subcommands: f3 status"
32-
# $FOREST_CLI_PATH f3 status
33-
# echo "Test subcommands: f3 manifest"
34-
# $FOREST_CLI_PATH f3 manifest
35-
# echo "Test subcommands: f3 certs get"
36-
# $FOREST_CLI_PATH f3 certs list
37-
# echo "Test subcommands: f3 certs list"
38-
# $FOREST_CLI_PATH f3 certs get
26+
until [[ $($FOREST_CLI_PATH f3 certs get --output json | jq '.GPBFTInstance') -gt 50 ]]; do
27+
sleep 1s;
28+
done
29+
30+
echo "Test subcommands: f3 status"
31+
$FOREST_CLI_PATH f3 status
32+
echo "Test subcommands: f3 manifest"
33+
$FOREST_CLI_PATH f3 manifest
34+
echo "Test subcommands: f3 certs list"
35+
$FOREST_CLI_PATH f3 certs list
36+
echo "Test subcommands: f3 certs get"
37+
$FOREST_CLI_PATH f3 certs get

src/networks/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,11 @@ impl ChainConfig {
346346
f3_consensus: true,
347347
// 2026-02-12T07:00:00Z
348348
f3_bootstrap_epoch: 3_451_774,
349-
f3_initial_power_table: None,
349+
f3_initial_power_table: Some(
350+
"bafy2bzacednijkh5dhb6jb7snxhhtjt7zuqaydlewoha3ordhy76dhgwtmptg"
351+
.parse()
352+
.expect("invalid f3_initial_power_table"),
353+
),
350354
enable_indexer: false,
351355
enable_receipt_event_caching: true,
352356
default_max_fee: TokenAmount::zero(),

src/tool/subcommands/api_cmd/api_compare_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@ fn f3_tests() -> anyhow::Result<Vec<RpcTest>> {
27352735
))?),
27362736
RpcTest::identity(F3IsRunning::request(())?),
27372737
RpcTest::identity(F3GetCertificate::request((0,))?),
2738-
RpcTest::identity(F3GetCertificate::request((100,))?),
2738+
RpcTest::identity(F3GetCertificate::request((50,))?),
27392739
RpcTest::identity(F3GetManifest::request(())?),
27402740
])
27412741
}

0 commit comments

Comments
 (0)