Skip to content

Conversation

jamillambert
Copy link
Collaborator

The RPC struct exists but there is no client macro or test. The return changes in v18 and then stays the same up to v29.

  • Add an updated struct for v18. Add the client macro, test and update the types table.
  • Run the formatter.

The RPC struct exists but there is no client macro or test. The return 
changes in v18 and then stays the same up to v29.

Add an updated struct for v18.

Add the client macro, test and update the types table.
Reordering of the reexports only.
let node = Node::with_wallet(Wallet::Default, &["-zmqpubhashblock=tcp://127.0.0.1:29000"]);

let list: Vec<GetZmqNotifications> = node.client.get_zmq_notifications().expect("getzmqnotifications");
let zmq_notification = &list[0];
Copy link
Member

Choose a reason for hiding this comment

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

This will panic if the list is empty. While that does prove that its not, and since its a test, panic is ok for fail. It would be nicer to use first and call unwrap or expect.

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 c7ea6e4

@tcharding tcharding merged commit 913f0c9 into rust-bitcoin:master Aug 29, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants