Skip to content

Commit

Permalink
Correct self repair utxo error (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed May 13, 2022
1 parent f7c767a commit 4c5ef90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/archethic/replication.ex
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ defmodule Archethic.Replication do

defp fetch_inputs_unspent_outputs(
tx = %Transaction{validation_stamp: %ValidationStamp{timestamp: tx_time}},
_self_repair = true
_self_repair? = true
) do
previous_address = Transaction.previous_address(tx)

Expand All @@ -300,7 +300,7 @@ defmodule Archethic.Replication do
end)
end

defp fetch_inputs_unspent_outputs(tx = %Transaction{}, _self_repair = false) do
defp fetch_inputs_unspent_outputs(tx = %Transaction{}, _self_repair? = false) do
previous_address = Transaction.previous_address(tx)

Logger.debug(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ defmodule Archethic.SelfRepair.Sync.BeaconSummaryHandler.TransactionHandler do

cond do
Election.chain_storage_node?(address, type, Crypto.first_node_public_key(), node_list) ->
Replication.validate_and_store_transaction_chain(tx, self_repair: true)
Replication.validate_and_store_transaction_chain(tx, self_repair?: true)

Election.io_storage_node?(tx, Crypto.first_node_public_key(), node_list) ->
Replication.validate_and_store_transaction(tx)
Expand Down

0 comments on commit 4c5ef90

Please sign in to comment.