do not fetch emission rewards for transactions csv exporter

pull/2569/head
Ayrat Badykov 5 years ago
parent 6a9aa65e44
commit 4c3317820c
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/explorer/lib/explorer/chain.ex
  2. 5
      apps/explorer/lib/explorer/chain/address_transaction_csv_exporter.ex

@ -248,7 +248,7 @@ defmodule Explorer.Chain do
end end
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) direction = Keyword.get(options, :direction)
necessity_by_association = Keyword.get(options, :necessity_by_association, %{}) necessity_by_association = Keyword.get(options, :necessity_by_association, %{})

@ -42,9 +42,8 @@ defmodule Explorer.Chain.AddressTransactionCsvExporter do
end end
defp fetch_all_transactions(address_hash, paging_options, acc \\ []) do 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_without_rewards(address_hash, paging_options, @necessity_by_association)
transactions = Chain.address_to_transactions_with_rewards(address_hash, options)
new_acc = transactions ++ acc new_acc = transactions ++ acc

Loading…
Cancel
Save