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

chore: versa db test #2667

Open
wants to merge 23 commits into
base: versa_base
Choose a base branch
from
Open

chore: versa db test #2667

wants to merge 23 commits into from

Conversation

joeylichang
Copy link
Contributor

Description

add a description of your changes here...

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

feat: add version commit

chore: forbid versiondb rewind

feat: add mode for new caching db

feat: add version scheme for startup

feat: init genesis for versa db

feat: add caching db and trie copy

feat: support HasState on versa db and must fullsync under versa db

fix: append open strorage trie error to statedb

fix: storage tree value encode

fix: add state object trie expire interface

fix: blockchain stateat use rw state

chore: forbid prefetcher

chore: delete storage pool

feat: hold version in state objet for repeat search account tree

fix: version mismatch that add contract balance without update storage tree

fix: 373559 blocks issue add breakpoint

feat: add version state debug system

feat: add hash state db debug system

feat: add version and hash state diff system

fix: the timing release debug state instance
@joeylichang joeylichang added the wip work in process label Aug 27, 2024
@joeylichang joeylichang changed the title feat: integrate versa db [WIP]feat: integrate versa db Aug 27, 2024
@joeylichang joeylichang changed the title [WIP]feat: integrate versa db 【WIP】 feat: integrate versa db Aug 27, 2024
@joeylichang joeylichang changed the title 【WIP】 feat: integrate versa db feat: integrate versa db Aug 27, 2024
@joeylichang joeylichang changed the title feat: integrate versa db chore: versa db test Aug 27, 2024
@joeylichang joeylichang force-pushed the versa_perf branch 4 times, most recently from b75e552 to 3e8e74d Compare August 28, 2024 00:51
@joeylichang joeylichang force-pushed the versa_perf branch 3 times, most recently from 6135d38 to 2c59e15 Compare September 4, 2024 04:43
@joeylichang joeylichang force-pushed the versa_perf branch 6 times, most recently from 7fe2f45 to ec1d0a4 Compare September 5, 2024 04:05
fix: genesis version to -1

fix: copy with version

fix: change version type from uint64 to int64

fix: set genesis for rewind
@@ -515,6 +519,11 @@ func (s *stateObject) updateRoot() {
// The returned set can be nil if nothing to commit. This function assumes all
// storage mutations have already been flushed into trie by updateRoot.
func (s *stateObject) commit() (*trienode.NodeSet, error) {
if s.IsContractAccount() && s.trie == nil {
panic(fmt.Sprintf("not open contract account, owner: %s, r_version: %d, c_version: %d, root: %s",
Copy link
Contributor

Choose a reason for hiding this comment

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

mark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip work in process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants