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

Add is_valid_for_network to address #440

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

reez
Copy link
Collaborator

@reez reez commented Jan 4, 2024

Description

Resolves Expose Address::is_valid_for_network Issue.

Notes to the reviewers

I decided to be super exhaustive about the unit tests for clarity on what is_valid_for_network would return in each scenario. I'm planning on cutting down and/or re-formatting those but would like some feedback on what you would like to see stay/go/change. Tests were written for Rust, as well as for all 4 supported platforms.

Changelog notice

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

@reez reez linked an issue Jan 4, 2024 that may be closed by this pull request
@reez reez marked this pull request as ready for review January 5, 2024 01:46
@reez reez requested a review from thunderbiscuit January 5, 2024 01:47
Copy link
Member

@thunderbiscuit thunderbiscuit left a comment

Choose a reason for hiding this comment

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

ACK fc25cd7. Yeah lots of tests haha. But I'm not against them!

@thunderbiscuit thunderbiscuit merged commit fc25cd7 into bitcoindevkit:master Jan 8, 2024
17 checks passed
@reez reez deleted the network-valid branch January 8, 2024 18:02
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.

Expose Address::is_valid_for_network
2 participants