From 28c705b236e9206bc622da6d1cbe10ddd3d0bef5 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Fri, 24 Jan 2025 20:10:38 +0800 Subject: [PATCH] chore(f3): upgrade go-f3 to 0.7.4 --- f3-sidecar/go.mod | 2 +- f3-sidecar/go.sum | 4 ++-- src/rpc/methods/f3/types.rs | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/f3-sidecar/go.mod b/f3-sidecar/go.mod index 4438f6da747..14fac1c3cbf 100644 --- a/f3-sidecar/go.mod +++ b/f3-sidecar/go.mod @@ -3,7 +3,7 @@ module f3-sidecar/v2 go 1.22.0 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 diff --git a/f3-sidecar/go.sum b/f3-sidecar/go.sum index 3c418c43a0c..c117399b380 100644 --- a/f3-sidecar/go.sum +++ b/f3-sidecar/go.sum @@ -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= diff --git a/src/rpc/methods/f3/types.rs b/src/rpc/methods/f3/types.rs index 5fc15f62220..cb906caafb0 100644 --- a/src/rpc/methods/f3/types.rs +++ b/src/rpc/methods/f3/types.rs @@ -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")] @@ -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);