From 93f047023f8569e95b767cd000c7c95640dfcad7 Mon Sep 17 00:00:00 2001 From: gary rong Date: Wed, 16 Sep 2020 17:51:16 +0800 Subject: [PATCH] les/lespay/server: bump database version (#21571) --- les/lespay/server/clientdb.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/les/lespay/server/clientdb.go b/les/lespay/server/clientdb.go index c23f1e3b2f..30cd9a6528 100644 --- a/les/lespay/server/clientdb.go +++ b/les/lespay/server/clientdb.go @@ -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