mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
some fixed due to recent changes
This commit is contained in:
parent
052405b03e
commit
54c8ddb618
2 changed files with 3 additions and 1 deletions
|
|
@ -438,7 +438,7 @@ func exportPreimages(ctx *cli.Context) error {
|
|||
stack, _ := makeConfigNode(ctx)
|
||||
defer stack.Close()
|
||||
|
||||
db := utils.MakeChainDatabase(ctx, stack, true)
|
||||
db := utils.MakeChainDatabase(ctx, stack, true, false)
|
||||
defer db.Close()
|
||||
start := time.Now()
|
||||
|
||||
|
|
|
|||
|
|
@ -287,6 +287,8 @@ func main() {
|
|||
// prepare manipulates memory cache allowance and setups metric system.
|
||||
// This function should be called before launching devp2p stack.
|
||||
func prepare(ctx *cli.Context) {
|
||||
const light = "light"
|
||||
|
||||
// If we're running a known preset, log it for convenience.
|
||||
switch {
|
||||
case ctx.IsSet(utils.GoerliFlag.Name):
|
||||
|
|
|
|||
Loading…
Reference in a new issue