issue 327 fixed, add block_num
This commit is contained in:
parent
a5a8d6c617
commit
bfa7b13193
2 changed files with 6 additions and 2 deletions
|
|
@ -1580,6 +1580,7 @@ class wallet_api
|
||||||
* @returns the signed transaction.
|
* @returns the signed transaction.
|
||||||
*/
|
*/
|
||||||
signed_transaction sidechain_withdrawal_transaction(const string &son_name_or_id,
|
signed_transaction sidechain_withdrawal_transaction(const string &son_name_or_id,
|
||||||
|
uint32_t block_num,
|
||||||
const sidechain_type& sidechain,
|
const sidechain_type& sidechain,
|
||||||
const std::string &peerplays_uid,
|
const std::string &peerplays_uid,
|
||||||
const std::string &peerplays_transaction_id,
|
const std::string &peerplays_transaction_id,
|
||||||
|
|
|
||||||
|
|
@ -2362,6 +2362,7 @@ public:
|
||||||
} FC_CAPTURE_AND_RETHROW() }
|
} FC_CAPTURE_AND_RETHROW() }
|
||||||
|
|
||||||
signed_transaction sidechain_withdrawal_transaction(const string &son_name_or_id,
|
signed_transaction sidechain_withdrawal_transaction(const string &son_name_or_id,
|
||||||
|
uint32_t block_num,
|
||||||
const sidechain_type& sidechain,
|
const sidechain_type& sidechain,
|
||||||
const std::string &peerplays_uid,
|
const std::string &peerplays_uid,
|
||||||
const std::string &peerplays_transaction_id,
|
const std::string &peerplays_transaction_id,
|
||||||
|
|
@ -2402,7 +2403,7 @@ public:
|
||||||
op.payer = son_obj.son_account;
|
op.payer = son_obj.son_account;
|
||||||
op.son_id = son_obj.id;
|
op.son_id = son_obj.id;
|
||||||
op.timestamp = dynamic_props.time;
|
op.timestamp = dynamic_props.time;
|
||||||
op.block_num = dynamic_props.head_block_number;
|
op.block_num = block_num;
|
||||||
op.sidechain = sidechain;
|
op.sidechain = sidechain;
|
||||||
op.peerplays_uid = peerplays_uid;
|
op.peerplays_uid = peerplays_uid;
|
||||||
op.peerplays_transaction_id = peerplays_transaction_id;
|
op.peerplays_transaction_id = peerplays_transaction_id;
|
||||||
|
|
@ -5366,6 +5367,7 @@ signed_transaction wallet_api::delete_sidechain_address(string account,
|
||||||
}
|
}
|
||||||
|
|
||||||
signed_transaction wallet_api::sidechain_withdrawal_transaction(const string &son_name_or_id,
|
signed_transaction wallet_api::sidechain_withdrawal_transaction(const string &son_name_or_id,
|
||||||
|
uint32_t block_num,
|
||||||
const sidechain_type& sidechain,
|
const sidechain_type& sidechain,
|
||||||
const std::string &peerplays_uid,
|
const std::string &peerplays_uid,
|
||||||
const std::string &peerplays_transaction_id,
|
const std::string &peerplays_transaction_id,
|
||||||
|
|
@ -5376,6 +5378,7 @@ signed_transaction wallet_api::sidechain_withdrawal_transaction(const string &so
|
||||||
const string &withdraw_amount)
|
const string &withdraw_amount)
|
||||||
{
|
{
|
||||||
return my->sidechain_withdrawal_transaction(son_name_or_id,
|
return my->sidechain_withdrawal_transaction(son_name_or_id,
|
||||||
|
block_num,
|
||||||
sidechain,
|
sidechain,
|
||||||
peerplays_uid,
|
peerplays_uid,
|
||||||
peerplays_transaction_id,
|
peerplays_transaction_id,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue