Skip to content

Commit

Permalink
chore(f3): upgrade go-f3 to 0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Jan 24, 2025
1 parent bfe406e commit 4dae052
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 6 deletions.
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.20250120154023-9c11ba345092
github.com/filecoin-project/go-jsonrpc v0.7.0
github.com/filecoin-project/go-state-types v0.15.0
github.com/ipfs/go-cid v0.4.1
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.20250120154023-9c11ba345092 h1:Yco5dqpG2cgjRGeL0i1T2sL3a3dyqM9ARLRd3zbi9x4=
github.com/filecoin-project/go-f3 v0.7.4-0.20250120154023-9c11ba345092/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/ipfs/boxo v0.26.0
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

0 comments on commit 4dae052

Please sign in to comment.