Skip to content

Commit

Permalink
Use pending block_report.start_time for producing time calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 committed Oct 1, 2024
1 parent 116512c commit ebbf8d5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5244,8 +5244,6 @@ transaction_trace_ptr controller::start_block( block_timestamp_type when,
}

void controller::assemble_and_complete_block( block_report& br, const signer_callback_type& signer_callback ) {
fc::time_point start_time = fc::time_point::now(); // want to report total time of producing a block

validate_db_available_size();

my->assemble_block(false, {}, nullptr);
Expand All @@ -5259,7 +5257,6 @@ void controller::assemble_and_complete_block( block_report& br, const signer_cal
valid_block_signing_authority);

br = my->pending->_block_report;
br.start_time = start_time;
}

void controller::commit_block(block_report& br) {
Expand Down

0 comments on commit ebbf8d5

Please sign in to comment.