rpc: add context toggle to getProgramAccounts (#17399)
* fix(rpc): return context in get_program_accounts * doc(rpc): document withContext flag * fix(rpc): fix comment Co-authored-by: Michael Vines <mvines@gmail.com> * fix(rpc): fix doc Co-authored-by: Michael Vines <mvines@gmail.com> Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@@ -1102,6 +1102,7 @@ fn get_buffers(
|
||||
data_slice: Some(UiDataSliceConfig { offset: 0, length }),
|
||||
..RpcAccountInfoConfig::default()
|
||||
},
|
||||
..RpcProgramAccountsConfig::default()
|
||||
},
|
||||
)?;
|
||||
Ok(results)
|
||||
@@ -1406,6 +1407,7 @@ fn process_close(
|
||||
data_slice: Some(UiDataSliceConfig { offset: 0, length }),
|
||||
..RpcAccountInfoConfig::default()
|
||||
},
|
||||
..RpcProgramAccountsConfig::default()
|
||||
},
|
||||
)?;
|
||||
|
||||
|
Reference in New Issue
Block a user