BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface 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

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

Definition at line 124 of file debug_api.cpp.

Member Function Documentation

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

Generate blocks locally.

Definition at line 134 of file debug_api.cpp.

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

Push blocks from existing database.

Definition at line 129 of file debug_api.cpp.

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 144 of file debug_api.cpp.

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

Flush streaming file.

Definition at line 149 of file debug_api.cpp.

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 139 of file debug_api.cpp.

Member Data Documentation

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: