Skip to content

Commit 83d0d23

Browse files
committed
Merge pull request #9011
03d51b7 wallet2: fix refresh function parameters (selsta)
2 parents f9b81a5 + 03d51b7 commit 83d0d23

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/wallet/wallet2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3919,7 +3919,7 @@ std::shared_ptr<std::map<std::pair<uint64_t, uint64_t>, size_t>> wallet2::create
39193919
return cache;
39203920
}
39213921
//----------------------------------------------------------------------------------------------------
3922-
void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blocks_fetched, bool& received_money, bool check_pool, uint64_t max_blocks, bool try_incremental)
3922+
void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blocks_fetched, bool& received_money, bool check_pool, bool try_incremental, uint64_t max_blocks)
39233923
{
39243924
if (m_offline)
39253925
{

src/wallet/wallet2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ namespace tools
10581058
bool is_deprecated() const;
10591059
void refresh(bool trusted_daemon);
10601060
void refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blocks_fetched);
1061-
void refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blocks_fetched, bool& received_money, bool check_pool = true, uint64_t max_blocks = std::numeric_limits<uint64_t>::max(), bool try_incremental = true);
1061+
void refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blocks_fetched, bool& received_money, bool check_pool = true, bool try_incremental = true, uint64_t max_blocks = std::numeric_limits<uint64_t>::max());
10621062
bool refresh(bool trusted_daemon, uint64_t & blocks_fetched, bool& received_money, bool& ok);
10631063

10641064
void set_refresh_type(RefreshType refresh_type) { m_refresh_type = refresh_type; }

src/wallet/wallet_rpc_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ namespace tools
154154
uint64_t blocks_fetched = 0;
155155
try {
156156
bool received_money = false;
157-
if (m_wallet) m_wallet->refresh(m_wallet->is_trusted_daemon(), 0, blocks_fetched, received_money, true, REFRESH_INFICATIVE_BLOCK_CHUNK_SIZE, true);
157+
if (m_wallet) m_wallet->refresh(m_wallet->is_trusted_daemon(), 0, blocks_fetched, received_money, true, true, REFRESH_INFICATIVE_BLOCK_CHUNK_SIZE);
158158
} catch (const std::exception& ex) {
159159
LOG_ERROR("Exception at while refreshing, what=" << ex.what());
160160
}

0 commit comments

Comments
 (0)