Closed blorgon1 closed 1 year ago
Apologies upon further review of the Rosetta docs, I believe the 200/empty block response should only be returned for "skipped" block indices. Returning an error when querying index+hash of reorged blocks is the correct behaviour.
Summary
When querying the
/block
endpoint for ablock_identifier
that doesn't exist, a BLOCK_NOT_FOUND/4001 error is returned.In this case, the Rosetta spec requires the response to be 200 with an empty response or
{ "block": null }
: https://community.rosetta-api.org/t/handle-missed-blocks-for-block/349/3Steps to reproduce the bug
Query
/block
with a payload containing ablock_identifier
that does not exist:Actual Result
Expected Result
Or
Environment
2.1.0
Platform
Platform version
No response
Docker version
No response