From a30f098f7381dd04cb470a34ed992dcef51113a1 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 8dd586e9a..b55982a4e 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 {