Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
lightning-bits
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
lightning-bits
Commits
4897e72f
Commit
4897e72f
authored
Aug 27, 2019
by
Tankred Hase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preset LND_NETWORK on mobile to read SCB from external storage
parent
aad985f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
index-mobile.js
src/action/index-mobile.js
+2
-0
config.js
src/config.js
+1
-0
No files found.
src/action/index-mobile.js
View file @
4897e72f
...
...
@@ -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
);
...
...
src/config.js
View file @
4897e72f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment