mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update flags.go
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
808ae0aa41
commit
4aafa5a9ef
1 changed files with 3 additions and 1 deletions
|
|
@ -2092,7 +2092,9 @@ func tryMakeReadOnlyChainDB(ctx *cli.Context, stack *node.Node) ethdb.Database {
|
|||
log.Info("Using remote db", "url", ctx.String(RemoteDBFlag.Name), "headers", len(ctx.StringSlice(HttpHeaderFlag.Name)))
|
||||
var client *rpc.Client
|
||||
client, err = DialRPCWithHeaders(ctx.String(RemoteDBFlag.Name), ctx.StringSlice(HttpHeaderFlag.Name))
|
||||
if err == nil {
|
||||
chainDb = remotedb.New(client)
|
||||
}
|
||||
} else {
|
||||
name := "chaindata"
|
||||
if ctx.String(SyncModeFlag.Name) == "light" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue