From 4dd19d6ca16ea676510e90dcab00e7069c6959d9 Mon Sep 17 00:00:00 2001 From: ysq Date: Mon, 15 Sep 2025 00:01:07 +0800 Subject: [PATCH] feat: upgrade to v0.4.11 --- Cargo.toml | 2 +- README.md | 4 ++-- README_CN.md | 4 ++-- src/streaming/common/event_processor.rs | 3 +++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d9ac696..3aa3c9e 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "solana-streamer-sdk" -version = "0.4.10" +version = "0.4.11" edition = "2021" authors = ["William ", "sgxiang ", "wei <1415121722@qq.com>"] repository = "https://github.com/0xfnzero/solana-streamer" diff --git a/README.md b/README.md index cabc47e..83b66c1 100755 --- a/README.md +++ b/README.md @@ -108,14 +108,14 @@ Add the dependency to your `Cargo.toml`: ```toml # Add to your Cargo.toml -solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.10" } +solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.11" } ``` ### Use crates.io ```toml # Add to your Cargo.toml -solana-streamer-sdk = "0.4.10" +solana-streamer-sdk = "0.4.11" ``` ## ⚙️ Configuration System diff --git a/README_CN.md b/README_CN.md index d421481..e8aaaf8 100644 --- a/README_CN.md +++ b/README_CN.md @@ -107,14 +107,14 @@ git clone https://github.com/0xfnzero/solana-streamer ```toml # 添加到您的 Cargo.toml -solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.10" } +solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.11" } ``` ### 使用 crates.io ```toml # 添加到您的 Cargo.toml -solana-streamer-sdk = "0.4.10" +solana-streamer-sdk = "0.4.11" ``` ## ⚙️ 配置系统 diff --git a/src/streaming/common/event_processor.rs b/src/streaming/common/event_processor.rs index 5069f9c..19ce5b1 100644 --- a/src/streaming/common/event_processor.rs +++ b/src/streaming/common/event_processor.rs @@ -299,6 +299,9 @@ impl EventProcessor { let tx = transaction_with_slot.transaction; let slot = transaction_with_slot.slot; + if tx.signatures.is_empty() { + return Ok(()); + } let signature = tx.signatures[0]; let recv_us = transaction_with_slot.recv_us;