mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
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 {
|
||||
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