forked from TrueCloudLab/neoneo-go
cli: fix wrong db dump format
It was broken by 03ff2976ed
that changed fixed
32-bit length encoding to VarBytes.
This commit is contained in:
parent
9145855d2c
commit
7aa7490fb2
1 changed files with 2 additions and 1 deletions
|
@ -193,7 +193,8 @@ func dumpDB(ctx *cli.Context) error {
|
|||
buf := io.NewBufBinWriter()
|
||||
b.EncodeBinary(buf.BinWriter)
|
||||
bytes := buf.Bytes()
|
||||
writer.WriteVarBytes(bytes)
|
||||
writer.WriteU32LE(uint32(len(bytes)))
|
||||
writer.WriteBytes(bytes)
|
||||
if writer.Err != nil {
|
||||
return cli.NewExitError(err, 1)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue