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) {