Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1177 #1180

Merged
merged 5 commits into from
May 25, 2021
Merged

Fix #1177 #1180

merged 5 commits into from
May 25, 2021

Conversation

ben-kaufman
Copy link
Contributor

Check also for ["scriptPubKey"]["address"] to be compatible with Bitcoin Core v22.
Fix #1177

return (
data_dict["addresses"][0]
if "addresses" in data_dict and data_dict["addresses"][0]
else data_dict["address"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe put a comment here to drop ["addresses"][0] when you drop support for Bitcoin Core < v22 in the distant future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@k9ert k9ert left a comment

Choose a reason for hiding this comment

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

LGTM

@ben-kaufman ben-kaufman merged commit 662793d into cryptoadvance:master May 25, 2021
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.

Use of ["addresses"] will be deprecated in Bitcoin Core v22
3 participants