From 47e3b5b9026c1da25aaf6cf370ea81c45891ec94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 10 Mar 2020 02:11:07 +0100 Subject: [PATCH] shed: make non-auto nonce-fix safer --- cmd/lotus-shed/nonce-fix.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/lotus-shed/nonce-fix.go b/cmd/lotus-shed/nonce-fix.go index f6da56316..827fd4921 100644 --- a/cmd/lotus-shed/nonce-fix.go +++ b/cmd/lotus-shed/nonce-fix.go @@ -77,10 +77,10 @@ var noncefix = &cli.Command{ } } - if end == math.MaxUint64 { - fmt.Println("No nonce gap found") - return nil - } + } + if end == math.MaxUint64 { + fmt.Println("No nonce gap found or no --end flag specified") + return nil } fmt.Printf("Creating %d filler messages (%d ~ %d)\n", end-start, start, end)