Skip to content

Conversation

@random-zebra
Copy link

Simple refactoring. First two commits are coming from bitcoin#8768.
Other commits break up a big chunk of code from init.cpp into more manageable functions in wallet/walletdb.

This will make the implementation of auto-backups for multi-wallets cleaner (will now rebase #2337 on top of this one).

@random-zebra random-zebra added Refactoring Wallet Startup Wallet startup changes and/or improvements labels May 4, 2021
@random-zebra random-zebra added this to the 6.0.0 milestone May 4, 2021
@random-zebra random-zebra self-assigned this May 4, 2021
@random-zebra random-zebra force-pushed the 202105_autobackup-refactor branch 2 times, most recently from 0421064 to d6ce6cf Compare May 5, 2021 22:20
@random-zebra random-zebra force-pushed the 202105_autobackup-refactor branch from d6ce6cf to 4dfc8e0 Compare May 7, 2021 14:50
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, code review ACK 4dfc8e0.

@random-zebra random-zebra requested a review from Fuzzbawls May 9, 2021 09:16
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 4dfc8e0

@random-zebra random-zebra merged commit 6fc3498 into PIVX-Project:master May 11, 2021
furszy added a commit that referenced this pull request Jul 6, 2021
f36c4d0 [Refactor] InitLoadWallet: CreateWalletFromFile before AutoBackupWallet (random-zebra)
e24cdd5 wallet: remove not longer available "-printcoinstake" init flag. (furszy)
2603353 wallet: Create initial wallet backup after initialization. Plus fix "Failed to create backup..." error at startup when the wallet hasn't been created yet. (furszy)
5fdc630 Walletdb: unify wallet backups cleanup. (furszy)
10ce576 Walletdb: unify sort backups file by last write. (furszy)
2e2d467 Wallet: unify wallet backup functions (furszy)
0cd6089 Wallet: Cleanup AutoBackupWallet [Step 1] (furszy)

Pull request description:

  Was checking #2362 and wasn't able to contain myself from cleaning redundancies and code deduplication on the wallet auto-backup "feature".

ACKs for top commit:
  random-zebra:
    ACK f36c4d0

Tree-SHA512: 4ff729e2f4012bf6166a891f67f7e7b93801bb398103023f1fca74a86a9c28db06b6194589444477af5846751c9b440890b8ee95560460e4d3219ccbc40f3277
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactoring Startup Wallet startup changes and/or improvements Wallet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants