Skip to content

scripted-diff: Rename interfaces::WalletClient to interfaces::WalletLoader - #23842

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
ryanofsky:pr/loader
Dec 23, 2021
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
ryanofsky:pr/loader

Conversation

@ryanofsky

Copy link
Copy Markdown
Contributor

Name has been confusing since it was introduced, and it was pointed in recent review club https://bitcoincore.reviews/10102 that it was particularly unclear how interfaces::WalletClient was different from interfaces::Wallet.

…oader

Name has been confusing since it was introduced, and it was pointed in
recent review club as https://bitcoincore.reviews/10102 that it was
particularly unclear how interfaces::WalletClient was different from
interfaces::Wallet.

-BEGIN VERIFY SCRIPT-
ren() { git grep -l "$1" src | xargs sed -i "s/$1/$2/g"; }
ren WalletClient WalletLoader
ren walletClient walletLoader
ren wallet_client wallet_loader
ren "wallet clients release the wallet" "wallet pointer owners release the wallet"
ren "wallet client" "wallet loader"
ren "Wallet client" "Wallet loader"
-END VERIFY SCRIPT-
@DrahtBot

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #23732 (refactor: Remove gArgs from bdb.h and sqlite.h by kiminuo)
  • #23497 (Add src/node/ and src/wallet/ code to node:: and wallet:: namespaces by ryanofsky)
  • #10102 (Multiprocess bitcoin by ryanofsky)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@michaelfolkson

Copy link
Copy Markdown
Contributor

Concept ACK - WalletLoader is improved naming imo.

Checked there were no remaining references to WalletClient on master after this PR.

@w0xlt w0xlt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK ff5f6de

WalletLoader is really a better name for this class.

@shaavan shaavan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Concept ACK

WalletLoader is a definite name improvement over WalletClient, considering the purpose of this class.

...also has additional
//! methods (called by the GUI) to load and create wallets.

I checked for any more occurrences of WalletClient in PR, and I found none.
I was able to compile and run bitcoind successfully on Ubuntu 20.04.

However, I would still like to wait for other reviewers' views on this change before giving an ACK.

@maflcko
maflcko merged commit f7367b8 into bitcoin:master Dec 23, 2021
@DrahtBot DrahtBot mentioned this pull request Dec 23, 2021
@bitcoin bitcoin locked and limited conversation to collaborators Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants