getConfirmedBlocks now has an upper limit on slot range

(cherry picked from commit aef6bf272e)
This commit is contained in:
Michael Vines
2020-07-06 08:37:04 -07:00
parent bcc890e705
commit b07b6e56fa
3 changed files with 41 additions and 5 deletions

View File

@@ -102,6 +102,7 @@ impl fmt::Display for RpcRequest {
pub const NUM_LARGEST_ACCOUNTS: usize = 20;
pub const MAX_GET_SIGNATURE_STATUSES_QUERY_ITEMS: usize = 256;
pub const MAX_GET_CONFIRMED_SIGNATURES_FOR_ADDRESS_SLOT_RANGE: u64 = 10_000;
pub const MAX_GET_CONFIRMED_BLOCKS_RANGE: u64 = 500_000;
// Validators that are this number of slots behind are considered delinquent
pub const DELINQUENT_VALIDATOR_SLOT_DISTANCE: u64 = 128;