Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
8e42d5f3
Commit
8e42d5f3
authored
Nov 08, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add testnet parameter to daemon
parent
0ef810ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
main.ts
Breeze.UI/main.ts
+20
-4
No files found.
Breeze.UI/main.ts
View file @
8e42d5f3
...
@@ -11,8 +11,10 @@ const url = require('url');
...
@@ -11,8 +11,10 @@ const url = require('url');
const
os
=
require
(
'os'
);
const
os
=
require
(
'os'
);
let
serve
;
let
serve
;
let
testnet
;
const
args
=
process
.
argv
.
slice
(
1
);
const
args
=
process
.
argv
.
slice
(
1
);
serve
=
args
.
some
(
val
=>
val
===
"--serve"
);
serve
=
args
.
some
(
val
=>
val
===
"--serve"
);
testnet
=
args
.
some
(
val
=>
val
===
"--testnet"
);
if
(
serve
)
{
if
(
serve
)
{
require
(
'electron-reload'
)(
__dirname
,
{
require
(
'electron-reload'
)(
__dirname
,
{
...
@@ -158,9 +160,16 @@ function startBitcoinApi() {
...
@@ -158,9 +160,16 @@ function startBitcoinApi() {
apiPath
=
path
.
resolve
(
__dirname
,
'assets
\\
daemon
\\
Stratis.BreezeD.exe'
);
apiPath
=
path
.
resolve
(
__dirname
,
'assets
\\
daemon
\\
Stratis.BreezeD.exe'
);
}
}
if
(
!
testnet
)
{
bitcoinProcess
=
spawnBitcoin
(
apiPath
,
{
detached
:
true
});
}
else
if
(
testnet
)
{
bitcoinProcess
=
spawnBitcoin
(
apiPath
,
[
'-testnet'
],
{
bitcoinProcess
=
spawnBitcoin
(
apiPath
,
[
'-testnet'
],
{
detached
:
true
detached
:
true
});
});
}
bitcoinProcess
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
bitcoinProcess
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
writeLog
(
`Bitcoin:
${
data
}
`
);
writeLog
(
`Bitcoin:
${
data
}
`
);
...
@@ -177,9 +186,16 @@ function startStratisApi() {
...
@@ -177,9 +186,16 @@ function startStratisApi() {
apiPath
=
path
.
resolve
(
__dirname
,
'assets
\\
daemon
\\
Stratis.BreezeD.exe'
);
apiPath
=
path
.
resolve
(
__dirname
,
'assets
\\
daemon
\\
Stratis.BreezeD.exe'
);
}
}
if
(
!
testnet
)
{
stratisProcess
=
spawnStratis
(
apiPath
,
[
'stratis'
],
{
detached
:
true
});
}
else
if
(
testnet
)
{
stratisProcess
=
spawnStratis
(
apiPath
,
[
'stratis'
,
'-testnet'
],
{
stratisProcess
=
spawnStratis
(
apiPath
,
[
'stratis'
,
'-testnet'
],
{
detached
:
true
detached
:
true
});
});
}
stratisProcess
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
stratisProcess
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
writeLog
(
`Stratis:
${
data
}
`
);
writeLog
(
`Stratis:
${
data
}
`
);
...
...
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