Commit 4897e72f authored by Tankred Hase's avatar Tankred Hase

Preset LND_NETWORK on mobile to read SCB from external storage

parent aad985f4
......@@ -26,6 +26,7 @@ import RNiCloudStorage from 'react-native-icloudstore';
import { NavigationActions, StackActions } from 'react-navigation';
import { nap } from '../helper';
import store from '../store';
import { LND_NETWORK } from '../config';
import AppStorage from './app-storage';
import IpcAction from './ipc-mobile';
import GrpcAction from './grpc-mobile';
......@@ -49,6 +50,7 @@ import AtplAction from './autopilot';
// Inject dependencies
//
store.network = LND_NETWORK; // set to read SCB file for restore
store.init(); // initialize computed values
export const db = new AppStorage(store, AsyncStorage);
......
......@@ -10,6 +10,7 @@ module.exports.ATPL_DELAY = 60 * 60 * 1000;
module.exports.PAYMENT_TIMEOUT = 60 * 1000;
module.exports.POLL_STORE_TIMEOUT = 100;
module.exports.LND_NETWORK = 'testnet';
module.exports.LND_PORT = 10006;
module.exports.LND_PEER_PORT = 10016;
module.exports.LND_REST_PORT = 8086;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment