Skip to content

Conversation

@lindlof
Copy link
Contributor

@lindlof lindlof commented May 19, 2022

Add address field to ScriptPubKeyResult. Deprecate addresses field.

This conforms to the corresponding change in Bitcoin Core:

In Bitcoin Core a configuration flag is required to keep serving addresses. This PR serves both for the time being. The reason to require a configuration change is likely to incentivise adoption of the new field. I don't see that being as necessary for btcd.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 2354956596

  • 0 of 9 (0.0%) changed or added relevant lines in 1 file are covered.
  • 42 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.07%) to 54.961%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rpcserver.go 0 9 0.0%
Files with Coverage Reduction New Missed Lines %
rpcserver.go 1 0.26%
peer/peer.go 5 73.49%
wire/msgaddrv2.go 16 51.72%
wire/netaddressv2.go 20 74.45%
Totals Coverage Status
Change from base Build 2341629563: -0.07%
Covered Lines: 26406
Relevant Lines: 48045

💛 - Coveralls

@gitteri
Copy link

gitteri commented Jul 19, 2022

Any update on this? would be great to merge this in

Copy link

@qhxcWallet qhxcWallet left a comment

Choose a reason for hiding this comment

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

The changes here apply to the v22 version of Bitcoin core

@lindlof
Copy link
Contributor Author

lindlof commented May 9, 2023

Better to use #1969 because with this PR a multisig script might look like a normal address in RPC response

@lindlof lindlof closed this May 9, 2023
@coveralls
Copy link

coveralls commented Jul 30, 2024

Pull Request Test Coverage Report for Build 2354956596

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 9 (0.0%) changed or added relevant lines in 1 file are covered.
  • 42 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.08%) to 54.961%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rpcserver.go 0 9 0.0%
Files with Coverage Reduction New Missed Lines %
rpcserver.go 1 0.26%
peer/peer.go 5 73.49%
wire/msgaddrv2.go 16 51.72%
wire/netaddressv2.go 20 74.45%
Totals Coverage Status
Change from base Build 2341629563: -0.08%
Covered Lines: 26406
Relevant Lines: 48045

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants