[sync] check last derivation in cache to avoid recomputation

This commit is contained in:
Riccardo Casatta committed 2020-11-16 12:06:48 +01:00
1 parent ac18fb119f
commit 4f99c77abe
1 file changed
+1 -1
+1 -1
View File
@@ -1268,7 +1268,7 @@ where
if self
.database
.borrow()
.get_script_pubkey_from_path(ScriptType::External, max_address)?
.get_script_pubkey_from_path(ScriptType::External, max_address.saturating_sub(1))?
.is_none()
{
run_setup = true;