From b556f2ad866d9bb17c6a4c781ec8170a8b240023 Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 11 Jul 2024 22:10:54 +0200 Subject: [PATCH] minor improvements --- src/currency_protocol/currency_protocol_handler.inl | 1 + src/wallet/wallet2.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/currency_protocol/currency_protocol_handler.inl b/src/currency_protocol/currency_protocol_handler.inl index 9f4c22de..e6d75eb2 100644 --- a/src/currency_protocol/currency_protocol_handler.inl +++ b/src/currency_protocol/currency_protocol_handler.inl @@ -7,6 +7,7 @@ #include #include "currency_core/currency_format_utils.h" #include "profile_tools.h" +#include namespace currency { diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index d56be799..891d76c4 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -5052,7 +5052,7 @@ bool wallet2::build_minted_block(const mining_context& cxt, const currency::acco WLT_LOG_GREEN("Note: " << udtx.vin.size() << " inputs were aggregated into UTXO defragmentation tx " << get_transaction_hash(udtx), LOG_LEVEL_0); } m_core_proxy->call_COMMAND_RPC_GETBLOCKTEMPLATE(tmpl_req, tmpl_rsp); - WLT_CHECK_AND_ASSERT_MES(tmpl_rsp.status == API_RETURN_CODE_OK, false, "Failed to create block template after kernel hash found!"); + WLT_CHECK_AND_ASSERT_MES(tmpl_rsp.status == API_RETURN_CODE_OK, false, "Failed to create block template after kernel hash found! Status: " << tmpl_rsp.status); currency::block b = AUTO_VAL_INIT(b); currency::blobdata block_blob;