Skip to content

Conversation

@tcharding
Copy link
Member

The getblockstats method works for some versions of Core and not others.

  • Refactor the tests to try and make it more clear exactly when the method is tested.
  • Enable testing for v18 with and without -txindex for versions that support it.
  • Enable testing of v18 with -txindex
  • Update the rustdocs in types to show that its tested for v18.
  • Mine a block before getting the stats, no real reason but just because the comments mention the genesis block.

FTR I'm not totally across exactly why this works for v17 and v18 and then not until v25 again.

@tcharding tcharding force-pushed the 03-10-getblockstats branch from f692288 to 2e9c338 Compare March 10, 2025 01:56
The `getblockstats` method works for some versions of Core and not
others.

- Refactor the tests to try and make it more clear exactly when the
  method is tested.
- Enable testing for `v18` with and without `-txindex` for versions that
  support it.
- Enable testing of `v18` with `-txindex`
- Update the rustdocs in `types` to show that its tested for `v18`.
- Mine a block before getting the stats, no real reason but just because
  the comments mention the genesis block.

FTR I'm not totally across exactly why this works for v17 and v18 and
then not until v25 again.
@tcharding tcharding force-pushed the 03-10-getblockstats branch from 2e9c338 to 626938c Compare March 10, 2025 02:00
@tcharding tcharding merged commit c6a073c into rust-bitcoin:master Mar 10, 2025
27 checks passed
@tcharding tcharding deleted the 03-10-getblockstats branch March 10, 2025 03:01
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.

1 participant