Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Rpc: filters performance improvement #20185

Merged
merged 14 commits into from
Oct 14, 2021
Prev Previous commit
Next Next commit
Another clippy fix
  • Loading branch information
fanatid committed Sep 25, 2021
commit 73ce0db63f03635a0bfbd1928acc75029a98b9b4
1 change: 1 addition & 0 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1973,6 +1973,7 @@ fn optimize_filters(filters: &mut Vec<RpcFilterType>) {
if let RpcFilterType::Memcmp(compare) = filter_type {
use MemcmpEncodedBytes::*;
match &compare.bytes {
#[allow(deprecated)]
Binary(bytes) | Base58(bytes) => {
compare.bytes = Bytes(bs58::decode(bytes).into_vec().unwrap());
}
Expand Down