From 9fc2bd9967f9a310ceec9c0f5424905818b7bdb2 Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Wed, 17 Apr 2024 09:20:04 -0700 Subject: [PATCH] production updates [skip ci] --- cw_lightning/lib/lightning_wallet.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/cw_lightning/lib/lightning_wallet.dart b/cw_lightning/lib/lightning_wallet.dart index a32ba6f15..e621f53c5 100644 --- a/cw_lightning/lib/lightning_wallet.dart +++ b/cw_lightning/lib/lightning_wallet.dart @@ -124,12 +124,8 @@ abstract class LightningWalletBase extends ElectrumWallet with Store { required Box unspentCoinsInfo, required String password, }) async { - final snp = await ElectrumWalletSnapshot.load( - name, - walletInfo.type, - password, - BitcoinNetwork.mainnet - ); + final snp = + await ElectrumWalletSnapshot.load(name, walletInfo.type, password, BitcoinNetwork.mainnet); return LightningWallet( mnemonic: snp.mnemonic, password: password, @@ -158,10 +154,17 @@ abstract class LightningWalletBase extends ElectrumWallet with Store { print("Error initializing Breez: $e"); } + Uint8List deviceKey = Uint8List(0); + Uint8List deviceCert = Uint8List(0); + GreenlightCredentials greenlightCredentials = GreenlightCredentials( + deviceKey: deviceKey, + deviceCert: deviceCert, + ); + NodeConfig breezNodeConfig = NodeConfig.greenlight( config: GreenlightNodeConfig( - partnerCredentials: null, - inviteCode: secrets.breezInviteCode, + partnerCredentials: greenlightCredentials, + inviteCode: null, ), ); Config breezConfig = await sdk.defaultConfig(