Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::test_control_apis::read_write Class Reference

#include <test_control_plugin.hpp>

Classes

struct  kill_node_on_producer_params
 

Public Types

using kill_node_on_producer_results = empty
 

Public Member Functions

 read_write (const test_control_ptr &test_control)
 
kill_node_on_producer_results kill_node_on_producer (const kill_node_on_producer_params &params) const
 

Detailed Description

Definition at line 16 of file test_control_plugin.hpp.

Member Typedef Documentation

◆ kill_node_on_producer_results

Constructor & Destructor Documentation

◆ read_write()

sysio::test_control_apis::read_write::read_write ( const test_control_ptr & test_control)
inline

Definition at line 19 of file test_control_plugin.hpp.

20 : my(test_control) {}

Member Function Documentation

◆ kill_node_on_producer()

read_write::kill_node_on_producer_results sysio::test_control_apis::read_write::kill_node_on_producer ( const kill_node_on_producer_params & params) const

Definition at line 127 of file test_control_plugin.cpp.

127 {
128
129 if (params.based_on_lib) {
130 ilog("kill on lib for producer: ${p} at their ${s} slot in sequence", ("p", params.producer.to_string())("s", params.where_in_sequence));
131 my->kill_on_lib(params.producer, params.where_in_sequence);
132 } else {
133 ilog("kill on head for producer: ${p} at their ${s} slot in sequence", ("p", params.producer.to_string())("s", params.where_in_sequence));
134 my->kill_on_head(params.producer, params.where_in_sequence);
135 }
137}
#define ilog(FORMAT,...)
Definition logger.hpp:118
account_query_db::get_accounts_by_authorizers_params params

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