Merge pull request #2569 from poanetwork/ab-fix-transactions-csv-for-emission-transactions

do not fetch emission rewards for transactions csv exporter
transactions-history
Victor Baranov 5 years ago committed by GitHub
commit 07a943dbb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/explorer/lib/explorer/chain.ex
  3. 5
      apps/explorer/lib/explorer/chain/address_transaction_csv_exporter.ex

@ -5,6 +5,7 @@
- [#2497](https://github.com/poanetwork/blockscout/pull/2497) - Add generic Ordered Cache behaviour and implementation
### Fixes
- [#2569](https://github.com/poanetwork/blockscout/pull/2569) - do not fetch emission rewards for transactions csv exporter
- [#2564](https://github.com/poanetwork/blockscout/pull/2564) - fix first page button for uncles and reorgs
- [#2563](https://github.com/poanetwork/blockscout/pull/2563) - Fix view less transfers button
- [#2538](https://github.com/poanetwork/blockscout/pull/2538) - fetch the last not empty coin balance records

@ -248,7 +248,7 @@ defmodule Explorer.Chain do
end
end
defp address_to_transactions_without_rewards(address_hash, paging_options, options) do
def address_to_transactions_without_rewards(address_hash, paging_options, options) do
direction = Keyword.get(options, :direction)
necessity_by_association = Keyword.get(options, :necessity_by_association, %{})

@ -42,9 +42,8 @@ defmodule Explorer.Chain.AddressTransactionCsvExporter do
end
defp fetch_all_transactions(address_hash, paging_options, acc \\ []) do
options = Keyword.merge(@necessity_by_association, paging_options: paging_options)
transactions = Chain.address_to_transactions_with_rewards(address_hash, options)
transactions =
Chain.address_to_transactions_without_rewards(address_hash, paging_options, @necessity_by_association)
new_acc = transactions ++ acc

Loading…
Cancel
Save