From 573aed2b4b8ed73eb57ac442ff6db958545aed26 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2020 10:23:34 -0700 Subject: [PATCH] RPC: Allow single slot address history queries (#9630) (#9635) (cherry picked from commit 3023691487a21d4c41e367179857b12dc91c945f) Co-authored-by: Justin Starry --- core/src/rpc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/rpc.rs b/core/src/rpc.rs index 725363e31a..56d408aaa8 100644 --- a/core/src/rpc.rs +++ b/core/src/rpc.rs @@ -1368,9 +1368,9 @@ impl RpcSol for RpcSolImpl { end_slot: Slot, ) -> Result> { let pubkey = verify_pubkey(pubkey_str)?; - if end_slot <= start_slot { + if end_slot < start_slot { return Err(Error::invalid_params(format!( - "start_slot {} must be smaller than end_slot {}", + "start_slot {} must be less than or equal to end_slot {}", start_slot, end_slot ))); }