add method add_data as a shortcut to create an OP_RETURN output, fix the dust check to consider only spendable output
This commit is contained in:
@@ -601,7 +601,7 @@ where
|
||||
let recipients = params.recipients.iter().map(|(r, v)| (r, *v));
|
||||
|
||||
for (index, (script_pubkey, value)) in recipients.enumerate() {
|
||||
if value.is_dust() {
|
||||
if value.is_dust() && !script_pubkey.is_provably_unspendable() {
|
||||
return Err(Error::OutputBelowDustLimit(index));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user