From b838efc303e73227e98fb50f11f81cea15f3ab49 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 1f187129..ae91721b 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-3.3.0 +- yellowstone-grpc-geyser-3.2.2 +- yellowstone-grpc-proto-3.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-3.2.1 diff --git a/Cargo.lock b/Cargo.lock index b1b2f9b7..32379caa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5027,7 +5027,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-client-simple" -version = "3.2.0" +version = "3.3.0" dependencies = [ "anyhow", "backoff", @@ -5052,7 +5052,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-geyser" -version = "3.2.1" +version = "3.2.2" dependencies = [ "affinity", "agave-geyser-plugin-interface", @@ -5092,7 +5092,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-proto" -version = "3.1.0" +version = "3.1.1" dependencies = [ "agave-geyser-plugin-interface", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 7db44c01..d0cd0ba3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [workspace] resolver = "2" members = [ - "examples/rust", # 3.2.0 + "examples/rust", # 3.3.0 "yellowstone-grpc-client", # 3.1.0 - "yellowstone-grpc-geyser", # 3.2.1 - "yellowstone-grpc-proto", # 3.1.0 + "yellowstone-grpc-geyser", # 3.2.2 + "yellowstone-grpc-proto", # 3.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 = "3.1.0" } -yellowstone-grpc-proto = { path = "yellowstone-grpc-proto", version = "3.1.0", default-features = false } +yellowstone-grpc-proto = { path = "yellowstone-grpc-proto", version = "3.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 4767bd59..c62431d8 100644 --- a/examples/rust/Cargo.toml +++ b/examples/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yellowstone-grpc-client-simple" -version = "3.2.0" +version = "3.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 793908f5..99b9aae7 100644 --- a/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.lock +++ b/yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.lock @@ -2655,7 +2655,7 @@ dependencies = [ [[package]] name = "yellowstone-grpc-proto" -version = "3.1.0" +version = "3.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 2ba46d6f..7b00c491 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.0.16" wasm-bindgen = "0.2.95" -yellowstone-grpc-proto = { path = "../../yellowstone-grpc-proto", version = "3.1.0", default-features = false, features = ["convert"] } +yellowstone-grpc-proto = { path = "../../yellowstone-grpc-proto", version = "3.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 67927723..bd47636b 100644 --- a/yellowstone-grpc-geyser/Cargo.toml +++ b/yellowstone-grpc-geyser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yellowstone-grpc-geyser" -version = "3.2.1" +version = "3.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 161477a8..79335293 100644 --- a/yellowstone-grpc-proto/Cargo.toml +++ b/yellowstone-grpc-proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yellowstone-grpc-proto" -version = "3.1.0" +version = "3.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 c8edff22..7ff61847 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, } } }