Skip to content

Track UTXOs in MockNetworkProvider #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 6, 2025

Conversation

mainnet-pat
Copy link
Contributor

MockNetworkProvider now keeps track of utxo set - removes spent utxos and adds newly created

Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cashscript ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2025 2:32pm

Copy link

codecov bot commented Jul 14, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@kiok46
Copy link
Contributor

kiok46 commented Jul 19, 2025

Can't wait for this to be merged :)

@rkalis
Copy link
Member

rkalis commented Aug 6, 2025

Thanks for the PR @mainnet-pat, and thanks for the comment @kiok46! We made this new functionality optional to not introduce breaking changes right now. In the next big release (0.12.0) we want to make this the default behaviour.

While looking at the changes, we noticed that the way UTXOs were stored added quite a bit of complexity to this code, so we changed the data structure from a map to a simple list of [lockingBytecode, utxo] tuples.

@rkalis rkalis merged commit e42192b into CashScript:master Aug 6, 2025
5 checks passed
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.

3 participants