Skip to content

refactor: remove unused param from legacy pubkey interface - #27274

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
Bushstar:remove-unused-params
Mar 31, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
Bushstar:remove-unused-params

Conversation

@Bushstar

Copy link
Copy Markdown
Contributor

Unused param present in legacy pubkey manager interface. This param will not be used and should be removed to prevent unintended usage.

@DrahtBot

DrahtBot commented Mar 17, 2023 •

Copy link
Copy Markdown
Contributor

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK Sjors, furszy
Stale ACK achow101

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #25297 (wallet: group independent db writes on single batched db transaction by furszy)

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.

Comment thread src/wallet/scriptpubkeyman.cpp Resolved
@Sjors

Sjors commented Mar 17, 2023

Copy link
Copy Markdown
Member

Concept ACK

@Bushstar
Bushstar force-pushed the remove-unused-params branch from dcceb62 to e1b0353 Compare March 17, 2023 14:15
@achow101

Copy link
Copy Markdown
Member

ACK e1b0353e04e90badeb6d0cfe498001ec7a4174ac

Comment thread src/wallet/scriptpubkeyman.cpp Resolved
@Bushstar
Bushstar force-pushed the remove-unused-params branch from e1b0353 to f18b91e Compare March 19, 2023 12:50
@fanquake

Copy link
Copy Markdown
Member
        if (!ReserveKeyFromKeyPool(nIndex, keypool, /*internal=*/ false) && !m_storage.IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
                                                    ^
./wallet/scriptpubkeyman.h:353:73: note: 'fRequestedInternal' declared here
    bool ReserveKeyFromKeyPool(int64_t& nIndex, CKeyPool& keypool, bool fRequestedInternal);
                                                                        ^
clang-tidy-14 --use-color -p=/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu -quiet /tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/wallet/scriptpubkeyman.cpp
wallet/scriptpubkeyman.cpp:1399:53: error: argument name 'internal' in comment does not match parameter name 'fRequestedInternal' [bugprone-argument-comment,-warnings-as-errors]

@Bushstar
Bushstar force-pushed the remove-unused-params branch from f18b91e to 1869310 Compare March 20, 2023 11:42
Comment thread src/wallet/scriptpubkeyman.cpp Resolved

@Sjors Sjors left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK 1869310

@DrahtBot
DrahtBot requested a review from achow101 March 30, 2023 12:05

@furszy furszy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK 1869310

@fanquake
fanquake merged commit a0d37d1 into bitcoin:master Mar 31, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Mar 30, 2024
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.

7 participants