cmd/utils, eth/ethconfig: unindex txs older than ~1 year
This commit is contained in:
parent
944d901436
commit
409b16e5ab
|
@ -212,10 +212,10 @@ var (
|
||||||
Name: "snapshot",
|
Name: "snapshot",
|
||||||
Usage: `Enables snapshot-database mode (default = enable)`,
|
Usage: `Enables snapshot-database mode (default = enable)`,
|
||||||
}
|
}
|
||||||
TxLookupLimitFlag = cli.Int64Flag{
|
TxLookupLimitFlag = cli.Uint64Flag{
|
||||||
Name: "txlookuplimit",
|
Name: "txlookuplimit",
|
||||||
Usage: "Number of recent blocks to maintain transactions index by-hash for (default = index all blocks)",
|
Usage: "Number of recent blocks to maintain transactions index for (default = about one year, 0 = entire chain)",
|
||||||
Value: 0,
|
Value: ethconfig.Defaults.TxLookupLimit,
|
||||||
}
|
}
|
||||||
LightKDFFlag = cli.BoolFlag{
|
LightKDFFlag = cli.BoolFlag{
|
||||||
Name: "lightkdf",
|
Name: "lightkdf",
|
||||||
|
|
|
@ -66,6 +66,7 @@ var Defaults = Config{
|
||||||
DatasetsLockMmap: false,
|
DatasetsLockMmap: false,
|
||||||
},
|
},
|
||||||
NetworkId: 1,
|
NetworkId: 1,
|
||||||
|
TxLookupLimit: 2350000,
|
||||||
LightPeers: 100,
|
LightPeers: 100,
|
||||||
UltraLightFraction: 75,
|
UltraLightFraction: 75,
|
||||||
DatabaseCache: 512,
|
DatabaseCache: 512,
|
||||||
|
|
Loading…
Reference in New Issue