Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
justfortest2 committed Nov 28, 2019
1 parent e2de88b commit bbc67da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
21 changes: 14 additions & 7 deletions plugins/ibc_plugin/ibc_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,8 @@ namespace eosio { namespace ibc {
auto actn = get_action( account, N(chaininit), vector<permission_level>{{ my_impl->relay, config::active_name}}, mvo()
("header", fc::raw::pack(msg.header))
("active_schedule", msg.active_schedule)
("blockroot_merkle", msg.blockroot_merkle));
("blockroot_merkle", msg.blockroot_merkle)
("relay", my_impl->relay));

if ( ! actn.valid() ){
elog("chain_init: get action failed");
Expand All @@ -899,7 +900,8 @@ namespace eosio { namespace ibc {
void ibc_chain_contract::pushsection( const lwc_section_data_message& msg ){
auto actn = get_action( account, N(pushsection), vector<permission_level>{{ my_impl->relay, config::active_name}}, mvo()
("headers", fc::raw::pack(msg.headers))
("blockroot_merkle", msg.blockroot_merkle));
("blockroot_merkle", msg.blockroot_merkle)
("relay", my_impl->relay));

if ( ! actn.valid() ){
elog("newsection: get action failed");
Expand All @@ -913,7 +915,8 @@ namespace eosio { namespace ibc {
("headers", fc::raw::pack(msg.headers))
("blockroot_merkle", msg.blockroot_merkle)
("proof_data", msg.proof_data)
("proof_type", msg.proof_type));
("proof_type", msg.proof_type)
("relay", my_impl->relay));

if ( ! actn.valid() ){
elog("newsection: get action failed");
Expand All @@ -923,7 +926,8 @@ namespace eosio { namespace ibc {
}

void ibc_chain_contract::rmfirstsctn(){
auto actn = get_action( account, N(rmfirstsctn), vector<permission_level>{{ my_impl->relay, config::active_name}}, mvo());
auto actn = get_action( account, N(rmfirstsctn), vector<permission_level>{{ my_impl->relay, config::active_name}}, mvo()
("relay", my_impl->relay));

if ( ! actn.valid() ){
elog("newsection: get action failed");
Expand Down Expand Up @@ -1337,7 +1341,8 @@ namespace eosio { namespace ibc {
("anchor_block_num", par.anchor_block_num)
("to", par.to)
("quantity", par.quantity)
("memo", par.memo));
("memo", par.memo)
("relay", my_impl->relay));

if ( ! actn.valid() ){
elog("get cash action failed");
Expand Down Expand Up @@ -1521,7 +1526,8 @@ namespace eosio { namespace ibc {
("anchor_block_num", par.anchor_block_num)
("to", par.to)
("quantity", par.quantity)
("memo", par.memo));
("memo", par.memo)
("relay", my_impl->relay));

if ( ! actn.valid() ){
elog("cash: get action failed");
Expand Down Expand Up @@ -1576,7 +1582,8 @@ namespace eosio { namespace ibc {
auto trx_id = params->at(index);
auto actn = get_action( account, action_name, vector<permission_level>{{ my_impl->relay, config::active_name}}, mvo()
("peerchain_name", peerchain_name)
("trx_id", trx_id));
("trx_id", trx_id)
("relay", my_impl->relay));

if ( ! actn.valid() ){
elog("newsection: get action failed");
Expand Down
1 change: 1 addition & 0 deletions plugins/ibc_plugin/include/eosio/ibc_plugin/ibc_plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ namespace eosio { namespace ibc {
name to;
asset quantity;
string memo;
name relay;
};

struct cashconfirm_action_params {
Expand Down

0 comments on commit bbc67da

Please sign in to comment.