HomePhabricator

txdb: don't reset during in-memory cache resize

Description

txdb: don't reset during in-memory cache resize

Summary:
We can't support a reset of the dbwrapper object when in-memory configuration is used
because it results in the permanent loss of coins. This only affects unittest
configurations (since that's the only place we use in-memory CCoinsViewDB instances).

This is a backport of core#19806 [2/8]
https://github.com/bitcoin/bitcoin/pull/19806/commits/ad949ba449ff2115e3d22c71f5b6509f11112098

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
James O'Beirne <james.obeirne@pm.me>Authored on Aug 25 2020, 17:48
PiRKCommitted on Apr 12 2022, 09:42
PiRKPushed on Apr 12 2022, 09:42
Reviewer
Restricted Project
Differential Revision
D11226: txdb: don't reset during in-memory cache resize
Parents
rABCe365dc8ab14e: [avalanche] Send getavaaddr messages to the manually added nodes
Branches
Unknown
Tags
Unknown