RPC: Allow single slot address history queries (#9630) (#9635)

(cherry picked from commit 3023691487)

Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
mergify[bot]
2020-04-21 10:23:34 -07:00
committed by GitHub
parent 6ef65d8513
commit 573aed2b4b

View File

@ -1368,9 +1368,9 @@ impl RpcSol for RpcSolImpl {
end_slot: Slot,
) -> Result<Vec<String>> {
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
)));
}