8 #include <fc/optional.hpp>
9 #include <fc/variant_object.hpp>
23 namespace debug_node {
26 class debug_node_api_impl;
63 uint32_t
debug_push_blocks(std::string src_filename, uint32_t count,
bool skip_validate_invariants =
false);
74 fc::time_point_sec head_block_time,
75 bool generate_sparsely =
true);
146 std::shared_ptr<detail::debug_node_api_impl> my;
159 (debug_generate_blocks)
160 (debug_generate_blocks_until)
164 (debug_get_witness_schedule)
165 (debug_get_hardfork_property_object)
166 (debug_set_dev_key_prefix)
debug_node_api(const scorum::app::api_context &ctx)
scorum::chain::witness_schedule_object debug_get_witness_schedule()
fc::optional< scorum::chain::signed_block > debug_pop_block()
Pop a block from the blockchain, returning it.
get_dev_key_result debug_get_dev_key(get_dev_key_args args)
Get developer key. Use debug_set_key_prefix() to set a prefix if desired.
bool debug_has_hardfork(uint32_t hardfork_id)
void debug_set_dev_key_prefix(std::string prefix)
Set developer key prefix. This prefix only applies to the current API session. (Thus,...
uint32_t debug_generate_blocks(std::string debug_key, uint32_t count)
Generate blocks locally.
uint32_t 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.
void debug_set_hardfork(uint32_t hardfork_id)
scorum::chain::hardfork_property_object debug_get_hardfork_property_object()
uint32_t debug_push_blocks(std::string src_filename, uint32_t count, bool skip_validate_invariants=false)
Push blocks from existing database.
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
chain::public_key_type public_key