mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Allow value commitments instead of explicit value
It is not invalid to have a value commitment and no explicit value. It is only invalid to have neither for an output.
This commit is contained in:
parent
2c0cee5a20
commit
c0cb623acc
1 changed files with 1 additions and 1 deletions
|
|
@ -1223,7 +1223,7 @@ struct PSBTOutput
|
|||
|
||||
// Make sure required PSBTv2 fields are present
|
||||
if (m_psbt_version >= 2) {
|
||||
if (amount == nullopt) {
|
||||
if (amount == nullopt && m_value_commitment.IsNull()) {
|
||||
throw std::ios_base::failure("Output amount is required in PSBTv2");
|
||||
}
|
||||
if (script == nullopt) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue