Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::plugin::debug_node::debug_node_api Class Reference

#include <debug_node_api.hpp>

Public Member Functions

 debug_node_api (const golos::application::api_context &ctx)
void on_api_startup ()
uint32_t debug_push_blocks (std::string src_filename, uint32_t count, bool skip_validate_invariants=false)
uint32_t debug_generate_blocks (std::string debug_key, uint32_t count)
uint32_t debug_generate_blocks_until (std::string debug_key, fc::time_point_sec head_block_time, bool generate_sparsely=true)
fc::optional< chain::signed_block > debug_pop_block ()
chain::witness_schedule_object debug_get_witness_schedule ()
chain::hardfork_property_object debug_get_hardfork_property_object ()
void debug_set_dev_key_prefix (std::string prefix)
get_dev_key_result debug_get_dev_key (get_dev_key_args args)
debug_mine_result debug_mine (debug_mine_args args)
void debug_set_hardfork (uint32_t hardfork_id)
bool debug_has_hardfork (uint32_t hardfork_id)
std::string debug_get_json_schema ()

Public Attributes

std::shared_ptr< detail::debug_node_api_implmy

Detailed Description

Definition at line 46 of file debug_node_api.hpp.

Constructor & Destructor Documentation

◆ debug_node_api()

golos::plugin::debug_node::debug_node_api::debug_node_api ( const golos::application::api_context ctx)

Definition at line 362 of file debug_node_api.cpp.

Member Function Documentation

◆ debug_generate_blocks()

uint32_t golos::plugin::debug_node::debug_node_api::debug_generate_blocks ( std::string  debug_key,
uint32_t  count 

Generate blocks locally.

Definition at line 374 of file debug_node_api.cpp.

◆ debug_generate_blocks_until()

uint32_t golos::plugin::debug_node::debug_node_api::debug_generate_blocks_until ( std::string  debug_key,
fc::time_point_sec  head_block_time,
bool  generate_sparsely = true 

Definition at line 378 of file debug_node_api.cpp.

◆ debug_get_dev_key()

get_dev_key_result golos::plugin::debug_node::debug_node_api::debug_get_dev_key ( get_dev_key_args  args)

Get developer key. Use debug_set_key_prefix() to set a prefix if desired.

Definition at line 426 of file debug_node_api.cpp.

◆ debug_get_hardfork_property_object()

chain::hardfork_property_object golos::plugin::debug_node::debug_node_api::debug_get_hardfork_property_object ( )

Definition at line 397 of file debug_node_api.cpp.

◆ debug_get_json_schema()

std::string golos::plugin::debug_node::debug_node_api::debug_get_json_schema ( )

Definition at line 458 of file debug_node_api.cpp.

◆ debug_get_witness_schedule()

chain::witness_schedule_object golos::plugin::debug_node::debug_node_api::debug_get_witness_schedule ( )

Definition at line 393 of file debug_node_api.cpp.

◆ debug_has_hardfork()

bool golos::plugin::debug_node::debug_node_api::debug_has_hardfork ( uint32_t  hardfork_id)

Definition at line 454 of file debug_node_api.cpp.

◆ debug_mine()

debug_mine_result golos::plugin::debug_node::debug_node_api::debug_mine ( debug_mine_args  args)

Synchronous mining, does not return until work is found.

Definition at line 432 of file debug_node_api.cpp.

◆ debug_pop_block()

fc::optional< chain::signed_block > golos::plugin::debug_node::debug_node_api::debug_pop_block ( )

Definition at line 384 of file debug_node_api.cpp.

◆ debug_push_blocks()

uint32_t golos::plugin::debug_node::debug_node_api::debug_push_blocks ( std::string  src_filename,
uint32_t  count,
bool  skip_validate_invariants = false 

Push blocks from existing database.

Definition at line 369 of file debug_node_api.cpp.

◆ debug_set_dev_key_prefix()

void golos::plugin::debug_node::debug_node_api::debug_set_dev_key_prefix ( std::string  prefix)

Directly manipulate database objects (will undo and re-apply last block with new changes post-applied). Set developer key prefix. This prefix only applies to the current API session. (Thus, this method is only useful to websocket-based API clients.) Prefix will be used for debug_get_dev_key() and debug_mine_account().

Definition at line 422 of file debug_node_api.cpp.

◆ debug_set_hardfork()

void golos::plugin::debug_node::debug_node_api::debug_set_hardfork ( uint32_t  hardfork_id)

Start a node with given initial path. Save the database to disk. Stream objects to file. (Hint: Create with mkfifo and pipe it to a script) Flush streaming file.

Definition at line 450 of file debug_node_api.cpp.

◆ on_api_startup()

void golos::plugin::debug_node::debug_node_api::on_api_startup ( )

Definition at line 366 of file debug_node_api.cpp.

Member Data Documentation

◆ my

std::shared_ptr<detail::debug_node_api_impl> golos::plugin::debug_node::debug_node_api::my

Definition at line 137 of file debug_node_api.hpp.

The documentation for this class was generated from the following files: