Skip to content

Commit cf71aa5

Browse files
author
Allen Piscitello
committed
Fixed incorrect assertion.
1 parent 8e1153a commit cf71aa5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/blindpsbt.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,9 @@ BlindingStatus BlindPSBT(PartiallySignedTransaction& psbt, std::map<uint32_t, st
476476
}
477477
}
478478
}
479-
else
479+
else {
480480
input_asset_blinders.emplace_back();
481-
481+
}
482482
}
483483
}
484484
}

src/psbt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ CTxOut PSBTOutput::GetTxOut() const
545545
{
546546
assert(script != std::nullopt);
547547
assert(amount != std::nullopt || !m_value_commitment.IsNull());
548-
assert(m_asset.IsNull() || !m_asset_commitment.IsNull());
548+
assert(!m_asset.IsNull() || !m_asset_commitment.IsNull());
549549
return CTxOut(!m_asset_commitment.IsNull() ? m_asset_commitment : CAsset(m_asset), !m_value_commitment.IsNull() ? m_value_commitment : CConfidentialValue(*amount), *script);
550550
}
551551

0 commit comments

Comments
 (0)