Skip to content

Conversation

furszy
Copy link
Member

@furszy furszy commented Aug 25, 2022

There is an unnecessary ExtractDestination() call and subsequent result parse into an CScriptID.

The Solver() call, which we are already doing below anyway, retrieves the script type and, in the P2SH case, the program id.

@theStack
Copy link
Contributor

Concept ACK

@DrahtBot
Copy link
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:

  • #25183 (rpc: Filter inputs by type during CoinSelection by aureleoules)

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.

Copy link
Contributor

@aureleoules aureleoules left a comment

Choose a reason for hiding this comment

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

ACK 24c82ee - LGTM

Copy link
Contributor

@rajarshimaitra rajarshimaitra left a comment

Choose a reason for hiding this comment

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

tACK 24c82ee

Just one non-blocking nit comment not related to changes of this PR.

@furszy furszy force-pushed the 2022_wallet_availablecoins_type_cleanup branch from 24c82ee to 58b7df3 Compare September 17, 2022 13:30
@furszy
Copy link
Member Author

furszy commented Sep 17, 2022

Done, added @rajarshimaitra feedback.

Copy link
Contributor

@aureleoules aureleoules left a comment

Choose a reason for hiding this comment

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

re-ACK 58b7df3

Copy link
Contributor

@rajarshimaitra rajarshimaitra left a comment

Choose a reason for hiding this comment

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

ACK 58b7df3

@maflcko maflcko requested a review from achow101 September 21, 2022 06:40
Copy link
Contributor

@w0xlt w0xlt left a comment

Choose a reason for hiding this comment

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

ACK 58b7df3

@achow101
Copy link
Member

ACK 58b7df3

@achow101 achow101 merged commit 25cd47d into bitcoin:master Sep 21, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Sep 23, 2022
…ype acquisition

58b7df3 wallet: AvailableCoins, simplify output script type acquisition (furszy)

Pull request description:

  There is an unnecessary `ExtractDestination()` call and subsequent result parse into an `CScriptID`.

  The `Solver()` call, which we are already doing below anyway, retrieves the script type and, in the P2SH case, the program id.

ACKs for top commit:
  achow101:
    ACK 58b7df3
  aureleoules:
    re-ACK 58b7df3
  rajarshimaitra:
    ACK 58b7df3
  w0xlt:
    ACK bitcoin@58b7df3

Tree-SHA512: 51080766877c34cb2232ee3a1cb6b6a62b829c9297c67b99577742b94854a737a74d248015a4603ca9b6cd0a3c9e1d6d78673ff3cc9fc65dd82deea72dc537fd
@furszy furszy deleted the 2022_wallet_availablecoins_type_cleanup branch May 27, 2023 01:47
@bitcoin bitcoin locked and limited conversation to collaborators May 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants