Skip to main content

test_control_api_plugin

See Test Control API Reference

Overview

The test_control_api_plugin allows to forward control messages to the test_control_plugin. The current endpoint instructs the plugin to initiate the graceful shutdown of the nodeos instance once a specific block is reached. This functionality is primarily designed for testing purposes.

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]