@@ -120,7 +120,7 @@ kth_error_code_t kth_chain_sync_block_by_height(kth_chain_t chain, kth_size_t he
120120 std::latch latch (1 ); // Note: workaround to fix an error on some versions of Boost.Threads
121121 kth_error_code_t res;
122122
123- safe_chain (chain).fetch_block (height, kth::witness (), [&](std::error_code const & ec, kth::domain::message::block::const_ptr block, size_t h) {
123+ safe_chain (chain).fetch_block (height, [&](std::error_code const & ec, kth::domain::message::block::const_ptr block, size_t h) {
124124 if (ec == kth::error::success) {
125125 *out_block = kth::leak_if_success (block, ec);
126126 } else {
@@ -142,7 +142,7 @@ kth_error_code_t kth_chain_sync_block_by_hash(kth_chain_t chain, kth_hash_t hash
142142
143143 auto hash_cpp = kth::to_array (hash.hash );
144144
145- safe_chain (chain).fetch_block (hash_cpp, kth::witness (), [&](std::error_code const & ec, kth::domain::message::block::const_ptr block, size_t h) {
145+ safe_chain (chain).fetch_block (hash_cpp, [&](std::error_code const & ec, kth::domain::message::block::const_ptr block, size_t h) {
146146 if (ec == kth::error::success) {
147147 *out_block = kth::leak_if_success (block, ec);
148148 } else {
@@ -280,7 +280,7 @@ kth_error_code_t kth_chain_sync_transaction(kth_chain_t chain, kth_hash_t hash,
280280
281281 auto hash_cpp = kth::to_array (hash.hash );
282282
283- safe_chain (chain).fetch_transaction (hash_cpp, kth::int_to_bool (require_confirmed), kth::witness (), [&](std::error_code const & ec, kth::domain::message::transaction::const_ptr transaction, size_t i, size_t h) {
283+ safe_chain (chain).fetch_transaction (hash_cpp, kth::int_to_bool (require_confirmed), [&](std::error_code const & ec, kth::domain::message::transaction::const_ptr transaction, size_t i, size_t h) {
284284 *out_transaction = kth::leak_if_success (transaction, ec);
285285 *out_height = h;
286286 *out_index = i;
@@ -375,7 +375,7 @@ kth_error_code_t kth_chain_sync_confirmed_transactions(kth_chain_t chain, kth_pa
375375kth_mempool_transaction_list_t kth_chain_sync_mempool_transactions (kth_chain_t chain, kth_payment_address_t address, kth_bool_t use_testnet_rules) {
376376 auto const & address_cpp = kth_wallet_payment_address_const_cpp (address);
377377 if (address_cpp) {
378- auto txs = safe_chain (chain).get_mempool_transactions (address_cpp.encoded_cashaddr (false ), kth::int_to_bool (use_testnet_rules), kth::witness () );
378+ auto txs = safe_chain (chain).get_mempool_transactions (address_cpp.encoded_cashaddr (false ), kth::int_to_bool (use_testnet_rules));
379379 auto ret_txs = kth::leak (txs);
380380 return static_cast <kth_mempool_transaction_list_t >(ret_txs);
381381 }
@@ -385,7 +385,7 @@ kth_mempool_transaction_list_t kth_chain_sync_mempool_transactions(kth_chain_t c
385385
386386kth_transaction_list_t kth_chain_sync_mempool_transactions_from_wallets (kth_chain_t chain, kth_payment_address_list_t addresses, kth_bool_t use_testnet_rules) {
387387 auto const & addresses_cpp = *static_cast <std::vector<kth::domain::wallet::payment_address> const *>(addresses);
388- auto txs = safe_chain (chain).get_mempool_transactions_from_wallets (addresses_cpp, kth::int_to_bool (use_testnet_rules), kth::witness () );
388+ auto txs = safe_chain (chain).get_mempool_transactions_from_wallets (addresses_cpp, kth::int_to_bool (use_testnet_rules));
389389 return kth::move_or_copy_and_leak (std::move (txs));
390390}
391391
0 commit comments