Skip to content

Conversation

@jamillambert
Copy link
Collaborator

The client macro for getrawmempool with verbose set to true returns the non verbose type. The test for this case was commented out.

The inner type MempoolEntry changed multiple times from v18-v23, but GetRawMempoolVerbose still used the v17 type until v24. For v24 and up the correct MempoolEntry type version is used.

  • Add the getrawmempool types and into_model functions or reexports of the correct version for v18-v23 that use the updated MempoolEntry types.
  • Fix the type in the client macro.
  • Uncomment the test for verbose.

Closes #389

The getrawmempool and verbose types were not updated for
changes in the inner MempoolEntry type between v18 and v23.

Add the types and into_model implementations for these versions.
The client macro for getrawmempool has two associated types. The client
macro for the verbose type was set to return the non verbose type.

Change the return type for the macro to GetRawMempoolVerbose.
Uncomment the section of the test for the verbose type now that it has
been fixed.
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 f409bf7

@tcharding tcharding merged commit e022b7c into rust-bitcoin:master Oct 23, 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.

get_raw_mempool_verbose should return the verbose model type

2 participants