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

This commit is contained in:
Justin Starry 2020-04-22 01:08:06 +08:00 committed by GitHub
parent 92afe9020f
commit 3023691487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1361,9 +1361,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
)));
}