SIGHASH_FORKID defined as an int but used in the code as a bit-field constant

This is a serious error which is causing a lot of trouble in the test
suite. I have not been able to determine what sorts of problems it
might cause, or vulnerabilities open up, but I believe that this
constant should be changed asap.
This commit is contained in:
Zane Thomas 2018-01-23 20:05:43 -06:00
parent b1e4e22d12
commit 0c5a196b1b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ enum
SIGHASH_ALL = 1,
SIGHASH_NONE = 2,
SIGHASH_SINGLE = 3,
SIGHASH_FORKID = 0x42,
SIGHASH_FORKID = 0x40,
SIGHASH_ANYONECANPAY = 0x80,
};