fix error message

This commit is contained in:
Tyler Chambers 2020-01-12 17:11:46 -05:00 committed by John C. Vernaleo
parent e9f15eda7e
commit 1d0bfca5b0

View file

@ -586,7 +586,7 @@ func (vm *Engine) checkPubKeyEncoding(pubKey []byte) error {
if vm.hasFlag(ScriptVerifyWitnessPubKeyType) &&
vm.isWitnessVersionActive(0) && !btcec.IsCompressedPubKey(pubKey) {
str := "only uncompressed keys are accepted post-segwit"
str := "only compressed keys are accepted post-segwit"
return scriptError(ErrWitnessPubKeyType, str)
}