-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add reward value of a block in the tile and overview section. #1249
Conversation
a4daa27
to
62db993
Compare
Pull Request Test Coverage Report for Build ec16521a-ce23-4f65-9787-cd1aaad13d29
💛 - Coveralls |
<dl class="row"> | ||
<dt class="col-sm-5 text-muted"><%= gettext "Gas Fee" %></dt> | ||
<dt class="col-sm-7"> | ||
<%= @gas_fee %> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
def show_reward?(_), do: true | ||
|
||
def formatted_reward(block_reward) do | ||
{:ok, decimal} = Wei.dump(block_reward.reward) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
62db993
to
9eb8519
Compare
|
||
<%= if show_reward?(@validator_reward) do %> | ||
<dl class="row"> | ||
<dt class="col-sm-5 text-muted"><%= gettext "Validator Reward" %></dt> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
9eb8519
to
f006366
Compare
@@ -612,4 +612,11 @@ defmodule Explorer.Chain.Transaction do | |||
limit: 1 | |||
) | |||
end | |||
|
|||
def block_hash_to_transactions(block_hash) do |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
<%= if show_reward?(@block.rewards) do %> | ||
<dl class="row"> | ||
<dt class="col-sm-3 text-muted"><%= gettext "Gas Used" %></dt> | ||
<dt class="col-sm-9"> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
ec08364
to
77864d6
Compare
77864d6
to
67cfc24
Compare
01f6dce
to
dbc14d5
Compare
@acravenho I pushed some new changes with this fixed. |
Tested Ethereum Mainnet and POA Core. Looks great 👍 |
* The iex was not initiating due to this dependency
dbc14d5
to
c939b1d
Compare
Resolves #23
Motivation
Displays the reward value in the block tile at the home page, block details page and the address block validated page.
In the tile shows the combined reward value, and at the block details page shows the reward value detail.
Changelog
Bug Fixes
:dev
dependency toplug_cowboy
at theexplorer
, soiex
can start.