Skip to content

Commit

Permalink
JSON-RPC: fix error code for non-existing finalized block
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed May 2, 2022
1 parent d1b1a98 commit 54a1857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemas/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"title": "Block tag",
"type": "string",
"enum": ["earliest", "finalized", "safe", "unsafe", "pending", "latest"],
"description": "`latest`: **DEPRECATED** Currently an alias for `unsafe`, will be removed at some point in the future; `earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `unsafe`: The most recent block in the canonical chain observed by the client, this block can be re-orged out of the canonical chain; `pending`: A sample next block built by the client on top of `unsafe` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying over `finalized` or `safe` block MUST be responded with `-32100: Unknown block` error"
"description": "`latest`: **DEPRECATED** Currently an alias for `unsafe`, will be removed at some point in the future; `earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `unsafe`: The most recent block in the canonical chain observed by the client, this block can be re-orged out of the canonical chain; `pending`: A sample next block built by the client on top of `unsafe` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying over `finalized` or `safe` block MUST be responded with `-32099: Unknown block` error"
},
"BlockNumberOrTag": {
"title": "Block number or tag",
Expand Down

0 comments on commit 54a1857

Please sign in to comment.