Upper border of tx speed display

pull/3124/head
Victor Baranov 5 years ago
parent f52092af97
commit 23454a2a48
  1. 5
      apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex

@ -143,8 +143,9 @@ defmodule BlockScoutWeb.TransactionView do
:pending
end
def processing_time_duration(%Transaction{earliest_processing_start: nil}) do
:unknown
def processing_time_duration(%Transaction{earliest_processing_start: nil} = tx) do
avg_time = Timex.Duration.to_seconds(Explorer.Counters.AverageBlockTime.average_block_time())
{:ok, "<= #{avg_time} seconds"}
end
def processing_time_duration(%Transaction{

Loading…
Cancel
Save