add taproot script type to connected wallet import options

This commit is contained in:
Craig Raw 2023-07-17 11:57:34 +02:00
parent a5519537c5
commit c443bc78d3

View file

@ -300,7 +300,7 @@ public class DevicePane extends TitledDescriptionPane {
if(importButton instanceof SplitMenuButton importMenuButton) { if(importButton instanceof SplitMenuButton importMenuButton) {
if(wallet.getScriptType() == null) { if(wallet.getScriptType() == null) {
ScriptType[] scriptTypes = new ScriptType[] {ScriptType.P2WPKH, ScriptType.P2SH_P2WPKH, ScriptType.P2PKH}; ScriptType[] scriptTypes = new ScriptType[] {ScriptType.P2WPKH, ScriptType.P2SH_P2WPKH, ScriptType.P2PKH, ScriptType.P2TR};
for(ScriptType scriptType : scriptTypes) { for(ScriptType scriptType : scriptTypes) {
MenuItem item = new MenuItem(scriptType.getDescription()); MenuItem item = new MenuItem(scriptType.getDescription());
final List<ChildNumber> derivation = scriptType.getDefaultDerivation(); final List<ChildNumber> derivation = scriptType.getDefaultDerivation();