Skip to content

Commit

Permalink
SignatureHashTap bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jl2012 committed Apr 10, 2019
1 parent 63c39e1 commit b069d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ bool SignatureHashTap(uint256& hash_out, const T& tx_to, unsigned int in_pos, in
{
assert(in_pos < tx_to.vin.size());

if (sigversion == SigVersion::TAPROOT) {
if (sigversion >= SigVersion::TAPROOT) {
assert(cache.ready && cache.m_amounts_spent_ready);
CHashWriter ss(SER_GETHASH, 0);

Expand Down

0 comments on commit b069d17

Please sign in to comment.