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
93f04702
Unverified
Commit
93f04702
authored
Sep 16, 2020
by
gary rong
Committed by
GitHub
Sep 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
les/lespay/server: bump database version (#21571)
parent
8696dd39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
clientdb.go
les/lespay/server/clientdb.go
+6
-1
No files found.
les/lespay/server/clientdb.go
View file @
93f04702
...
@@ -37,8 +37,13 @@ const (
...
@@ -37,8 +37,13 @@ const (
// nodeDBVersion is the version identifier of the node data in db
// nodeDBVersion is the version identifier of the node data in db
//
//
// Changelog:
// Changelog:
// Version 0 => 1
// * Replace `lastTotal` with `meta` in positive balance: version 0=>1
// * Replace `lastTotal` with `meta` in positive balance: version 0=>1
nodeDBVersion
=
1
//
// Version 1 => 2
// * Positive Balance and negative balance is changed:
// * Cumulative time is replaced with expiration
nodeDBVersion
=
2
// dbCleanupCycle is the cycle of db for useless data cleanup
// dbCleanupCycle is the cycle of db for useless data cleanup
dbCleanupCycle
=
time
.
Hour
dbCleanupCycle
=
time
.
Hour
...
...
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