Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
409b16e5
Unverified
Commit
409b16e5
authored
Feb 08, 2021
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/utils, eth/ethconfig: unindex txs older than ~1 year
parent
944d9014
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
flags.go
cmd/utils/flags.go
+3
-3
config.go
eth/ethconfig/config.go
+1
-0
No files found.
cmd/utils/flags.go
View file @
409b16e5
...
...
@@ -212,10 +212,10 @@ var (
Name
:
"snapshot"
,
Usage
:
`Enables snapshot-database mode (default = enable)`
,
}
TxLookupLimitFlag
=
cli
.
I
nt64Flag
{
TxLookupLimitFlag
=
cli
.
Ui
nt64Flag
{
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"
,
...
...
eth/ethconfig/config.go
View file @
409b16e5
...
...
@@ -66,6 +66,7 @@ var Defaults = Config{
DatasetsLockMmap
:
false
,
},
NetworkId
:
1
,
TxLookupLimit
:
2350000
,
LightPeers
:
100
,
UltraLightFraction
:
75
,
DatabaseCache
:
512
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment