Skip to content

Commit

Permalink
Removing unneeded addon of burning address to transaction movements
Browse files Browse the repository at this point in the history
  • Loading branch information
netboz committed Dec 18, 2022
1 parent 829d1a8 commit 548c488
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lib/archethic/account/mem_tables_loader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -87,27 +87,6 @@ defmodule Archethic.Account.MemTablesLoader do
UCOLedger.spend_all_unspent_outputs(previous_address)
TokenLedger.spend_all_unspent_outputs(previous_address)

burn_storage_nodes =
Election.storage_nodes(
LedgerOperations.burning_address(),
P2P.authorized_and_available_nodes(timestamp)
)

transaction_movements =
if Utils.key_in_node_list?(burn_storage_nodes, Crypto.first_node_public_key()) and
fee > 0 do
[
%TransactionMovement{
to: LedgerOperations.burning_address(),
amount: fee,
type: :UCO
}
| transaction_movements
]
else
transaction_movements
end

:ok =
set_transaction_movements(
address,
Expand Down

0 comments on commit 548c488

Please sign in to comment.