Skip to content

Commit cdc57ba

Browse files
committed
Script interpreter nits
1 parent 9dfcd36 commit cdc57ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script/interpreter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ bool SignatureHashSchnorr(uint256& hash_out, const ScriptExecutionData& execdata
15311531
ss << execdata.m_annex_hash;
15321532
}
15331533

1534-
// Data about the output(s)
1534+
// Data about the output (if only one).
15351535
if (output_type == SIGHASH_SINGLE) {
15361536
if (in_pos >= tx_to.vout.size()) return false;
15371537
CHashWriter sha_single_output(SER_GETHASH, 0);
@@ -1675,7 +1675,7 @@ bool GenericTransactionSignatureChecker<T>::CheckSchnorrSignature(Span<const uns
16751675
if (hashtype == SIGHASH_DEFAULT) return false;
16761676
}
16771677
uint256 sighash;
1678-
if (!SignatureHashSchnorr(sighash, execdata, *txTo, nIn, hashtype, sigversion, 0x00, this->txdata)) return false;
1678+
if (!SignatureHashSchnorr(sighash, execdata, *txTo, nIn, hashtype, sigversion, /* key_version */ 0x00, this->txdata)) return false;
16791679
return VerifySchnorrSignature(sig, pubkey, sighash);
16801680
}
16811681

0 commit comments

Comments
 (0)