-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the endpoint
GET /v2/block-headers
(#1638)
* Implement `GET /v2/blocks` Currently using the exact same implementation as AlgoNode#10 * Rename function * Rename function * Fix compiler error * Revert f17423b * Update file generated by mockery * Fix typo * Improve parameter descriptions * Change route to `GET /v2/block-headers` * Remove the `updates` and `participation` params Remove the `updates` and `participation` parameters from `GET /v2/block-headers`. The underlying SQL code is now simpler. * Lints * Rename struct * Fix outdated comment * Use faster/simpler sorting function * Use a more descriptive name for func `rowToBlock` * Remove decodeAddress / decodeAddressToBytes Remove the functions `decodeAddress` and `decodeAddressToBytes`. Also, add more context information to the errors being returned. * Attempt at fixing broken test Attempt at fixing `TestTimeouts/LookupAccountTransactions` * Change function `hdrRowToBlock` signature Change function `hdrRowToBlock` signature to be in line with other similar functions. * Rename `proposer` parameter to `proposers` In `GET /v2/block-headers`, rename the `proposer` parameter to `proposers` to follow conventions through the rest of the API.
- Loading branch information
Showing
16 changed files
with
1,554 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.