mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 00:27:00 +00:00
rename tx segwit version field to segwit flag
This commit is contained in:
@@ -600,6 +600,7 @@ public class QRScanDialog extends Dialog<QRScanDialog.Result> {
|
||||
}
|
||||
|
||||
if(button instanceof Region) {
|
||||
((Region)button).setPrefWidth(150);
|
||||
((Region)button).setMaxWidth(150);
|
||||
}
|
||||
|
||||
|
||||
@@ -442,7 +442,7 @@ 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().getSegwitVersion() == 2) {
|
||||
if(headersForm.getTransaction().getSegwitFlag() == 2) {
|
||||
type = "Taproot";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user