From 3023691487a21d4c41e367179857b12dc91c945f Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Wed, 22 Apr 2020 01:08:06 +0800 Subject: [PATCH] RPC: Allow single slot address history queries (#9630) --- 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 f9f4618a76..c01f7ab21e 100644 --- a/core/src/rpc.rs +++ b/core/src/rpc.rs @@ -1361,9 +1361,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 ))); }