Skip to content

Commit

Permalink
Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Feb 24, 2024
1 parent 7e7d910 commit 04e69b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/chain/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ code block::check(const context& ctx) const NOEXCEPT
return check_transactions(ctx);
}

// These assume that prevout caching is completed on all inputs.
// This assumes that prevout caching is completed on all inputs.
code block::accept(const context& ctx, size_t subsidy_interval,
uint64_t initial_subsidy) const NOEXCEPT
{
Expand All @@ -722,7 +722,8 @@ code block::accept(const context& ctx, size_t subsidy_interval,
return accept_transactions(ctx);
}

// This assume that prevout and metadata caching are completed on all inputs.
// Node performs these checks through database query.
// This assumes that prevout and metadata caching are completed on all inputs.
code block::confirm(const context& ctx) const NOEXCEPT
{
const auto bip30 = ctx.is_enabled(bip30_rule);
Expand Down
2 changes: 1 addition & 1 deletion src/chain/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ code transaction::check(const context& ctx) const NOEXCEPT
}

// Do NOT invoke on coinbase.
// These assume that prevout caching is completed on all inputs.
// This assumes that prevout caching is completed on all inputs.
code transaction::accept(const context&) const NOEXCEPT
{
BC_ASSERT(!is_coinbase());
Expand Down

0 comments on commit 04e69b3

Please sign in to comment.