Skip to content

Conversation

@JoseSK999
Copy link
Contributor

What is the purpose of this pull request?

  • Bug fix
  • Documentation update
  • New feature
  • Test
  • Other:

Which crates are being modified?

  • floresta-chain
  • floresta-cli
  • floresta-common
  • floresta-compact-filters
  • floresta-electrum
  • floresta-watch-only
  • floresta-wire
  • floresta
  • florestad
  • Other: .

Description

I have pre-computed the full UtxoData vector for the two current test blocks. This way we can test every aspect of the block, including coinbase UTXOs maturity, relative timelocks, etc. This replaces the previous TxOut vectors.

We also make the UtxoData struct de/serializable.

Notes to the reviewers

I have used the UTXO fetcher CLI tool I have written for this.

@Davidson-Souza Davidson-Souza added enhancement New feature or request chore Cleaning, refactoring, reducing complexity code quality Generally improves code readability and maintainability labels Apr 17, 2025
@JoseSK999 JoseSK999 force-pushed the utxo-data-test-vectors branch from aff22b1 to 9d73860 Compare April 18, 2025 16:18
@JoseSK999
Copy link
Contributor Author

JoseSK999 commented Apr 18, 2025

I have added the test-utils feature to guard the serde derivation for UtxoData. Benches are only compiled if the feature is enabled but just bench works as an alias for the full cargo bench --features test-utils.

I have pre-computed the full `UtxoData` vector for the two current test blocks. This way we can test every aspect of the block, including coinbase UTXOs maturity, relative timelocks, etc. This replaces the previous `TxOut` vectors.

We also make the `UtxoData` struct de/serializable if the `test-utils` feature is set. This is used for benches to have the serde methods available.
@JoseSK999 JoseSK999 force-pushed the utxo-data-test-vectors branch from 9d73860 to e03d2cf Compare April 21, 2025 11:33
@JoseSK999
Copy link
Contributor Author

JoseSK999 commented Apr 21, 2025

Added tiny nit

Copy link
Member

@Davidson-Souza Davidson-Souza left a comment

Choose a reason for hiding this comment

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

ack e03d2cf

@Davidson-Souza Davidson-Souza merged commit b2a275f into vinteumorg:master Apr 21, 2025
8 checks passed
@JoseSK999 JoseSK999 deleted the utxo-data-test-vectors branch April 22, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Cleaning, refactoring, reducing complexity code quality Generally improves code readability and maintainability enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants