Merge pull request #22293 from karalabe/txunindex-1year

cmd/utils, eth/ethconfig: unindex txs older than ~1 year
This commit is contained in:
Péter Szilágyi 2021-02-10 16:02:35 +02:00 committed by GitHub
commit 1bbc8a1944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -212,10 +212,10 @@ var (
Name: "snapshot",
Usage: `Enables snapshot-database mode (default = enable)`,
}
TxLookupLimitFlag = cli.Int64Flag{
TxLookupLimitFlag = cli.Uint64Flag{
Name: "txlookuplimit",
Usage: "Number of recent blocks to maintain transactions index by-hash for (default = index all blocks)",
Value: 0,
Usage: "Number of recent blocks to maintain transactions index for (default = about one year, 0 = entire chain)",
Value: ethconfig.Defaults.TxLookupLimit,
}
LightKDFFlag = cli.BoolFlag{
Name: "lightkdf",

View File

@ -66,6 +66,7 @@ var Defaults = Config{
DatasetsLockMmap: false,
},
NetworkId: 1,
TxLookupLimit: 2350000,
LightPeers: 100,
UltraLightFraction: 75,
DatabaseCache: 512,