mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-04-03 15:25:45 +00:00
set max size for priority nonce mempool
This commit is contained in:
parent
72e8508651
commit
45508f5954
@ -107,7 +107,7 @@ func (ac appCreator) newApp(
|
|||||||
skipLoadLatest = cast.ToBool(appOpts.Get(flagSkipLoadLatest))
|
skipLoadLatest = cast.ToBool(appOpts.Get(flagSkipLoadLatest))
|
||||||
}
|
}
|
||||||
|
|
||||||
mempool := app.NewPriorityMempool()
|
mempool := app.NewPriorityMempool(app.PriorityNonceWithMaxTx(cast.ToInt(appOpts.Get(server.FlagMempoolMaxTxs))))
|
||||||
|
|
||||||
bApp := app.NewBaseApp(logger, db, ac.encodingConfig,
|
bApp := app.NewBaseApp(logger, db, ac.encodingConfig,
|
||||||
baseapp.SetPruning(pruningOpts),
|
baseapp.SetPruning(pruningOpts),
|
||||||
|
Loading…
Reference in New Issue
Block a user