forked from such-gitea/wownero-lws
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)
|
||||
{
|
||||
if (match.is_zero())
|
||||
return; // keep subaddress disabled servers quick
|
||||
|
||||
if (!reader.disk)
|
||||
throw std::runtime_error{"Bad DB handle in scanner"};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user