Skip to content

Conversation

@jamillambert
Copy link
Collaborator

Redefine the getmininginfo and getmempoolinfo types in v30 for the changes and remove TODO from table.

Update the exports, into functions and test feature gates.

//! | getmempooldescendants | version + model | |
//! | getmempoolentry | version + model | |
//! | getmempoolinfo | version + model | TODO |
//! | getmempoolinfo | version + model | .... |
Copy link
Member

Choose a reason for hiding this comment

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

Is the ... a typo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

😂 Yep, I must have been tired. White spaces look a bit like a faded . on my editor, so I think I pressed . four times to replace the TODO instead of space.

pub network_hash_ps: i64,
/// The size of the mempool.
pub pooled_tx: i64,
/// Minimum feerate of packages selected for block inclusion in BTC/kvB.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Minimum feerate of packages selected for block inclusion in BTC/kvB.
/// Minimum feerate of packages selected for block inclusion.

FeeRate abstracts away the unit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed, also added a patch to remove another case that was already there.

tcharding
tcharding previously approved these changes Nov 4, 2025
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 da3ca71

@tcharding
Copy link
Member

acked to cached the commit hash and because both things are minor.

The FeeRate type abstracts away the unit.
Redefine the type in v30 for the changes and remove TODO from table.

Update the export, into function and test feature gate.
Redefine the type in v30 for the changes and remove TODO from table.

Update the export, into function and test feature gate.
@jamillambert
Copy link
Collaborator Author

Minor docs changes made.

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 1f869f5

@tcharding tcharding merged commit fa99e0e into rust-bitcoin:master Nov 5, 2025
58 of 59 checks passed
tcharding added a commit that referenced this pull request Nov 9, 2025
2343534 Update listwalletdir for v30 changes (Jamil Lambert, PhD)
cb73a83 Update getwalletinfo for v30 changes (Jamil Lambert, PhD)
86c40a4 Document that migratewallet is untested in v30 (Jamil Lambert, PhD)
4dbd863 Add deprecated flag to v30 settxfee test (Jamil Lambert, PhD)

Pull request description:

  There are four remaining RPCs that have changes in v30 that need to be implemented:

  - `settxfee` is deprecated in v30 and removed in v31. Feature gate the test to v30 and below and for v30 add the required `-deprecatedrpc=settxfee` flag. Remove TODO from the types table.
  - In v30 it is no longer possible to create a legacy wallet. This means that `migratewallet` cannot be tested using only v30. There are no changes to the RPC in v30 so the v29 test is still valid. Add a comment to the types table and test.
  - `getwalletinfo` had some return fields removed in v30 and a new flags field was added. Update the model to make the removed fields options and add the new flags. Update all the into functions. Redefine the type, error and into function for v30. Remove the TODO from the types table. Remove the `v29_and_below` feature gate from the test.
  - `listwalletdir` has a new `warnings` field was added in v30. Redefine the type for v30, there is no model. Remove the TODO from the types table. Remove the `v29_and_below` feature gate from the test.

  Together with #387, #388, #409 and #410 Closes #384

ACKs for top commit:
  tcharding:
    ACK 2343534

Tree-SHA512: 788e6150778dc722c7db79e63240d4c82d3ceca59ec859edd516d1ea8860671754be3072f4b5bdd391dac919bba6a61935c99df4bb3b4325cf981271ef4e87bf
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