We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Wallet
1 parent 65ae897 commit 109c6e9Copy full SHA for 109c6e9
src/wallet.rs
@@ -140,12 +140,20 @@ where
140
}
141
Err(err) => {
142
log_error!(self.logger, "Failed to create funding transaction: {}", err);
143
- Err(err)?
+ return Err(err.into());
144
145
};
146
147
- if !locked_wallet.sign(&mut psbt, SignOptions::default())? {
148
- return Err(Error::FundingTxCreationFailed);
+ match locked_wallet.sign(&mut psbt, SignOptions::default()) {
+ Ok(finalized) => {
149
+ if !finalized {
150
+ return Err(Error::FundingTxCreationFailed);
151
+ }
152
153
+ Err(err) => {
154
+ log_error!(self.logger, "Failed to create funding transaction: {}", err);
155
156
157
158
159
Ok(psbt.extract_tx())
0 commit comments