Skip to content

Commit

Permalink
Align -t scan with configured maximum_height, comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Oct 22, 2024
1 parent c13f745 commit a7f41c7
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions console/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,7 @@ void executor::read_test() const
{
logger("Wire size computation.");
const auto start = fine_clock::now();

////constexpr auto last = 500'000_size;
const auto last = query_.get_top_candidate();
const auto last = metadata_.configured.node.maximum_height;

size_t size{};
for (auto height = zero; !cancel_ && height <= last; ++height)
Expand Down Expand Up @@ -1344,23 +1342,13 @@ void executor::read_test() const
//// return;
////}
////
////database::context context{};
////if (!query_.get_context(context, bk_link))
////chain::context ctx{};
////if (!query_.get_context(ctx, bk_link))
////{
//// logger("!query_.get_context(context, bk_link)");
//// logger("!query_.get_context(ctx, bk_link)");
//// return;
////}
////
////const chain::context ctx
////{
//// context.flags,
//// {},
//// context.mtp,
//// context.height,
//// {},
//// {}
////};
////
////if (!query_.populate_with_metadata(*tx))
////{
//// logger("!query_.populate_with_metadata(*tx)");
Expand Down

0 comments on commit a7f41c7

Please sign in to comment.