Skip to content

Commit

Permalink
Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jun 24, 2024
1 parent 9881dd0 commit 7960298
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/protocols/protocol_block_in_31800.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec,
query.is_milestone(link);

// Transaction commitments and malleation are checked under bypass.
// Invalidity is only stored in the case where a strong header has been
// stored, later to be found out as invalid. The invalidity prevents repeat
// processing of the same invalid chain but is not logically necessary. It
// is not stored in the case where the block is malleated32/64.
if (const auto code = check(*block_ptr, it->context, checked))
{
if (code == system::error::invalid_transaction_commitment ||
Expand Down Expand Up @@ -382,7 +386,7 @@ code protocol_block_in_31800::check(const chain::block& block,
{
code ec{};

// Transaction commitments and malleated32 are checked under bypass.
// Transaction commitments and malleated are checked under bypass.
if ((ec = block.check(bypass)))
return ec;

Expand Down

0 comments on commit 7960298

Please sign in to comment.