Skip to content

Commit

Permalink
chore(f3): set f3_init_power_table_cid for calibnet (#4925)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 authored Oct 25, 2024
1 parent db79c73 commit f94c2b1
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@

### Added

### Changed

### Removed

### Fixed

## Forest 0.21.1 "Songthaew Plus"

This is an optional release for calibration network node operators. It enables
F3 by default and includes initial power table CID on calibration network.

### Breaking

### Added

- [#4910](https://github.com/ChainSafe/forest/issues/4910) Add support for the
`Filecoin.F3ListParticipants` RPC method.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "forest-filecoin"
version = "0.21.0"
version = "0.21.1"
authors = ["ChainSafe Systems <[email protected]>"]
repository = "https://github.com/ChainSafe/forest"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion f3-sidecar/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The default f3 database folder
/f3-db
/f3-data
# The binary
f3-sidecar
2 changes: 1 addition & 1 deletion f3-sidecar/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func run(ctx context.Context, rpcEndpoint string, jwt string, f3RpcEndpoint stri
}
verif := blssig.VerifierWithKeyOnG1()
m := manifest.LocalDevnetManifest()
switch _, initialPowerTable, err := cid.CidFromBytes([]byte(initialPowerTable)); {
switch initialPowerTable, err := cid.Parse(initialPowerTable); {
case err == nil && initialPowerTable != cid.Undef:
logger.Infof("InitialPowerTable is %s", initialPowerTable)
m.InitialPowerTable = initialPowerTable
Expand Down
5 changes: 4 additions & 1 deletion src/networks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ impl ChainConfig {
f3_consensus: true,
// 2024-10-24T13:30:00Z
f3_bootstrap_epoch: 2_081_674,
f3_initial_power_table: Default::default(),
f3_initial_power_table:
"bafy2bzaceab236vmmb3n4q4tkvua2n4dphcbzzxerxuey3mot4g3cov5j3r2c"
.parse()
.expect("invalid f3_initial_power_table"),
f3_manifest_server: Some(
"12D3KooWS9vD9uwm8u2uPyJV32QBAhKAmPYwmziAgr3Xzk2FU1Mr"
.parse()
Expand Down

0 comments on commit f94c2b1

Please sign in to comment.