diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2023-09-14 22:19:27 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2023-09-14 22:19:27 -0500 |
| commit | 031d318ca2cd6427fd91543e82eda0a9538fa73b (patch) | |
| tree | aeeb75766bdf128a1e5c7f3e2e3525ab056af093 /src/wallet/wallet2.cpp | |
| parent | 61e664a258aed020d3d346d319034c4adf28b1be (diff) | |
| parent | 356e6877dcd3fcb337ea8ff8c88cf44fbc6a30a6 (diff) | |
| download | monzero-core-031d318ca2cd6427fd91543e82eda0a9538fa73b.tar.gz monzero-core-031d318ca2cd6427fd91543e82eda0a9538fa73b.tar.xz monzero-core-031d318ca2cd6427fd91543e82eda0a9538fa73b.zip | |
Merge pull request #8941
356e687 wallet_rpc_server: chunk refresh to keep responding to RPC while refreshing (moneromooo-monero) 633e1b7 wallet_rpc_server: add --no-initial-sync flag for quicker network binding (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
| -rw-r--r-- | src/wallet/wallet2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 875360c5c..c5c66d4e5 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3919,7 +3919,7 @@ std::shared_ptr<std::map<std::pair<uint64_t, uint64_t>, size_t>> wallet2::create return cache; } //---------------------------------------------------------------------------------------------------- -void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blocks_fetched, bool& received_money, bool check_pool, bool try_incremental) +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) { if (m_offline) { @@ -4014,7 +4014,7 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo // infer when we get an incoming output bool first = true, last = false; - while(m_run.load(std::memory_order_relaxed)) + while(m_run.load(std::memory_order_relaxed) && blocks_fetched < max_blocks) { uint64_t next_blocks_start_height; std::vector<cryptonote::block_complete_entry> next_blocks; |
