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

Update trie package and node #253

Merged
merged 109 commits into from Sep 8, 2023
Merged

Conversation

rameight
Copy link
Contributor

@rameight rameight commented Jun 20, 2023

This PR updates:

  • trie package to support snapshot feature. Adapts any breaking changes (eg. state package)
  • Node now support snapshot command to prune-state, verify-state...
  • Node now support dumpconfig command to dump config
  • Refactor node stack components (RPC may break, please do e2e tests)

@trinhdn97 trinhdn97 mentioned this pull request Jul 15, 2023
"github.com/kardiachain/go-kardia/node"
"github.com/urfave/cli/v2"

"github.com/ethereum/go-ethereum/params"
Copy link
Collaborator

Choose a reason for hiding this comment

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

"github.com/kardiachain/go-kardika/configs"

@@ -0,0 +1,156 @@
// Copyright 2014 The go-kardia Authors
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copyright year?

"sort"
"time"

"github.com/ethereum/go-ethereum/console/prompt"
Copy link
Collaborator

Choose a reason for hiding this comment

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

impl internal promt

Comment on lines +20 to +37
"fmt"
"io"
"net/http"
_ "net/http/pprof"
"os"
"path/filepath"
"runtime"

"github.com/fjl/memsize/memsizeui"
"github.com/kardiachain/go-kardia/internal/flags"
"github.com/kardiachain/go-kardia/lib/log"
"github.com/kardiachain/go-kardia/lib/metrics"
"github.com/kardiachain/go-kardia/lib/metrics/exp"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"github.com/urfave/cli/v2"
"gopkg.in/natefinch/lumberjack.v2"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ugly imports, consider sort by buildin, pkg, external, internal

"fmt"
"io"
"net/http"
_ "net/http/pprof"
"os"
"path/filepath"
"runtime"

"gopkg.in/natefinch/lumberjack.v2"

"github.com/fjl/memsize/memsizeui"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"github.com/urfave/cli/v2"

"github.com/kardiachain/go-kardia/internal/flags"
"github.com/kardiachain/go-kardia/lib/log"
"github.com/kardiachain/go-kardia/lib/metrics"
"github.com/kardiachain/go-kardia/lib/metrics/exp"

@lewtran
Copy link
Collaborator

lewtran commented Aug 14, 2023

@phatngluu please update docker build

@rameight rameight merged commit 8daa51c into kardiachain:master Sep 8, 2023
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.

Optimize & Improve Trie, Preparing for state trie pruner
2 participants