shed: corect start nonce in nc-fix
This commit is contained in:
parent
e396454138
commit
9daaaa3ec2
@ -30,7 +30,7 @@ var noncefix = &cli.Command{
|
|||||||
Name: "addr",
|
Name: "addr",
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "auto",
|
Name: "auto",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
@ -58,7 +58,7 @@ var noncefix = &cli.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
start = a.Nonce + 1
|
start = a.Nonce
|
||||||
|
|
||||||
msgs, err := api.MpoolPending(ctx, types.EmptyTSK)
|
msgs, err := api.MpoolPending(ctx, types.EmptyTSK)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -82,7 +82,7 @@ var noncefix = &cli.Command{
|
|||||||
return nil
|
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++ {
|
for i := start; i < end; i++ {
|
||||||
msg := &types.Message{
|
msg := &types.Message{
|
||||||
|
Loading…
Reference in New Issue
Block a user