Menu

Test Control Api Plugin

Description

The test_control_api_plugin allows to send a control message to the test_control_plugin telling the plugin to shut down the nodeos instance when reaching a particular block. It is intended for testing.

Usage

# config.ini
plugin = eosio::test_control_api_plugin
# command-line
nodeos ... --plugin eosio::test_control_api_plugin

Options

None

Usage Example

curl %s/v1/test_control/kill_node_on_producer -d '{ \"producer\":\"%s\", \"where_in_sequence\":%d, \"based_on_lib\":\"%s\" }' -X POST -H \"Content-Type: application/json\"" %

Dependencies

Load Dependency Examples

# config.ini
plugin = eosio::chain_plugin
[options]
plugin = eosio::http_plugin
[options]
# command-line
nodeos ... --plugin eosio::chain_plugin [operations] [options]  \
           --plugin eosio::http_plugin [options]