lookahead optimization for users that disabled subaddresses (#220)

This commit is contained in:
Lee *!* Clagett
2025-12-19 15:48:45 -05:00
committed by Lee *!* Clagett
parent 332c969c74
commit 6c0b957e95

View File

@@ -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"};