HomePhabricator

walletdb: Add MakeBatch function to BerkeleyDatabase and use it

Description

walletdb: Add MakeBatch function to BerkeleyDatabase and use it

Summary:
Instead of having WalletBatch construct the BerkeleyBatch, have
BerkeleyDatabase do it and return a std::unique_ptr<BerkeleyBatch>

This is a backport of core#19325 [2/2]
https://github.com/bitcoin/bitcoin/pull/19325/commits/b82f0ca4d5465b36debb6c57f335bdccf4899c49

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Jun 15 2020, 20:54
PiRKCommitted on Sep 1 2021, 09:17
PiRKPushed on Sep 1 2021, 09:17
Reviewer
Restricted Project
Differential Revision
D10003: walletdb: Add MakeBatch function to BerkeleyDatabase and use it
Parents
rABC63953c6d53ac: walletdb: Refactor DatabaseBatch abstract class from BerkeleyBatch
Branches
Unknown
Tags
Unknown