Commit fb75bae
tx: Fix BIP118 ANYPREVOUTANYSCRIPT sighash
In the current code anytime sh_anyprevout_anyscript is true,
sh_anyonecanpay will also be true. Therefore it will fall
through and hash the prevout erroneously. Fix this by
checking for APOAS first.1 parent 944f266 commit fb75bae
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
914 | 917 | | |
915 | 918 | | |
916 | 919 | | |
| |||
925 | 928 | | |
926 | 929 | | |
927 | 930 | | |
928 | | - | |
929 | | - | |
930 | 931 | | |
931 | 932 | | |
932 | 933 | | |
| |||
0 commit comments