BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
graphene::debug_witness::debug_api Class Reference

#include <debug_api.hpp>

Public Member Functions

 debug_api (graphene::app::application &app)
 
void debug_push_blocks (std::string src_filename, uint32_t count)
 
void debug_generate_blocks (std::string debug_key, uint32_t count)
 
void debug_update_object (fc::variant_object update)
 
void debug_stream_json_objects (std::string filename)
 
void debug_stream_json_objects_flush ()
 

Public Attributes

std::shared_ptr< detail::debug_api_implmy
 

Detailed Description

Definition at line 42 of file debug_api.hpp.

Constructor & Destructor Documentation

◆ debug_api()

graphene::debug_witness::debug_api::debug_api ( graphene::app::application app)

Definition at line 126 of file debug_api.cpp.

Member Function Documentation

◆ debug_generate_blocks()

void graphene::debug_witness::debug_api::debug_generate_blocks ( std::string  debug_key,
uint32_t  count 
)

Generate blocks locally.

Definition at line 136 of file debug_api.cpp.

◆ debug_push_blocks()

void graphene::debug_witness::debug_api::debug_push_blocks ( std::string  src_filename,
uint32_t  count 
)

Push blocks from existing database.

Definition at line 131 of file debug_api.cpp.

◆ debug_stream_json_objects()

void graphene::debug_witness::debug_api::debug_stream_json_objects ( std::string  filename)

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)

Definition at line 146 of file debug_api.cpp.

◆ debug_stream_json_objects_flush()

void graphene::debug_witness::debug_api::debug_stream_json_objects_flush ( )

Flush streaming file.

Definition at line 151 of file debug_api.cpp.

◆ debug_update_object()

void graphene::debug_witness::debug_api::debug_update_object ( fc::variant_object  update)

Directly manipulate database objects (will undo and re-apply last block with new changes post-applied).

Definition at line 141 of file debug_api.cpp.

Member Data Documentation

◆ my

std::shared_ptr< detail::debug_api_impl > graphene::debug_witness::debug_api::my

Definition at line 85 of file debug_api.hpp.


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