1
0
Fork 0
forked from lthn/blockchain

added tx_payer to htlc

This commit is contained in:
cryptozoidberg 2021-03-17 21:01:09 +03:00
parent 72c6d886f4
commit 4121cbe675
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -4116,6 +4116,9 @@ void wallet2::create_htlc_proposal(uint64_t amount, const currency::account_publ
htlc_option.expiration = lock_blocks_count; //about 12 hours
htlc_option.htlc_hash = htlc_hash;
currency::create_and_add_tx_payer_to_container_from_address(ctp.extra,
get_account().get_keys().account_address, get_top_block_height(), get_core_runtime_config());
finalized_tx ft = AUTO_VAL_INIT(ft);
this->transfer(ctp, ft, true, nullptr);
origin = ft.htlc_origin;