Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(f3): upgrade go-f3 to 0.7.4 #5181

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
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
2 changes: 2 additions & 0 deletions f3-sidecar/ffi_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ func init() {
checkError(err)
err = logging.SetLogLevel("net/identify", "error")
checkError(err)
err = logging.SetLogLevel("pubsub", "warn")
checkError(err)
err = logging.SetLogLevel("f3/sidecar", "debug")
checkError(err)
GoF3NodeImpl = &f3Impl{ctx: context.Background()}
Expand Down
4 changes: 2 additions & 2 deletions f3-sidecar/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module f3-sidecar/v2

go 1.22.0
go 1.22.7

require (
github.com/filecoin-project/go-f3 v0.7.3
github.com/filecoin-project/go-f3 v0.7.4-0.20250207110112-a2b3c6601f7f
github.com/filecoin-project/go-jsonrpc v0.7.0
github.com/filecoin-project/go-state-types v0.15.0
github.com/ihciah/rust2go v0.0.0-20250125181647-c5957947a3c0
Expand Down
4 changes: 2 additions & 2 deletions f3-sidecar/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ github.com/filecoin-project/go-bitfield v0.2.4 h1:uZ7MeE+XfM5lqrHJZ93OnhQKc/rveW
github.com/filecoin-project/go-bitfield v0.2.4/go.mod h1:CNl9WG8hgR5mttCnUErjcQjGvuiZjRqK9rHVBsQF4oM=
github.com/filecoin-project/go-clock v0.1.0 h1:SFbYIM75M8NnFm1yMHhN9Ahy3W5bEZV9gd6MPfXbKVU=
github.com/filecoin-project/go-clock v0.1.0/go.mod h1:4uB/O4PvOjlx1VCMdZ9MyDZXRm//gkj1ELEbxfI1AZs=
github.com/filecoin-project/go-f3 v0.7.3 h1:nwRYRKaJs7AV3di/OQyj6tABeixBeL06DkJeoQrr5+0=
github.com/filecoin-project/go-f3 v0.7.3/go.mod h1:wDo5mPi4KXVuA7kvwLpmfVVv2Aw2ZwZk3iqMWr5BOT0=
github.com/filecoin-project/go-f3 v0.7.4-0.20250207110112-a2b3c6601f7f h1:XK3TQ8SUBpE91deUqe3QQjD4ZNNMWhCf2Ts1YGtqCzI=
github.com/filecoin-project/go-f3 v0.7.4-0.20250207110112-a2b3c6601f7f/go.mod h1:zNFGuBM+fYuGXk2fpzl6wW4g2Gyrxgg6z2IVSoGt+60=
github.com/filecoin-project/go-jsonrpc v0.7.0 h1:mqA5pIOlBODx7ascY9cJdBAYonhgbdUOIn2dyYI1YBg=
github.com/filecoin-project/go-jsonrpc v0.7.0/go.mod h1:lAUpS8BSVtKaA8+/CFUMA5dokMiSM7n0ehf8bHOFdpE=
github.com/filecoin-project/go-state-types v0.15.0 h1:GaUSCti0tGMzLg7fVpRjtNVGBvirbMFzLfyWbR+qzWE=
Expand Down
3 changes: 3 additions & 0 deletions f3-sidecar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func main() {
if err := logging.SetLogLevel("net/identify", "error"); err != nil {
panic(err)
}
if err := logging.SetLogLevel("pubsub", "warn"); err != nil {
panic(err)
}
if err := logging.SetLogLevel("f3/sidecar", "debug"); err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.22.0
go 1.22.7

use (
./f3-sidecar
Expand Down
2 changes: 1 addition & 1 deletion interop-tests/src/tests/go_app/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module test/v2

go 1.22.0
go 1.22.7

require (
github.com/ihciah/rust2go v0.0.0-20250125181647-c5957947a3c0
Expand Down
18 changes: 18 additions & 0 deletions src/rpc/methods/f3/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,22 @@ pub struct CertificateExchangeConfig {
pub maximum_poll_interval: Duration,
}

#[derive(PartialEq, Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "PascalCase")]
pub struct PubSubConfig {
pub compression_enabled: bool,
}

#[derive(PartialEq, Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "PascalCase")]
pub struct ChainExchangeConfig {
pub max_chain_length: usize,
pub max_discovered_chains_per_instance: usize,
pub max_instance_lookahead: usize,
pub max_wanted_chains_per_instance: usize,
pub subscription_buffer_size: usize,
}

#[serde_as]
#[derive(PartialEq, Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "PascalCase")]
Expand All @@ -262,6 +278,8 @@ pub struct F3Manifest {
#[serde(rename = "EC")]
pub ec: EcConfig,
pub certificate_exchange: CertificateExchangeConfig,
pub pub_sub: PubSubConfig,
pub chain_exchange: ChainExchangeConfig,
}
lotus_json_with_self!(F3Manifest);

Expand Down
Loading