[Opt.] Lightmode - Internal get block TXs now supports genesis + faster full block queries #120
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR hits 2 birds with one stone.
In relation to #119 (comment)
Bonus, now the block hash error is separated from the txns fetch error leading to a better debugging experience.
PortlandHODL
This PR competes with #119 as a solution to the genesis block lightmode issue.
Result
curl 127.0.0.1:3000/internal/block/0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206/txs