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
ea78c4a0
Commit
ea78c4a0
authored
Oct 11, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to childprocess.spawn
parent
b5876cf7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
main.ts
Breeze.UI/main.ts
+8
-8
No files found.
Breeze.UI/main.ts
View file @
ea78c4a0
...
...
@@ -136,15 +136,15 @@ function closeStratisApi() {
function
startBitcoinApi
()
{
var
bitcoinProcess
;
const
execBitcoin
=
require
(
'child_process'
).
exec
;
const
spawnBitcoin
=
require
(
'child_process'
).
spawn
;
//Start Breeze Bitcoin Daemon
let
apiPath
=
path
.
join
(
__dirname
,
'".//assets//daemon//Stratis.BreezeD"
'
);
let
apiPath
=
path
.
resolve
(
__dirname
,
'assets//daemon//Stratis.BreezeD
'
);
if
(
os
.
platform
()
===
'win32'
)
{
apiPath
=
path
.
join
(
__dirname
,
'".
\\
assets
\\
daemon
\\
Stratis.BreezeD.exe"
'
);
apiPath
=
path
.
resolve
(
__dirname
,
'assets
\\
daemon
\\
Stratis.BreezeD.exe
'
);
}
bitcoinProcess
=
execBitcoin
(
'"'
+
apiPath
+
'" -testnet'
,
{
bitcoinProcess
=
spawnBitcoin
(
apiPath
,
[
'-testnet'
]
,
{
detached
:
true
},
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
...
...
@@ -160,15 +160,15 @@ function startBitcoinApi() {
function
startStratisApi
()
{
var
stratisProcess
;
const
execStratis
=
require
(
'child_process'
).
exec
;
const
spawnStratis
=
require
(
'child_process'
).
spawn
;
//Start Breeze Stratis Daemon
let
apiPath
=
path
.
join
(
__dirname
,
'".//assets//daemon//Stratis.BreezeD"
'
);
let
apiPath
=
path
.
resolve
(
__dirname
,
'assets//daemon//Stratis.BreezeD
'
);
if
(
os
.
platform
()
===
'win32'
)
{
apiPath
=
path
.
join
(
__dirname
,
'".
\\
assets
\\
daemon
\\
Stratis.BreezeD.exe"
'
);
apiPath
=
path
.
resolve
(
__dirname
,
'assets
\\
daemon
\\
Stratis.BreezeD.exe
'
);
}
stratisProcess
=
execStratis
(
'"'
+
apiPath
+
'" stratis -testnet'
,
{
stratisProcess
=
spawnStratis
(
apiPath
,
[
'stratis'
,
'-testnet'
]
,
{
detached
:
true
},
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
...
...
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