Set success = false when it fails

This commit is contained in:
Alessio Treglia 2018-10-29 15:13:36 +00:00
parent 9e397907be
commit 44d2347109
No known key found for this signature in database
GPG Key ID: E8A48AE5311D765A
1 changed files with 1 additions and 3 deletions

View File

@ -118,9 +118,7 @@ func printSignatures(stdTx auth.StdTx) bool {
sigSanity := "OK"
if i >= len(signers) || !sigAddr.Equals(signers[i]) {
sigSanity = fmt.Sprintf("ERROR: signature %d does not match its respective signer", i)
if success {
success = false
}
success = false
}
fmt.Printf(" %v: %v\t[%s]\n", i, sigAddr.String(), sigSanity)
}