Merge pull request #28 from leto/2way_replay_protection

This constant is actually spelled SCRIPT_ERR_ILLEGAL_FORKID
This commit is contained in:
Rhett Creighton 2018-01-05 18:39:12 -06:00 committed by GitHub
commit 97423c77de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -207,11 +207,11 @@ bool static CheckSignatureEncoding(const valtype &vchSig, unsigned int flags, Sc
bool btcpforkEnabled = flags & SCRIPT_ENABLE_SIGHASH_FORKID;
if(!btcpForkHash && btcpforkEnabled) {
return set_error(serror, SCRIPT_ERR_ILLEGAL_BTCP_FORKID);
return set_error(serror, SCRIPT_ERR_ILLEGAL_FORKID);
}
if(btcpForkHash && !btcpforkEnabled) {
return set_error(serror, SCRIPT_ERR_ILLEGAL_BTCP_FORKID);
return set_error(serror, SCRIPT_ERR_ILLEGAL_FORKID);
}
}