shed: corect start nonce in nc-fix

This commit is contained in:
Łukasz Magiera 2020-03-10 01:28:31 +01:00
parent e396454138
commit 9daaaa3ec2

View File

@ -58,7 +58,7 @@ var noncefix = &cli.Command{
if err != nil {
return err
}
start = a.Nonce + 1
start = a.Nonce
msgs, err := api.MpoolPending(ctx, types.EmptyTSK)
if err != nil {
@ -82,7 +82,7 @@ var noncefix = &cli.Command{
return nil
}
}
fmt.Printf("Creating %d filler messages (%d ~ %d)", end - start, start, end)
fmt.Printf("Creating %d filler messages (%d ~ %d)\n", end-start, start, end)
for i := start; i < end; i++ {
msg := &types.Message{