Skip to content

Commit

Permalink
Fixed incorrect assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Piscitello committed Aug 18, 2022
1 parent 8e1153a commit cf71aa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/blindpsbt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ BlindingStatus BlindPSBT(PartiallySignedTransaction& psbt, std::map<uint32_t, st
}
}
}
else
else {
input_asset_blinders.emplace_back();

}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/psbt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ CTxOut PSBTOutput::GetTxOut() const
{
assert(script != std::nullopt);
assert(amount != std::nullopt || !m_value_commitment.IsNull());
assert(m_asset.IsNull() || !m_asset_commitment.IsNull());
assert(!m_asset.IsNull() || !m_asset_commitment.IsNull());
return CTxOut(!m_asset_commitment.IsNull() ? m_asset_commitment : CAsset(m_asset), !m_value_commitment.IsNull() ? m_value_commitment : CConfidentialValue(*amount), *script);
}

Expand Down

0 comments on commit cf71aa5

Please sign in to comment.