Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Mar 18, 2021

Making the wallet db nicer to work with, grouping all the keys in a single spot.
Also, removed CWalletKey that was never supported in the whole project history.

@furszy furszy self-assigned this Mar 18, 2021
@random-zebra random-zebra added this to the 6.0.0 milestone Mar 25, 2021
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

concept/code ACK. Would be nice to script this change, as checking the lines one by one is a bit tedious.

random-zebra
random-zebra previously approved these changes Mar 30, 2021
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

ACK 995fe6c9645ffd216cd29640b39f2576ba124549

@random-zebra random-zebra requested a review from Fuzzbawls April 8, 2021 13:32
@random-zebra
Copy link

Can we merge this one?
Quite simple, and it has been submitted 3 weeks ago.

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.

overall good. a minor nit commented inline.

Also, while we're currently never calling WriteMultiSig/EraseMultiSig from anywhere, could add it to DBKeys anyways for completeness.

furszy added 2 commits April 9, 2021 15:06
Initially used for upstream's wallet keys and got deprecated in 2013, only leaving the db deserialization. PIVX never created this type of keys in db.
@furszy furszy force-pushed the 2020_walletdb_keys_enum branch from cccc13d to f7e8e1e Compare April 9, 2021 18:15
@furszy
Copy link
Author

furszy commented Apr 9, 2021

Updated per feedback.
...

Also, while we're currently never calling WriteMultiSig/EraseMultiSig from anywhere, could add it to DBKeys anyways for completeness.

Removed the two WriteMultiSig and EraseMultiSig functions.
Those were just remnants of the previous bad implementation that we missed to remove in #1662. Plus well, the client already has a process to store multisig scripts using CWallet::AddCScript.
So.. good, extra unneeded stuff cleaned.

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 f7e8e1e

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

utACK f7e8e1e and merging...

@random-zebra random-zebra merged commit 630ec7a into PIVX-Project:master Apr 10, 2021
@furszy furszy deleted the 2020_walletdb_keys_enum branch November 29, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants