跳至主要内容
此页面是从英文翻译而来的。请注意,与原始页面相比,可能会出现错误或差异。真实的文档来源应始终是英文版本。

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]