mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
show error message if partial signatures do not match wallet on finalizing psbt
This commit is contained in:
parent
5e31cdb7ac
commit
761ec0659f
1 changed files with 7 additions and 2 deletions
|
@ -951,8 +951,13 @@ public class HeadersController extends TransactionFormController implements Init
|
||||||
|
|
||||||
private void finalizePSBT() {
|
private void finalizePSBT() {
|
||||||
if(headersForm.getPsbt() != null && headersForm.getPsbt().isSigned() && !headersForm.getPsbt().isFinalized()) {
|
if(headersForm.getPsbt() != null && headersForm.getPsbt().isSigned() && !headersForm.getPsbt().isFinalized()) {
|
||||||
headersForm.getSigningWallet().finalise(headersForm.getPsbt());
|
try {
|
||||||
EventManager.get().post(new PSBTFinalizedEvent(headersForm.getPsbt()));
|
headersForm.getSigningWallet().finalise(headersForm.getPsbt());
|
||||||
|
EventManager.get().post(new PSBTFinalizedEvent(headersForm.getPsbt()));
|
||||||
|
} catch(IllegalArgumentException e) {
|
||||||
|
AppServices.showErrorDialog("Cannot finalize PSBT", e.getMessage());
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue