mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Fix Bitcoin not sending on Ledger (#1539)
This commit is contained in:
parent
01d40c4dc3
commit
d6c5b84188
1 changed files with 10 additions and 7 deletions
|
@ -519,17 +519,20 @@ abstract class ElectrumWalletBase
|
||||||
);
|
);
|
||||||
spendsSilentPayment = true;
|
spendsSilentPayment = true;
|
||||||
isSilentPayment = true;
|
isSilentPayment = true;
|
||||||
} else {
|
} else if (!isHardwareWallet) {
|
||||||
privkey =
|
privkey =
|
||||||
generateECPrivate(hd: hd, index: utx.bitcoinAddressRecord.index, network: network);
|
generateECPrivate(hd: hd, index: utx.bitcoinAddressRecord.index, network: network);
|
||||||
}
|
}
|
||||||
|
|
||||||
vinOutpoints.add(Outpoint(txid: utx.hash, index: utx.vout));
|
vinOutpoints.add(Outpoint(txid: utx.hash, index: utx.vout));
|
||||||
inputPrivKeyInfos.add(ECPrivateInfo(
|
|
||||||
privkey,
|
if (privkey != null) {
|
||||||
address.type == SegwitAddresType.p2tr,
|
inputPrivKeyInfos.add(ECPrivateInfo(
|
||||||
tweak: !isSilentPayment,
|
privkey,
|
||||||
));
|
address.type == SegwitAddresType.p2tr,
|
||||||
|
tweak: !isSilentPayment,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
utxos.add(
|
utxos.add(
|
||||||
UtxoWithAddress(
|
UtxoWithAddress(
|
||||||
|
@ -541,7 +544,7 @@ abstract class ElectrumWalletBase
|
||||||
isSilentPayment: isSilentPayment,
|
isSilentPayment: isSilentPayment,
|
||||||
),
|
),
|
||||||
ownerDetails: UtxoAddressDetails(
|
ownerDetails: UtxoAddressDetails(
|
||||||
publicKey: privkey.getPublic().toHex(),
|
publicKey: pubKeyHex,
|
||||||
address: address,
|
address: address,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue