diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e853ac5..11a819e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,14 @@ The minor version will be incremented upon a breaking change and the patch versi ## 2024-04-04 +- yellowstone-grpc-geyser-1.14.1+solana.1.18.9 + +### Features + +- geyser: allow to skip fields in config for `grpc.filters` ([#319](https://github.com/rpcpool/yellowstone-grpc/pull/319)) + +## 2024-04-04 + - yellowstone-grpc-client-1.15.0+solana.1.18.9 - yellowstone-grpc-geyser-1.14.0+solana.1.18.9 - yellowstone-grpc-proto-1.14.0+solana.1.18.9 diff --git a/Cargo.lock b/Cargo.lock index c3d1394c..7a5ce9be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5277,7 +5277,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-geyser" -version = "1.14.0+solana.1.18.9" +version = "1.14.1+solana.1.18.9" dependencies = [ "anyhow", "base64 0.21.7", diff --git a/Cargo.toml b/Cargo.toml index f2ba278c..5280e247 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = [ "examples/rust", # 1.13.0+solana.1.18.9 "yellowstone-grpc-client", # 1.15.0+solana.1.18.9 - "yellowstone-grpc-geyser", # 1.14.0+solana.1.18.9 + "yellowstone-grpc-geyser", # 1.14.1+solana.1.18.9 "yellowstone-grpc-proto", # 1.14.0+solana.1.18.9 "yellowstone-grpc-tools", # 1.0.0-rc.11+solana.1.18.9 ] diff --git a/yellowstone-grpc-geyser/Cargo.toml b/yellowstone-grpc-geyser/Cargo.toml index a46a861f..6da40dea 100644 --- a/yellowstone-grpc-geyser/Cargo.toml +++ b/yellowstone-grpc-geyser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yellowstone-grpc-geyser" -version = "1.14.0+solana.1.18.9" +version = "1.14.1+solana.1.18.9" authors = { workspace = true } edition = { workspace = true } description = "Yellowstone gRPC Geyser Plugin" diff --git a/yellowstone-grpc-geyser/src/config.rs b/yellowstone-grpc-geyser/src/config.rs index 2ff31155..31638735 100644 --- a/yellowstone-grpc-geyser/src/config.rs +++ b/yellowstone-grpc-geyser/src/config.rs @@ -136,7 +136,7 @@ pub struct ConfigGrpcServerTls { } #[derive(Debug, Default, Clone, Deserialize)] -#[serde(deny_unknown_fields)] +#[serde(default, deny_unknown_fields)] pub struct ConfigGrpcFilters { pub accounts: ConfigGrpcFiltersAccounts, pub slots: ConfigGrpcFiltersSlots, @@ -185,7 +185,7 @@ impl ConfigGrpcFilters { } #[derive(Debug, Clone, Deserialize)] -#[serde(deny_unknown_fields)] +#[serde(default, deny_unknown_fields)] pub struct ConfigGrpcFiltersAccounts { pub max: usize, pub any: bool, @@ -211,7 +211,7 @@ impl Default for ConfigGrpcFiltersAccounts { } #[derive(Debug, Clone, Deserialize)] -#[serde(deny_unknown_fields)] +#[serde(default, deny_unknown_fields)] pub struct ConfigGrpcFiltersSlots { #[serde(deserialize_with = "deserialize_usize_str")] pub max: usize, @@ -224,7 +224,7 @@ impl Default for ConfigGrpcFiltersSlots { } #[derive(Debug, Clone, Deserialize)] -#[serde(deny_unknown_fields)] +#[serde(default, deny_unknown_fields)] pub struct ConfigGrpcFiltersTransactions { #[serde(deserialize_with = "deserialize_usize_str")] pub max: usize, @@ -253,13 +253,12 @@ impl Default for ConfigGrpcFiltersTransactions { } #[derive(Debug, Clone, Deserialize)] -#[serde(deny_unknown_fields)] +#[serde(default, deny_unknown_fields)] pub struct ConfigGrpcFiltersBlocks { #[serde(deserialize_with = "deserialize_usize_str")] pub max: usize, #[serde(deserialize_with = "deserialize_usize_str")] pub account_include_max: usize, - #[serde(alias = "any")] pub account_include_any: bool, #[serde(deserialize_with = "deserialize_pubkey_set")] pub account_include_reject: HashSet, @@ -283,7 +282,7 @@ impl Default for ConfigGrpcFiltersBlocks { } #[derive(Debug, Clone, Deserialize)] -#[serde(deny_unknown_fields)] +#[serde(default, deny_unknown_fields)] pub struct ConfigGrpcFiltersBlocksMeta { #[serde(deserialize_with = "deserialize_usize_str")] pub max: usize, @@ -296,7 +295,7 @@ impl Default for ConfigGrpcFiltersBlocksMeta { } #[derive(Debug, Clone, Deserialize)] -#[serde(deny_unknown_fields)] +#[serde(default, deny_unknown_fields)] pub struct ConfigGrpcFiltersEntry { #[serde(deserialize_with = "deserialize_usize_str")] pub max: usize,