HomePhabricator

wallet: Tidy CWallet::SetUsedDestinationState

Description

wallet: Tidy CWallet::SetUsedDestinationState

Summary:

  • wallet: Avoid recursive lock in CWallet::SetUsedDestinationState
  • wallet: Reuse existing batch in CWallet::SetUsedDestinationState

This is a backport of Core PR17354

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D7529

Details

Provenance
João Barbosa <joao.paulo.barbosa@gmail.com>Authored on Nov 2 2019, 16:14
deadalnixCommitted on Sep 22 2020, 23:40
deadalnixPushed on Sep 22 2020, 23:40
Reviewer
Restricted Project
Differential Revision
D7529: wallet: Tidy CWallet::SetUsedDestinationState
Parents
rABC8b4530e45434: Prevent UB in DeleteLock() function
Branches
Unknown
Tags
Unknown