Scorum
Debug node API

Provide api for direct blocklog access. More...

Public API

uint32_t scorum::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. More...
 
uint32_t scorum::plugin::debug_node::debug_node_api::debug_generate_blocks (std::string debug_key, uint32_t count)
 Generate blocks locally. More...
 
uint32_t scorum::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)
 Generate blocks locally until a specified head block time. Can generate them sparsely. More...
 
fc::optional< scorum::chain::signed_blockscorum::plugin::debug_node::debug_node_api::debug_pop_block ()
 Pop a block from the blockchain, returning it. More...
 
scorum::chain::witness_schedule_object scorum::plugin::debug_node::debug_node_api::debug_get_witness_schedule ()
 
scorum::chain::hardfork_property_object scorum::plugin::debug_node::debug_node_api::debug_get_hardfork_property_object ()
 
void scorum::plugin::debug_node::debug_node_api::debug_set_dev_key_prefix (std::string prefix)
 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(). More...
 
get_dev_key_result scorum::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. More...
 
void scorum::plugin::debug_node::debug_node_api::debug_set_hardfork (uint32_t hardfork_id)
 
bool scorum::plugin::debug_node::debug_node_api::debug_has_hardfork (uint32_t hardfork_id)
 

Detailed Description

Provide api for direct blocklog access.

Require: debug_node_plugin

Function Documentation

◆ debug_generate_blocks()

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

Generate blocks locally.

Definition at line 281 of file debug_node_api.cpp.

◆ debug_generate_blocks_until()

uint32_t scorum::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 
)

Generate blocks locally until a specified head block time. Can generate them sparsely.

Definition at line 286 of file debug_node_api.cpp.

◆ debug_get_dev_key()

get_dev_key_result scorum::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 339 of file debug_node_api.cpp.

◆ debug_get_hardfork_property_object()

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

Definition at line 308 of file debug_node_api.cpp.

◆ debug_get_witness_schedule()

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

Definition at line 303 of file debug_node_api.cpp.

◆ debug_has_hardfork()

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

Definition at line 363 of file debug_node_api.cpp.

◆ debug_pop_block()

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

Pop a block from the blockchain, returning it.

Definition at line 293 of file debug_node_api.cpp.

◆ debug_push_blocks()

uint32_t scorum::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 276 of file debug_node_api.cpp.

◆ debug_set_dev_key_prefix()

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

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 334 of file debug_node_api.cpp.

◆ debug_set_hardfork()

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

Definition at line 358 of file debug_node_api.cpp.