Navigation Menu

Skip to content

Commit

Permalink
les/lespay/server: bump database version (#21571)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Sep 16, 2020
1 parent 8696dd3 commit 93f0470
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion les/lespay/server/clientdb.go
Expand Up @@ -37,8 +37,13 @@ const (
// nodeDBVersion is the version identifier of the node data in db
//
// Changelog:
// 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 = time.Hour
Expand Down

0 comments on commit 93f0470

Please sign in to comment.