rename tx segwit version field to segwit flag

This commit is contained in:
Craig Raw
2021-07-08 11:46:21 +02:00
parent 422713ff53
commit 1fd1dec6cf
3 changed files with 3 additions and 2 deletions
@@ -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";
}
}