Merge PR #4395: Improve sig verification error message

This commit is contained in:
Alexander Bezobchuk 2019-05-23 09:45:03 -04:00 committed by GitHub
parent 80767474d7
commit 40518cb655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
#3655 Improve signature verification failure error message.

View File

@ -199,7 +199,7 @@ func processSig(
}
if !simulate && !pubKey.VerifyBytes(signBytes, sig.Signature) {
return nil, sdk.ErrUnauthorized("signature verification failed").Result()
return nil, sdk.ErrUnauthorized("signature verification failed; verify correct account sequence and chain-id").Result()
}
if err := acc.SetSequence(acc.GetSequence() + 1); err != nil {