server: allow to create incremental dumps
Anything not starting from 0 is incremental by definition. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
4383832aa2
commit
b560475e67
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue