Skip to content

Track UTXOs in MockNetworkProvider#317

Merged
rkalis merged 4 commits intoCashScript:masterfrom
mainnet-pat:mocknet_utxos
Aug 6, 2025
Merged

Track UTXOs in MockNetworkProvider#317
rkalis merged 4 commits intoCashScript:masterfrom
mainnet-pat:mocknet_utxos

Conversation

@mainnet-pat
Copy link
Copy Markdown
Contributor

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

@vercel
Copy link
Copy Markdown

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

@codecov
Copy link
Copy Markdown

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
Copy Markdown
Contributor

kiok46 commented Jul 19, 2025

Can't wait for this to be merged :)

@rkalis
Copy link
Copy Markdown
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