v0.16: AccountsDB updates and getProgramAccounts RPC fix (#5044)
* reduce replicode in accounts, fix cast to i64 (#5025) * add accounts_index_scan_accounts (#5020) * Plumb scan_accounts into accounts_db, adding load from storage (#5029) * Fix getProgramAccounts RPC (#5024) * Use scan_accounts to load accounts by program_id * Add bank test * Use get_program_accounts in RPC * Rebase for v0.16
This commit is contained in:
@@ -73,7 +73,7 @@ impl JsonRpcRequestProcessor {
|
||||
pub fn get_program_accounts(&self, program_id: &Pubkey) -> Result<Vec<(String, Account)>> {
|
||||
Ok(self
|
||||
.bank()
|
||||
.get_program_accounts_modified_since_parent(&program_id)
|
||||
.get_program_accounts(&program_id)
|
||||
.into_iter()
|
||||
.map(|(pubkey, account)| (pubkey.to_string(), account))
|
||||
.collect())
|
||||
|
Reference in New Issue
Block a user