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
7 years ago
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add testnet parameter to daemon
parent
0ef810ed
Hide 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');
const
os
=
require
(
'os'
);
let
serve
;
let
testnet
;
const
args
=
process
.
argv
.
slice
(
1
);
serve
=
args
.
some
(
val
=>
val
===
"--serve"
);
testnet
=
args
.
some
(
val
=>
val
===
"--testnet"
);
if
(
serve
)
{
require
(
'electron-reload'
)(
__dirname
,
{
...
...
@@ -158,9 +160,16 @@ function startBitcoinApi() {
apiPath
=
path
.
resolve
(
__dirname
,
'assets
\\
daemon
\\
Stratis.BreezeD.exe'
);
}
bitcoinProcess
=
spawnBitcoin
(
apiPath
,
[
'-testnet'
],
{
if
(
!
testnet
)
{
bitcoinProcess
=
spawnBitcoin
(
apiPath
,
{
detached
:
true
});
});
}
else
if
(
testnet
)
{
bitcoinProcess
=
spawnBitcoin
(
apiPath
,
[
'-testnet'
],
{
detached
:
true
});
}
bitcoinProcess
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
writeLog
(
`Bitcoin:
${
data
}
`
);
...
...
@@ -177,9 +186,16 @@ function startStratisApi() {
apiPath
=
path
.
resolve
(
__dirname
,
'assets
\\
daemon
\\
Stratis.BreezeD.exe'
);
}
stratisProcess
=
spawnStratis
(
apiPath
,
[
'stratis'
,
'-testnet'
],
{
if
(
!
testnet
)
{
stratisProcess
=
spawnStratis
(
apiPath
,
[
'stratis'
],
{
detached
:
true
});
});
}
else
if
(
testnet
)
{
stratisProcess
=
spawnStratis
(
apiPath
,
[
'stratis'
,
'-testnet'
],
{
detached
:
true
});
}
stratisProcess
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
writeLog
(
`Stratis:
${
data
}
`
);
...
...
This diff is collapsed.
Click to expand it.
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