getConfirmedBlocks now has an upper limit on slot range

(cherry picked from commit aef6bf272e)

# Conflicts:
#	core/src/rpc.rs
This commit is contained in:
Michael Vines
2020-07-06 08:37:04 -07:00
parent 82caa50781
commit 01987f8f89
3 changed files with 47 additions and 3 deletions

View File

@@ -356,8 +356,9 @@ Returns a list of confirmed blocks
#### Results:
The result field will be an array of u64 integers listing confirmed blocks
between start_slot and either end_slot, if provided, or latest confirmed block,
inclusive.
between `start_slot` and either `end_slot`, if provided, or latest confirmed block,
inclusive. Max range allowed is 500,000 slots.
#### Example:
@@ -371,7 +372,8 @@ curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc": "2.0","id":1,"m
### getConfirmedSignaturesForAddress
Returns a list of all the confirmed signatures for transactions involving an address, within a specified Slot range. Max range allowed is 10_000 Slots.
Returns a list of all the confirmed signatures for transactions involving an
address, within a specified Slot range. Max range allowed is 10,000 Slots
#### Parameters: