Skip to content

Commit

Permalink
cmd/geth: add detailed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VM committed Dec 15, 2023
1 parent e1aae7b commit 14bf508
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2487,6 +2487,9 @@ func MakeConsolePreloads(ctx *cli.Context) []string {
}

// ResolveStateScheme resolve state scheme from CLI flag, config file and persistent state.
// The differences between ResolveStateScheme and ParseStateScheme are:
// - ResolveStateScheme adds config to compare with CLI and persistent state to ensure correctness.
// - ResolveStateScheme is only used in SetEthConfig function.
//
// 1. If config isn't provided, write hash mode to config by default, so in current function, config is nonempty.
// 2. If persistent state and cli is empty, use config param.
Expand Down

0 comments on commit 14bf508

Please sign in to comment.