aboutsummaryrefslogtreecommitdiff
path: root/src/qt/locale
diff options
context:
space:
mode:
authorAva Chow <github@achow101.com>2024-02-12 13:33:08 -0500
committerAva Chow <github@achow101.com>2024-02-12 13:41:47 -0500
commit6ff0aa089c01ff3e610ecb47814ed739d685a14c (patch)
tree41d2b1dac63b352c6c8eec50efb583e9e6bc4c22 /src/qt/locale
parentc6398c609b45706971a226a8f049703258ee14a9 (diff)
parent9a3c5c8697659e34d0476103af942a4615818f4e (diff)
downloadbitcoin-6ff0aa089c01ff3e610ecb47814ed739d685a14c.tar.xz
Merge bitcoin/bitcoin#28987: wallet: simplify and batch zap wallet txes process
9a3c5c8697659e34d0476103af942a4615818f4e scripted-diff: rename ZapSelectTx to RemoveTxs (furszy) 83b762845f5804f23b63526d403b2f327fe99632 wallet: batch and simplify ZapSelectTx process (furszy) 595d50a1032ad7ffa9945464c86aa57f16665e93 wallet: migration, remove extra NotifyTransactionChanged call (furszy) a2b071f9920c2f4893afcc43a152f593c03966bf wallet: ZapSelectTx, remove db rewrite code (furszy) Pull request description: Work decoupled from #28574. Brother of #28894. Includes two different, yet interconnected, performance and code improvements to the zap wallet transactions process. 1) As the goal of the `ZapSelectTx` function is to erase tx records that match any of the inputted hashes. There is no need to traverse the whole database record by record. We could just check if the tx exist, and remove it directly by calling `EraseTx()`. 2) Instead of performing single write operations per removed tx record, this PR batches them all within a single atomic db txn. Moreover, these changes will enable us to consolidate all individual write operations that take place during the wallet migration process into a single db txn in the future. ACKs for top commit: achow101: ACK 9a3c5c8697659e34d0476103af942a4615818f4e josibake: ACK https://github.com/bitcoin/bitcoin/pull/28987/commits/9a3c5c8697659e34d0476103af942a4615818f4e Tree-SHA512: fb2ecc48224c400ab3b1fbb32e174b5b13bf03794717727f80f01f55fb183883b067a68c0a127b2de8885564da15425d021a96541953bf38a72becc2e9929ccf
Diffstat (limited to 'src/qt/locale')
0 files changed, 0 insertions, 0 deletions