Skip to content

Commit

Permalink
GH-529 Move block_report to controller.cpp has no longer used outside…
Browse files Browse the repository at this point in the history
… of controller.cpp.
  • Loading branch information
heifner committed Sep 2, 2024
1 parent d461c2b commit ca75538
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 8 additions & 1 deletion libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,12 +828,19 @@ struct building_block {

using block_stage_type = std::variant<building_block, assembled_block, completed_block>;

struct block_report {
size_t total_net_usage = 0;
size_t total_cpu_usage_us = 0;
fc::microseconds total_elapsed_time{};
fc::time_point start_time{};
};

struct pending_state {
maybe_session _db_session;
block_stage_type _block_stage;
controller::block_status _block_status = controller::block_status::ephemeral;
std::optional<block_id_type> _producer_block_id;
controller::block_report _block_report{};
block_report _block_report{};

// Legacy
pending_state(maybe_session&& s,
Expand Down
7 changes: 0 additions & 7 deletions libraries/chain/include/eosio/chain/controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,6 @@ namespace eosio::chain {
fc::time_point block_deadline, fc::microseconds max_transaction_time,
uint32_t billed_cpu_time_us, bool explicit_billed_cpu_time );

struct block_report {
size_t total_net_usage = 0;
size_t total_cpu_usage_us = 0;
fc::microseconds total_elapsed_time{};
fc::time_point start_time{};
};

void assemble_and_complete_block( const signer_callback_type& signer_callback );
void sign_block( const signer_callback_type& signer_callback );
void commit_block();
Expand Down

0 comments on commit ca75538

Please sign in to comment.