Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpcdaemon: fix mismatch in erigon_getHeaderBy[Hash|Number] #2454

Merged
merged 12 commits into from
Oct 29, 2024

Conversation

lupin012
Copy link
Contributor

No description provided.

@lupin012 lupin012 added the erigon3 Erigon3 feature label Oct 25, 2024
@lupin012 lupin012 marked this pull request as ready for review October 28, 2024 09:27
@lupin012 lupin012 requested a review from canepat October 28, 2024 12:58
@canepat canepat changed the title rpcdaemon: Fix erigon get header rpcdaemon: fix mismatch in erigon_getHeaderBy[Hash|Number] Oct 29, 2024
@canepat canepat added the maintenance Some maintenance work (fix, refactor, rename, test...) label Oct 29, 2024
@canepat canepat merged commit c5fd1a3 into master Oct 29, 2024
5 checks passed
@canepat canepat deleted the fix_erigon_getHeader branch October 29, 2024 16:38
@@ -957,7 +957,7 @@ Task<void> EthereumRpcApi::handle_eth_get_balance(const nlohmann::json& request,
reply = make_json_content(request, "0x" + (account ? intx::hex(account->balance) : "0"));
} catch (const std::exception& e) {
SILK_ERROR << "exception: " << e.what() << " processing request: " << request.dump();
reply = make_json_error(request, kInternalError, e.what());
reply = make_json_content(request, "0x0");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be investigated more: it's far from ideal to return just zero balance if any exception happens on the node

@canepat canepat added json rpc api Create/update/delete any JSON-RPC endpoint and removed maintenance Some maintenance work (fix, refactor, rename, test...) labels Oct 30, 2024
@canepat canepat mentioned this pull request Oct 30, 2024
37 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erigon3 Erigon3 feature json rpc api Create/update/delete any JSON-RPC endpoint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants