add --accounts-index-scan-results-limit-mb to allow scans to abort (#21327)
* ScanConfig -> &ScanConfig * add --accounts-index-scan-results-limit-mb to allow scans to abort * feedback
This commit is contained in:
committed by
GitHub
parent
48dfdfb4d5
commit
79d21d6805
@ -2251,7 +2251,7 @@ fn main() {
|
||||
|
||||
if remove_stake_accounts {
|
||||
for (address, mut account) in bank
|
||||
.get_program_accounts(&stake::program::id(), ScanConfig::default())
|
||||
.get_program_accounts(&stake::program::id(), &ScanConfig::default())
|
||||
.unwrap()
|
||||
.into_iter()
|
||||
{
|
||||
@ -2275,7 +2275,7 @@ fn main() {
|
||||
|
||||
if !vote_accounts_to_destake.is_empty() {
|
||||
for (address, mut account) in bank
|
||||
.get_program_accounts(&stake::program::id(), ScanConfig::default())
|
||||
.get_program_accounts(&stake::program::id(), &ScanConfig::default())
|
||||
.unwrap()
|
||||
.into_iter()
|
||||
{
|
||||
@ -2313,7 +2313,10 @@ fn main() {
|
||||
|
||||
// Delete existing vote accounts
|
||||
for (address, mut account) in bank
|
||||
.get_program_accounts(&solana_vote_program::id(), ScanConfig::default())
|
||||
.get_program_accounts(
|
||||
&solana_vote_program::id(),
|
||||
&ScanConfig::default(),
|
||||
)
|
||||
.unwrap()
|
||||
.into_iter()
|
||||
{
|
||||
|
Reference in New Issue
Block a user