mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
production updates [skip ci]
This commit is contained in:
parent
2b17bc3fa4
commit
9fc2bd9967
1 changed files with 11 additions and 8 deletions
|
@ -124,12 +124,8 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
|
||||||
required Box<UnspentCoinsInfo> unspentCoinsInfo,
|
required Box<UnspentCoinsInfo> unspentCoinsInfo,
|
||||||
required String password,
|
required String password,
|
||||||
}) async {
|
}) async {
|
||||||
final snp = await ElectrumWalletSnapshot.load(
|
final snp =
|
||||||
name,
|
await ElectrumWalletSnapshot.load(name, walletInfo.type, password, BitcoinNetwork.mainnet);
|
||||||
walletInfo.type,
|
|
||||||
password,
|
|
||||||
BitcoinNetwork.mainnet
|
|
||||||
);
|
|
||||||
return LightningWallet(
|
return LightningWallet(
|
||||||
mnemonic: snp.mnemonic,
|
mnemonic: snp.mnemonic,
|
||||||
password: password,
|
password: password,
|
||||||
|
@ -158,10 +154,17 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
|
||||||
print("Error initializing Breez: $e");
|
print("Error initializing Breez: $e");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Uint8List deviceKey = Uint8List(0);
|
||||||
|
Uint8List deviceCert = Uint8List(0);
|
||||||
|
GreenlightCredentials greenlightCredentials = GreenlightCredentials(
|
||||||
|
deviceKey: deviceKey,
|
||||||
|
deviceCert: deviceCert,
|
||||||
|
);
|
||||||
|
|
||||||
NodeConfig breezNodeConfig = NodeConfig.greenlight(
|
NodeConfig breezNodeConfig = NodeConfig.greenlight(
|
||||||
config: GreenlightNodeConfig(
|
config: GreenlightNodeConfig(
|
||||||
partnerCredentials: null,
|
partnerCredentials: greenlightCredentials,
|
||||||
inviteCode: secrets.breezInviteCode,
|
inviteCode: null,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
Config breezConfig = await sdk.defaultConfig(
|
Config breezConfig = await sdk.defaultConfig(
|
||||||
|
|
Loading…
Reference in a new issue