Skip to content

Conversation

GideonBature
Copy link
Contributor

@GideonBature GideonBature commented May 23, 2025

The JSON-RPC method setban returns a null. We would like to test this in case a later version of Core changes this behaviour.

This PR adds a client function that errors if the return value is anything other than null, along with an integration test that calls this function.

Ref: #116

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 7579c30

@tcharding tcharding merged commit 333d879 into rust-bitcoin:master May 24, 2025
28 of 29 checks passed
@tcharding
Copy link
Member

Quick one! Nice. Stick at it man.

@GideonBature GideonBature deleted the setban branch May 31, 2025 08:09
blaze-smith470pm added a commit to blaze-smith470pm/corepc that referenced this pull request Sep 26, 2025
7579c309bfdb0a3f93ee59d9054de565a50f7271 Implement setban method and test (GideonBature)

Pull request description:

  Going by the conversations with tcharding for PR [#116 ](rust-bitcoin/corepc#116) on implementing one method at a time for easier review: This is another method under network section, setban which is a specific type that returns a (json null). Once this is approved, I’ll proceed with the next one.

ACKs for top commit:
  tcharding:
    ACK 7579c309bfdb0a3f93ee59d9054de565a50f7271

Tree-SHA512: abe19120103d1c6985e24d0bb6806f7042f7ab980b28ae14d2e15a84afe751a60168f146f4d8542d885628502d759748df4b885a9e4053c2c134ddbe69723176
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.

2 participants