skip backups unless backups are needed for ranked_rpcs to exist
This commit is contained in:
parent
57f5d5b483
commit
a487ce5149
@ -300,6 +300,11 @@ impl RankedRpcs {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if rpc.backup && !self.backups_needed {
|
||||||
|
// skip backups unless backups are needed for ranked_rpcs to exist
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(min_block_needed) = min_block_needed {
|
if let Some(min_block_needed) = min_block_needed {
|
||||||
if !self.has_block_data(rpc, min_block_needed) {
|
if !self.has_block_data(rpc, min_block_needed) {
|
||||||
trace!(
|
trace!(
|
||||||
|
Loading…
Reference in New Issue
Block a user