bitcoin-serai changes from next

Expands the NotEnoughFunds error and enables fetching the entire unsigned
transaction, not just the outputs it'll have.
This commit is contained in:
Luke Parker
2024-09-20 02:45:07 -04:00
parent e6300847d6
commit 9eee1d971e
3 changed files with 13 additions and 9 deletions

View File

@@ -455,7 +455,7 @@ impl Bitcoin {
panic!("trying to create a bitcoin transaction without inputs")
}
// No outputs left and the change isn't worth enough/not even enough funds to pay the fee
Err(TransactionError::NoOutputs | TransactionError::NotEnoughFunds) => Ok(None),
Err(TransactionError::NoOutputs | TransactionError::NotEnoughFunds { .. }) => Ok(None),
// amortize_fee removes payments which fall below the dust threshold
Err(TransactionError::DustPayment) => panic!("dust payment despite removing dust"),
Err(TransactionError::TooMuchData) => {