From b560475e67adb168c424cf121b50d451845803c3 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 29 Jun 2023 11:41:04 +0300 Subject: [PATCH] server: allow to create incremental dumps Anything not starting from 0 is incremental by definition. Signed-off-by: Roman Khimov --- cli/server/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/server/server.go b/cli/server/server.go index 9d139ae69..39e67739c 100644 --- a/cli/server/server.go +++ b/cli/server/server.go @@ -198,6 +198,9 @@ func dumpDB(ctx *cli.Context) error { if count == 0 { count = chainCount - start } + if start != 0 { + writer.WriteU32LE(start) + } writer.WriteU32LE(count) err = chaindump.Dump(chain, writer, start, count) if err != nil {