Skip to content
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

attach ref. counting to triedb instead of statedb #574

Draft
wants to merge 1 commit into
base: coreth-001-minimal
Choose a base branch
from

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Jun 7, 2024

Why this should be merged

How this works

How this was tested

@@ -331,6 +331,7 @@ func NewBlockChain(
}
// Open trie database with provided config
triedb := trie.NewDatabase(db, cacheConfig.triedbConfig())
triedb.EnableRefCounting()
Copy link
Collaborator Author

@darioush darioush Jun 7, 2024

Choose a reason for hiding this comment

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

can move this to the config or NewDatabaseWithRefCounting, sort of same IMO

Copy link
Collaborator

@ceyonur ceyonur Jun 10, 2024

Choose a reason for hiding this comment

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

agreed, IMO config sounds better.

@darioush darioush changed the title use seperate interpreter (core/vm) attach ref. counting to triedb instead of statedb Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog 🗄️
Development

Successfully merging this pull request may close these issues.

2 participants