Skip to content

Commit 59b06b6

Browse files
furszyfanquake
authored andcommitted
wallet: migration bugfix, clone 'send' record label to all wallets
Github-Pull: bitcoin#28038 Rebased-From: 1b64f64
1 parent 8825983 commit 59b06b6

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
@@ -4009,7 +4009,7 @@ bool CWallet::ApplyMigrationData(MigrationData& data, bilingual_str& error)
40094009
return false;
40104010
}
40114011
} else {
4012-
// Labels for everything else (send) should be cloned to all
4012+
// Labels for everything else ("send") should be cloned to all
40134013
if (data.watchonly_wallet) {
40144014
LOCK(data.watchonly_wallet->cs_wallet);
40154015
// Add to the watchonly. Preserve the labels, purpose, and change-ness
@@ -4018,7 +4018,6 @@ bool CWallet::ApplyMigrationData(MigrationData& data, bilingual_str& error)
40184018
if (!addr_pair.second.IsChange()) {
40194019
data.watchonly_wallet->m_address_book[addr_pair.first].SetLabel(label);
40204020
}
4021-
continue;
40224021
}
40234022
if (data.solvable_wallet) {
40244023
LOCK(data.solvable_wallet->cs_wallet);
@@ -4028,7 +4027,6 @@ bool CWallet::ApplyMigrationData(MigrationData& data, bilingual_str& error)
40284027
if (!addr_pair.second.IsChange()) {
40294028
data.solvable_wallet->m_address_book[addr_pair.first].SetLabel(label);
40304029
}
4031-
continue;
40324030
}
40334031
}
40344032
}

0 commit comments

Comments
 (0)