Skip to content

Commit

Permalink
Add missing proxy fallback for chunk queries
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Oct 22, 2024
1 parent 806b1a9 commit 6fa5add
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion json-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ const handleJsonRpc = async ctx => {

throw new FastNEARError('chunkNotFound', `Chunk not found: ${block_id} ${shard_id}`, { block_id, shard_id });
}
return;
// Fall back to proxying
await proxyJson(ctx);
}
case 'broadcast_tx_commit': {
const result = await submitTransaction(Buffer.from(body.params[0], 'base64'));
Expand Down

0 comments on commit 6fa5add

Please sign in to comment.