mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 13:26:44 +00:00
minor fixes after refactoring
This commit is contained in:
parent
0502eec0cd
commit
f5a72105ac
3 changed files with 2 additions and 5 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
|||
Subproject commit e53574ea542aa8311dba61e18658482611d74632
|
||||
Subproject commit f1ce2ec939743e24dcd1d8426f3b68e8971c2be0
|
|
@ -316,7 +316,7 @@ public class MessageSignDialog extends Dialog<ButtonBar.ButtonData> {
|
|||
Keystore keystore = decryptedWallet.getKeystores().get(0);
|
||||
ECKey privKey = keystore.getKey(walletNode);
|
||||
ScriptType scriptType = electrumSignatureFormat ? ScriptType.P2PKH : decryptedWallet.getScriptType();
|
||||
String signatureText = privKey.signMessage(message.getText().trim(), scriptType, null);
|
||||
String signatureText = privKey.signMessage(message.getText().trim(), scriptType);
|
||||
signature.clear();
|
||||
signature.appendText(signatureText);
|
||||
privKey.clear();
|
||||
|
|
|
@ -442,9 +442,6 @@ public class HeadersController extends TransactionFormController implements Init
|
|||
String type = "Legacy";
|
||||
if(headersForm.getTransaction().isSegwit() || (headersForm.getPsbt() != null && headersForm.getPsbt().getPsbtInputs().stream().anyMatch(in -> in.getWitnessUtxo() != null))) {
|
||||
type = "Segwit";
|
||||
if(headersForm.getTransaction().getSegwitFlag() == 2) {
|
||||
type = "Taproot";
|
||||
}
|
||||
}
|
||||
segwit.setText(type);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue