diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2024-02-09 11:45:05 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2024-02-09 14:54:50 -0300 |
commit | 9a3c5c8697659e34d0476103af942a4615818f4e (patch) | |
tree | aae7681f684f6fe9dde8865532673320825bb2de /src/wallet/wallet.cpp | |
parent | 83b762845f5804f23b63526d403b2f327fe99632 (diff) | |
download | bitcoin-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.cpp | 4 |
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; } |