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
Conversation
This reverts commit 41a75a0.
This reverts commit 43446ef.
cmd/kaigo/config.go
Outdated
"github.com/kardiachain/go-kardia/node" | ||
"github.com/urfave/cli/v2" | ||
|
||
"github.com/ethereum/go-ethereum/params" |
There was a problem hiding this comment.
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"
cmd/kaigo/main.go
Outdated
@@ -0,0 +1,156 @@ | |||
// Copyright 2014 The go-kardia Authors |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
impl internal promt
"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" | ||
) |
There was a problem hiding this comment.
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"
@phatngluu please update docker build |
This PR updates:
trie
package to support snapshot feature. Adapts any breaking changes (eg.state
package)snapshot
command toprune-state
,verify-state
...dumpconfig
command to dump config