forked from TrueCloudLab/neoneo-go
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
9185820289
commit
a30f098f73
1 changed files with 3 additions and 0 deletions
|
@ -198,6 +198,9 @@ func dumpDB(ctx *cli.Context) error {
|
||||||
if count == 0 {
|
if count == 0 {
|
||||||
count = chainCount - start
|
count = chainCount - start
|
||||||
}
|
}
|
||||||
|
if start != 0 {
|
||||||
|
writer.WriteU32LE(start)
|
||||||
|
}
|
||||||
writer.WriteU32LE(count)
|
writer.WriteU32LE(count)
|
||||||
err = chaindump.Dump(chain, writer, start, count)
|
err = chaindump.Dump(chain, writer, start, count)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue