mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-01-09 23:25:16 -08:00
lookahead optimization for users that disabled subaddresses (#220)
This commit is contained in:
committed by
Lee *!* Clagett
parent
332c969c74
commit
6c0b957e95
@@ -315,6 +315,9 @@ namespace lws
|
|||||||
|
|
||||||
void update_lookahead(const account& user, subaddress_reader& reader, const db::address_index& match, const db::block_id height)
|
void update_lookahead(const account& user, subaddress_reader& reader, const db::address_index& match, const db::block_id height)
|
||||||
{
|
{
|
||||||
|
if (match.is_zero())
|
||||||
|
return; // keep subaddress disabled servers quick
|
||||||
|
|
||||||
if (!reader.disk)
|
if (!reader.disk)
|
||||||
throw std::runtime_error{"Bad DB handle in scanner"};
|
throw std::runtime_error{"Bad DB handle in scanner"};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user