show deduplicated zero balances

pull/2538/head
Ayrat Badykov 5 years ago
parent b944d936cf
commit a8022e1cd4
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 1
      apps/explorer/lib/explorer/chain.ex
  2. 1
      apps/explorer/lib/explorer/chain/address/coin_balance.ex

@ -2965,6 +2965,7 @@ defmodule Explorer.Chain do
|> CoinBalance.fetch_coin_balances(paging_options)
|> page_coin_balances(paging_options)
|> Repo.all()
|> Enum.dedup()
end
def get_coin_balance(address_hash, block_number) do

@ -75,7 +75,6 @@ defmodule Explorer.Chain.Address.CoinBalance do
from(
cb in CoinBalance,
where: cb.address_hash == ^address_hash,
where: cb.value > ^0,
inner_join: b in Block,
on: cb.block_number == b.number,
order_by: [desc: :block_number],

Loading…
Cancel
Save