From dd7a3a6c8a276724f163a5a6a3d7d7643fae9437 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 9 Feb 2022 13:23:50 +0200 Subject: [PATCH] followup --- drongo | 2 +- .../java/com/sparrowwallet/sparrow/io/db/DbPersistence.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drongo b/drongo index de87ab11..78359961 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit de87ab1102db12cad8bbfe814a1346078cf957a5 +Subproject commit 78359961f369f4f8b016973529241048f2ef216d diff --git a/src/main/java/com/sparrowwallet/sparrow/io/db/DbPersistence.java b/src/main/java/com/sparrowwallet/sparrow/io/db/DbPersistence.java index 0a7defac..df8bda72 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/db/DbPersistence.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/db/DbPersistence.java @@ -262,6 +262,10 @@ public class DbPersistence implements Persistence { BlockTransaction blkTx = wallet.getTransactions().get(txid); blockTransactionDao.addOrUpdate(wallet, txid, blkTx); } + if(!dirtyPersistables.clearHistory) { + DetachedLabelDao detachedLabelDao = handle.attach(DetachedLabelDao.class); + detachedLabelDao.clearAndAddAll(wallet); + } } if(dirtyPersistables.label != null) {