Skip to content

fix: make Forest not Clone - #164

Merged
Davidson-Souza merged 1 commit into
mit-dci:mainfrom
Davidson-Souza:fix/dont-copy-forest
Oct 1, 2026
Merged

Davidson-Souza merged 1 commit into
mit-dci:mainfrom
Davidson-Souza:fix/dont-copy-forest

Conversation

@Davidson-Souza

@Davidson-Souza Davidson-Souza commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Closes 151

Clonning a forest is unsound due to internal mutability issue (#151), and there isn't really a reason to clone an in-memory forest, since it can be huge — several GBs for Bitcoin's current UTXO set.

This commit removes Clone derives for MemForest.

Clonning a forest is unsound due to internal mutability issue (mit-dci#151),
and there isn't really a reason to clone an in-memory forest, since it
can be huge — several GBs for Bitcoin's current UTXO set.

This commit removes Clone derives for MemForest.
@Davidson-Souza Davidson-Souza self-assigned this Oct 1, 2026
@Davidson-Souza Davidson-Souza added the bug Something isn't working label Oct 1, 2026

@luisschwab luisschwab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK 435ee46

@Davidson-Souza
Davidson-Souza merged commit 32a971f into mit-dci:main Oct 1, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants