Merge pull request #5259 from blockscout/np-fix-coin-balance-history-bug

Fix coin-balances/by-day bug
pull/5269/head
Victor Baranov 3 years ago committed by GitHub
commit 54fa2be883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 1
      apps/explorer/lib/explorer/chain/address/coin_balance.ex

@ -3,6 +3,7 @@
### Features ### Features
### Fixes ### Fixes
- [#5259](https://github.com/blockscout/blockscout/pull/5259) - Fix `coin-balances/by-day` bug
### Chore ### Chore

@ -178,6 +178,7 @@ defmodule Explorer.Chain.Address.CoinBalance do
cb in subquery(coin_balance_query), cb in subquery(coin_balance_query),
inner_join: b in Block, inner_join: b in Block,
on: cb.block_number == b.number, on: cb.block_number == b.number,
where: b.consensus,
select: %{timestamp: b.timestamp, value: cb.value} select: %{timestamp: b.timestamp, value: cb.value}
) )
end end

Loading…
Cancel
Save