未验证 提交 73cf85f8 编写于 作者: K Kevin Heifner 提交者: GitHub

Merge pull request #5492 from jjnetcn/patch-4

cleos support deferred action
......@@ -184,6 +184,8 @@ bool print_response = false;
uint8_t tx_max_cpu_usage = 0;
uint32_t tx_max_net_usage = 0;
uint32_t delaysec = 0;
vector<string> tx_permission;
eosio::client::http::http_context context;
......@@ -214,6 +216,8 @@ void add_standard_transaction_options(CLI::App* cmd, string default_permission =
cmd->add_option("--max-cpu-usage-ms", tx_max_cpu_usage, localized("set an upper limit on the milliseconds of cpu usage budget, for the execution of the transaction (defaults to 0 which means no limit)"));
cmd->add_option("--max-net-usage", tx_max_net_usage, localized("set an upper limit on the net usage budget, in bytes, for the transaction (defaults to 0 which means no limit)"));
cmd->add_option("--delay-sec", delaysec, localized("set the delay_sec seconds, defaults to 0s"));
}
vector<chain::permission_level> get_account_permissions(const vector<string>& permissions) {
......@@ -314,6 +318,7 @@ fc::variant push_transaction( signed_transaction& trx, int32_t extra_kcpu = 1000
trx.max_cpu_usage_ms = tx_max_cpu_usage;
trx.max_net_usage_words = (tx_max_net_usage + 7)/8;
trx.delay_sec = delaysec;
}
if (!tx_skip_sign) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册