ledger-tool: Add print-accounts command

(cherry picked from commit 1bf2285fa2)
This commit is contained in:
Michael Vines
2020-02-14 13:24:16 -07:00
parent 1dbcd5c298
commit 370716edd3
6 changed files with 80 additions and 10 deletions

View File

@@ -124,7 +124,7 @@ impl JsonRpcRequestProcessor {
) -> Result<Vec<RpcKeyedAccount>> {
Ok(self
.bank(commitment)
.get_program_accounts(&program_id)
.get_program_accounts(Some(&program_id))
.into_iter()
.map(|(pubkey, account)| RpcKeyedAccount {
pubkey: pubkey.to_string(),