Skip to content

Commit 601ea62

Browse files
committed
Fix warning about mixing enum and int
1 parent 305de6d commit 601ea62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block_proof.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static bool CheckProofGeneric(const CBlockHeader& block, const uint32_t max_bloc
4343
| SCRIPT_VERIFY_SIGPUSHONLY // Witness is push-only
4444
| SCRIPT_VERIFY_LOW_S // Stop easiest signature fiddling
4545
| SCRIPT_VERIFY_WITNESS // Witness and to enforce cleanstack
46-
| (is_dyna ? 0 : SCRIPT_NO_SIGHASH_BYTE); // Non-dynafed blocks do not have sighash byte
46+
| (is_dyna ? SCRIPT_VERIFY_NONE : SCRIPT_NO_SIGHASH_BYTE); // Non-dynafed blocks do not have sighash byte
4747
return GenericVerifyScript(scriptSig, witness, challenge, proof_flags, block);
4848
}
4949

0 commit comments

Comments
 (0)