Skip to content

Commit 1b64f64

Browse files
committed
wallet: migration bugfix, clone 'send' record label to all wallets
1 parent c325f0f commit 1b64f64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4031,7 +4031,7 @@ bool CWallet::ApplyMigrationData(MigrationData& data, bilingual_str& error)
40314031
return false;
40324032
}
40334033
} else {
4034-
// Labels for everything else (send) should be cloned to all
4034+
// Labels for everything else ("send") should be cloned to all
40354035
if (data.watchonly_wallet) {
40364036
LOCK(data.watchonly_wallet->cs_wallet);
40374037
// Add to the watchonly. Preserve the labels, purpose, and change-ness
@@ -4040,7 +4040,6 @@ bool CWallet::ApplyMigrationData(MigrationData& data, bilingual_str& error)
40404040
if (!addr_pair.second.IsChange()) {
40414041
data.watchonly_wallet->m_address_book[addr_pair.first].SetLabel(label);
40424042
}
4043-
continue;
40444043
}
40454044
if (data.solvable_wallet) {
40464045
LOCK(data.solvable_wallet->cs_wallet);
@@ -4050,7 +4049,6 @@ bool CWallet::ApplyMigrationData(MigrationData& data, bilingual_str& error)
40504049
if (!addr_pair.second.IsChange()) {
40514050
data.solvable_wallet->m_address_book[addr_pair.first].SetLabel(label);
40524051
}
4053-
continue;
40544052
}
40554053
}
40564054
}

0 commit comments

Comments
 (0)