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

Block page: check gas limit value before division #4686

Merged
merged 1 commit into from
Sep 24, 2021

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Sep 24, 2021

Motivation

An internal error on the block pages when Blockscout connected to Aurora JSON RPC.

2021-09-23T18:07:34.632 [error] GenServer #PID<0.2260.0> terminating
** (ArithmeticError) bad argument in arithmetic expression
    (block_scout_web 0.0.1) lib/block_scout_web/templates/block/_tile.html.eex:71: BlockScoutWeb.BlockView."_tile.html"/1
    (phoenix 1.5.6) lib/phoenix/view.ex:472: Phoenix.View.render_to_iodata/3
    (phoenix 1.5.6) lib/phoenix/view.ex:479: Phoenix.View.render_to_string/3
    (block_scout_web 0.0.1) lib/block_scout_web/channels/block_channel.ex:24: BlockScoutWeb.BlockChannel.handle_out/3
    (phoenix 1.5.6) lib/phoenix/channel/server.ex:328: Phoenix.Channel.Server.handle_info/2
    (stdlib 3.15.1) gen_server.erl:695: :gen_server.try_dispatch/4
    (stdlib 3.15.1) gen_server.erl:771: :gen_server.handle_msg/6
    (stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

Changelog

Check gas limit value before division

Checklist for your Pull Request (PR)

@vbaranov vbaranov merged commit d352aad into master Sep 24, 2021
@vbaranov vbaranov deleted the vb-block-page-check-gas-limit branch September 24, 2021 08:55
sidhujag pushed a commit to syscoin/blockscout that referenced this pull request Sep 24, 2021
…k-gas-limit

Block page: check gas limit value before division
spilin added a commit to spilin/blockscout that referenced this pull request Oct 11, 2021
spilin added a commit to spilin/blockscout that referenced this pull request Oct 11, 2021
spilin added a commit to spilin/blockscout that referenced this pull request Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant