From 97c6b442b342fb5d26c7f3cea2c349f545619c86 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 25 May 2020 10:59:38 +0300 Subject: [PATCH] Add CHANGELOG entry --- CHANGELOG.md | 1 + .../lib/block_scout_web/views/transaction_view.ex | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84a7bb5e72..db327f0c91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - [#3106](https://github.com/poanetwork/blockscout/pull/3106), [#3115](https://github.com/poanetwork/blockscout/pull/3115) - Fix verification of contracts, created from factory (from internal transaction) ### Chore +- [#3124](https://github.com/poanetwork/blockscout/pull/3124) - Display upper border for tx speed if the value cannot be calculated ## 3.1.2-beta diff --git a/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex b/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex index e16061d28b..7653640041 100644 --- a/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex +++ b/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex @@ -143,7 +143,7 @@ defmodule BlockScoutWeb.TransactionView do :pending end - def processing_time_duration(%Transaction{earliest_processing_start: nil} = tx) do + def processing_time_duration(%Transaction{earliest_processing_start: nil}) do avg_time = Timex.Duration.to_seconds(Explorer.Counters.AverageBlockTime.average_block_time()) {:ok, "<= #{avg_time} seconds"} end