From 4121cbe6753d645598cd6fef1362b7a99e8c2ad3 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Wed, 17 Mar 2021 21:01:09 +0300 Subject: [PATCH] added tx_payer to htlc --- src/wallet/wallet2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 2c44dcd7..ab71af8f 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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;