aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2024-02-09 11:45:05 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2024-02-09 14:54:50 -0300
commit9a3c5c8697659e34d0476103af942a4615818f4e (patch)
treeaae7681f684f6fe9dde8865532673320825bb2de /src/wallet/wallet.cpp
parent83b762845f5804f23b63526d403b2f327fe99632 (diff)
downloadbitcoin-9a3c5c8697659e34d0476103af942a4615818f4e.tar.xz
scripted-diff: rename ZapSelectTx to RemoveTxs
-BEGIN VERIFY SCRIPT- sed -i 's/ZapSelectTx/RemoveTxs/g' $(git grep -l 'ZapSelectTx' ./src/wallet) -END VERIFY SCRIPT-
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 3f2b26ef99..4e0fea156c 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -2311,7 +2311,7 @@ DBErrors CWallet::LoadWallet()
return nLoadWalletRet;
}
-util::Result<void> CWallet::ZapSelectTx(std::vector<uint256>& txs_to_remove)
+util::Result<void> CWallet::RemoveTxs(std::vector<uint256>& txs_to_remove)
{
AssertLockHeld(cs_wallet);
WalletBatch batch(GetDatabase());
@@ -3951,7 +3951,7 @@ bool CWallet::ApplyMigrationData(MigrationData& data, bilingual_str& error)
watchonly_batch.reset(); // Flush
// Do the removes
if (txids_to_delete.size() > 0) {
- if (auto res = ZapSelectTx(txids_to_delete); !res) {
+ if (auto res = RemoveTxs(txids_to_delete); !res) {
error = _("Error: Could not delete watchonly transactions. ") + util::ErrorString(res);
return false;
}