diff --git a/CHANGELOG.md b/CHANGELOG.md index ab3c2d2069..b80b922f07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Features ### Fixes +- [#5259](https://github.com/blockscout/blockscout/pull/5259) - Fix `coin-balances/by-day` bug ### Chore diff --git a/apps/explorer/lib/explorer/chain/address/coin_balance.ex b/apps/explorer/lib/explorer/chain/address/coin_balance.ex index 1b99160889..8eeda72b79 100644 --- a/apps/explorer/lib/explorer/chain/address/coin_balance.ex +++ b/apps/explorer/lib/explorer/chain/address/coin_balance.ex @@ -178,6 +178,7 @@ defmodule Explorer.Chain.Address.CoinBalance do cb in subquery(coin_balance_query), inner_join: b in Block, on: cb.block_number == b.number, + where: b.consensus, select: %{timestamp: b.timestamp, value: cb.value} ) end