Rpc: enable getConfirmedBlocks and getConfirmedBlocksWithLimit to return confirmed (not yet finalized) data (bp #16161) (#16197)
* Rpc: enable getConfirmedBlocks and getConfirmedBlocksWithLimit to return confirmed (not yet finalized) data (#16161)
* Add commitment config capabilities
* Use rpc limit if no end_slot provided
* Limit to actually finalized blocks
* Support confirmed blocks in getConfirmedBlocks and getConfirmedBlocksWithLimit
* Update docs
* Add client plumbing
* Rename config enum
(cherry picked from commit 60ed8e2892
)
# Conflicts:
# client/src/rpc_config.rs
# core/src/rpc.rs
* Fix conflicts
* Future-aware enum name
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
@@ -688,6 +688,7 @@ Returns a list of confirmed blocks between two slots
|
||||
|
||||
- `<u64>` - start_slot, as u64 integer
|
||||
- `<u64>` - (optional) end_slot, as u64 integer
|
||||
- (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment); "processed" is not supported. If parameter not provided, the default is "finalized".
|
||||
|
||||
#### Results:
|
||||
|
||||
@@ -718,6 +719,7 @@ Returns a list of confirmed blocks starting at the given slot
|
||||
|
||||
- `<u64>` - start_slot, as u64 integer
|
||||
- `<u64>` - limit, as u64 integer
|
||||
- (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment); "processed" is not supported. If parameter not provided, the default is "finalized".
|
||||
|
||||
#### Results:
|
||||
|
||||
|
Reference in New Issue
Block a user