Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 4897e72

Browse files
committed
Preset LND_NETWORK on mobile to read SCB from external storage
1 parent aad985f commit 4897e72

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/action/index-mobile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import RNiCloudStorage from 'react-native-icloudstore';
2626
import { NavigationActions, StackActions } from 'react-navigation';
2727
import { nap } from '../helper';
2828
import store from '../store';
29+
import { LND_NETWORK } from '../config';
2930
import AppStorage from './app-storage';
3031
import IpcAction from './ipc-mobile';
3132
import GrpcAction from './grpc-mobile';
@@ -49,6 +50,7 @@ import AtplAction from './autopilot';
4950
// Inject dependencies
5051
//
5152

53+
store.network = LND_NETWORK; // set to read SCB file for restore
5254
store.init(); // initialize computed values
5355

5456
export const db = new AppStorage(store, AsyncStorage);

src/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports.ATPL_DELAY = 60 * 60 * 1000;
1010
module.exports.PAYMENT_TIMEOUT = 60 * 1000;
1111
module.exports.POLL_STORE_TIMEOUT = 100;
1212

13+
module.exports.LND_NETWORK = 'testnet';
1314
module.exports.LND_PORT = 10006;
1415
module.exports.LND_PEER_PORT = 10016;
1516
module.exports.LND_REST_PORT = 8086;

0 commit comments

Comments
 (0)