From 6bfff923478cc4e28d470f59cbeb38807b1b636f Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Mon, 16 Dec 2024 16:59:41 -0500 Subject: [PATCH] geyser: fix `lamports` filter (#498) --- CHANGELOG.md | 16 ++++++++++++++-- Cargo.lock | 6 +++--- Cargo.toml | 8 ++++---- examples/rust/Cargo.toml | 2 +- .../solana-encoding-wasm/Cargo.lock | 2 +- .../solana-encoding-wasm/Cargo.toml | 2 +- yellowstone-grpc-geyser/Cargo.toml | 2 +- yellowstone-grpc-proto/Cargo.toml | 2 +- .../src/plugin/filter/filter.rs | 4 ++-- 9 files changed, 28 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9adf8fb..e6381270 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,10 +14,22 @@ The minor version will be incremented upon a breaking change and the patch versi ### Features -- client: add `ca_certificate` option ([#497](https://github.com/rpcpool/yellowstone-grpc/pull/497)) - ### Breaking +## 2024-12-16 + +- yellowstone-grpc-client-simple-4.3.0 +- yellowstone-grpc-geyser-4.2.2 +- yellowstone-grpc-proto-4.1.1 + +### Fixes + +- geyser: fix `lamports` filter ([#498](https://github.com/rpcpool/yellowstone-grpc/pull/498)) + +### Features + +- example: add `ca_certificate` option ([#497](https://github.com/rpcpool/yellowstone-grpc/pull/497)) + ## 2024-12-15 - yellowstone-grpc-geyser-4.2.1 diff --git a/Cargo.lock b/Cargo.lock index cbec2a2b..68165c1f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5973,7 +5973,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-client-simple" -version = "4.2.0" +version = "4.3.0" dependencies = [ "anyhow", "backoff", @@ -5998,7 +5998,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-geyser" -version = "4.2.1" +version = "4.2.2" dependencies = [ "affinity", "agave-geyser-plugin-interface", @@ -6038,7 +6038,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-proto" -version = "4.1.0" +version = "4.1.1" dependencies = [ "agave-geyser-plugin-interface", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 410d516a..f355184f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [workspace] resolver = "2" members = [ - "examples/rust", # 4.2.0 + "examples/rust", # 4.3.0 "yellowstone-grpc-client", # 4.1.0 - "yellowstone-grpc-geyser", # 4.2.1 - "yellowstone-grpc-proto", # 4.1.0 + "yellowstone-grpc-geyser", # 4.2.2 + "yellowstone-grpc-proto", # 4.1.1 ] exclude = [ "yellowstone-grpc-client-nodejs/solana-encoding-wasm", # 3.0.0 @@ -70,7 +70,7 @@ tonic-build = "0.12.1" tonic-health = "0.12.1" vergen = "9.0.0" yellowstone-grpc-client = { path = "yellowstone-grpc-client", version = "4.1.0" } -yellowstone-grpc-proto = { path = "yellowstone-grpc-proto", version = "4.1.0", default-features = false } +yellowstone-grpc-proto = { path = "yellowstone-grpc-proto", version = "4.1.1", default-features = false } [workspace.lints.clippy] clone_on_ref_ptr = "deny" diff --git a/examples/rust/Cargo.toml b/examples/rust/Cargo.toml index a42d47d6..dd40d4a6 100644 --- a/examples/rust/Cargo.toml +++ b/examples/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yellowstone-grpc-client-simple" -version = "4.2.0" +version = "4.3.0" authors = { workspace = true } edition = { workspace = true } homepage = { workspace = true } diff --git a/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.lock b/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.lock index 03193c23..abf95e6a 100644 --- a/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.lock +++ b/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.lock @@ -3259,7 +3259,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-proto" -version = "4.1.0" +version = "4.1.1" dependencies = [ "anyhow", "bincode", diff --git a/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.toml b/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.toml index f24589d2..9f287bef 100644 --- a/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.toml +++ b/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.toml @@ -16,7 +16,7 @@ crate-type = ["cdylib"] serde_json = "1.0.86" solana-transaction-status = "~2.1.1" wasm-bindgen = "0.2.95" -yellowstone-grpc-proto = { path = "../../yellowstone-grpc-proto", version = "4.1.0", default-features = false, features = ["convert"] } +yellowstone-grpc-proto = { path = "../../yellowstone-grpc-proto", version = "4.1.1", default-features = false, features = ["convert"] } [workspace.lints.clippy] clone_on_ref_ptr = "deny" diff --git a/yellowstone-grpc-geyser/Cargo.toml b/yellowstone-grpc-geyser/Cargo.toml index 88086649..faaccf5e 100644 --- a/yellowstone-grpc-geyser/Cargo.toml +++ b/yellowstone-grpc-geyser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yellowstone-grpc-geyser" -version = "4.2.1" +version = "4.2.2" authors = { workspace = true } edition = { workspace = true } description = "Yellowstone gRPC Geyser Plugin" diff --git a/yellowstone-grpc-proto/Cargo.toml b/yellowstone-grpc-proto/Cargo.toml index 1bbac116..7cd2f0ae 100644 --- a/yellowstone-grpc-proto/Cargo.toml +++ b/yellowstone-grpc-proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yellowstone-grpc-proto" -version = "4.1.0" +version = "4.1.1" authors = { workspace = true } edition = { workspace = true } description = "Yellowstone gRPC Geyser Protobuf Definitions" diff --git a/yellowstone-grpc-proto/src/plugin/filter/filter.rs b/yellowstone-grpc-proto/src/plugin/filter/filter.rs index e81c7c15..5ba46e44 100644 --- a/yellowstone-grpc-proto/src/plugin/filter/filter.rs +++ b/yellowstone-grpc-proto/src/plugin/filter/filter.rs @@ -484,8 +484,8 @@ impl FilterAccountsLamports { match self { Self::Eq(value) => value == lamports, Self::Ne(value) => value != lamports, - Self::Lt(value) => value < lamports, - Self::Gt(value) => value > lamports, + Self::Lt(value) => value > lamports, + Self::Gt(value) => value < lamports, } } }