-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add cleos system activate subcommand (to activate system feature like kv_database) #10036
Conversation
…ch as: cleos system activate kv_database. don't need using digest.
std::string feature_digest = map_name_digest[feature_name_str]; | ||
data = "[\"" + feature_digest + "\"]"; | ||
} else { | ||
std::cout << "Can't find system feature : " << feature_name_str << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exit when feature cannot be found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Is the command format agreed by Areg?
- Add command usage to Documentation section in the PR header
yes, It is Areg's idea to add subcommand under cleos system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Click the documentation button in the PR and add documentation there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now documentation is there.
programs/cleos/main.cpp
Outdated
fc::variant action_args_var; | ||
if( !data.empty() ) { | ||
action_args_var = json_from_file_or_string(data, fc::json::parse_type::relaxed_parser); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an else to handle error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Is the command format agreed by Areg?
- Add command usage to Documentation section in the PR header
Change Description
Start 10036 description ......
EPE 453
Add cleos system activate subcommand (to activate system feature like kv_database)
you can find usage by: cleos system activate -h
support all system features. support uppercase and lowercase kv_database or KV_DATABASE or KV_database
using : cleos system activate kv_database
instead of using cleos push action eosio activate '["825ee6288fb1373eab1b5187ec2f04f6eacb39cb3a97f356a07c91622dd61d16"]' -p eosio
End 10036 description ......
Change Type
Select ONE
Consensus Changes
API Changes
Documentation Additions
new subcommand cleos system activate
see usage by: cleos system activate -h
example: cleos system activate kv_database
cleos system activate KV_DATABASE
cleos system activate KV_database
note : feature name argument is not sensitive to uppercase or lowercase