Create a P2WPKH keychain for new btc wallets

This commit is contained in:
Oscar Guindzberg 2020-09-14 14:53:17 -03:00
parent 2d06946c18
commit f13a7b164c
No known key found for this signature in database
GPG key ID: 209796BF2E1D4F75

View file

@ -359,9 +359,7 @@ public class WalletConfig extends AbstractIdleService {
}
protected Wallet createWallet(boolean isBsqWallet) {
// Change preferredOutputScriptType of btc wallet to P2WPKH to start using segwit
// Script.ScriptType preferredOutputScriptType = isBsqWallet ? Script.ScriptType.P2PKH : Script.ScriptType.P2WPKH;
Script.ScriptType preferredOutputScriptType = Script.ScriptType.P2PKH;
Script.ScriptType preferredOutputScriptType = isBsqWallet ? Script.ScriptType.P2PKH : Script.ScriptType.P2WPKH;
KeyChainGroupStructure structure = new BisqKeyChainGroupStructure(isBsqWallet);
KeyChainGroup.Builder kcgBuilder = KeyChainGroup.builder(params, structure);
if (restoreFromSeed != null) {