HomePhabricator

walletdb: don't read db every time that a new WalletBatch is created, fix last…

Description

walletdb: don't read db every time that a new WalletBatch is created, fix last client version update

Summary:
Better to perform the action only one time (during 'LoadWallet').
Where the value is being used.

The last client value was only being updated launching releases with higher version numbers
and not if the user launched a previous release.

Co-authored-by: MacroFake <falke.marco@gmail.com>

This is a backport of core#25383

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
furszy <matiasfurszyfer@protonmail.com>Authored on Jun 16 2022, 13:30
PiRKCommitted on Sat, Apr 19, 16:48
PiRKPushed on Sat, Apr 19, 16:48
Reviewer
Restricted Project
Differential Revision
D17951: walletdb: don't read db every time that a new WalletBatch is created, fix last client version update
Parents
rABCdc7fa3c5d71e: [avalanche] Fix stake contender unit test occasional failure
Branches
Unknown
Tags
Unknown