Skip to content

Commit 5c88299

Browse files
committed
cmd/utils: add flags
1 parent d2f4e54 commit 5c88299

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/utils/flags.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,6 +2260,7 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh
22602260
Preimages: ctx.Bool(CachePreimagesFlag.Name),
22612261
StateScheme: scheme,
22622262
StateHistory: ctx.Uint64(StateHistoryFlag.Name),
2263+
22632264
// Disable transaction indexing/unindexing.
22642265
TxLookupLimit: -1,
22652266

@@ -2271,6 +2272,9 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh
22712272

22722273
// Enable state size tracking if enabled
22732274
StateSizeTracking: ctx.Bool(StateSizeTrackingFlag.Name),
2275+
2276+
// Configure the slow block statistic logger
2277+
SlowBlockThreshold: ctx.Uint64(LogSlowBlockFlag.Name),
22742278
}
22752279
if options.ArchiveMode && !options.Preimages {
22762280
options.Preimages = true

0 commit comments

Comments
 (0)