Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLEOS support for get_finalizer_info RPC endpoint #470

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions programs/cleos/httpc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ namespace eosio { namespace client { namespace http {
const string get_raw_code_and_abi_func = chain_func_base + "/get_raw_code_and_abi";
const string get_currency_balance_func = chain_func_base + "/get_currency_balance";
const string get_currency_stats_func = chain_func_base + "/get_currency_stats";
const string get_finalizer_info_func = chain_func_base + "/get_finalizer_info";
const string get_producers_func = chain_func_base + "/get_producers";
const string get_schedule_func = chain_func_base + "/get_producer_schedule";
const string get_required_keys = chain_func_base + "/get_required_keys";
Expand Down
5 changes: 5 additions & 0 deletions programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2988,6 +2988,11 @@ int main( int argc, char** argv ) {
std::cout << fc::json::to_pretty_string(get_info()) << std::endl;
});

// get finalizer info
get->add_subcommand("finalizer_info", localized("Get current finalizer information"))->callback([] {
std::cout << fc::json::to_pretty_string(call(get_finalizer_info_func, fc::mutable_variant_object())) << std::endl;
});

// get transaction status
string status_transaction_id;
auto getTransactionStatus = get->add_subcommand("transaction-status", localized("Get transaction status information"));
Expand Down