Skip to content

Commit

Permalink
Fix Proof of work existence for node transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmanzanera committed Nov 14, 2022
1 parent 5dbd9da commit a15eed8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/archethic/mining/validation_context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ defmodule Archethic.Mining.ValidationContext do
alias Archethic.P2P
alias Archethic.P2P.Node

alias Archethic.SharedSecrets
alias Archethic.Replication

alias Archethic.TransactionChain
Expand Down Expand Up @@ -1026,7 +1025,7 @@ defmodule Archethic.Mining.ValidationContext do

_ ->
Transaction.verify_origin_signature?(tx, pow) and
SharedSecrets.has_origin_public_key?(pow)
pow in ProofOfWork.list_origin_public_keys_candidates(tx)
end
end

Expand Down

0 comments on commit a15eed8

Please sign in to comment.