Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
put back handling of POC not found
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Mar 4, 2022
1 parent 691c51c commit 6765290
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transactions/v1/blockchain_txn_poc_receipts_v1.erl
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ check_is_valid_poc(Txn, Chain) ->
Secret = ?MODULE:secret(Txn),

case blockchain_ledger_v1:find_poc(POCOnionKeyHash, Challenger, Ledger) of
{error, Reason}=Error ->
lager:warning([{poc_id, POCID}],
"poc_receipts error find_poc, poc_onion_key_hash: ~p, reason: ~p",
[POCOnionKeyHash, Reason]),
Error;
{ok, PoC} ->
case blockchain_ledger_poc_v2:is_valid(PoC, Challenger, Secret) of
false ->
Expand Down

0 comments on commit 6765290

Please sign in to comment.