Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tangled
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eriksson monteiro
tangled
Commits
6af0c4ad
Commit
6af0c4ad
authored
Apr 07, 2022
by
Eriksson Monteiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix last commit
parent
5548b985
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
millix_node/index.js
millix_node/index.js
+13
-3
No files found.
millix_node/index.js
View file @
6af0c4ad
...
@@ -7,6 +7,8 @@ import genesisConfig from './core/genesis/genesis-config';
...
@@ -7,6 +7,8 @@ import genesisConfig from './core/genesis/genesis-config';
import
request
from
'
request
'
;
import
request
from
'
request
'
;
import
services
from
'
./core/services/services
'
;
import
services
from
'
./core/services/services
'
;
import
logManager
from
'
./core/log-manager
'
;
import
logManager
from
'
./core/log-manager
'
;
const
childProcess
=
require
(
'
child_process
'
);
let
tangledProcess
;
const
argv
=
require
(
'
yargs
'
)
const
argv
=
require
(
'
yargs
'
)
.
options
({
.
options
({
...
@@ -93,10 +95,17 @@ process.on('exit', async() => {
...
@@ -93,10 +95,17 @@ process.on('exit', async() => {
});
});
console
.
log
(
'
starting millix-core
'
);
console
.
log
(
'
starting millix-core
'
);
eventBus
.
on
(
'
wallet_unlock
'
,
()
=>
{
if
(
!
tangledProcess
)
{
tangledProcess
=
childProcess
.
spawn
(
process
.
execPath
,
[
`
${
__dirname
}
/tangled-advertisement.js`
],
{
stdio
:
'
ignore
'
});
tangledProcess
.
title
=
'
tangled-advertisement
'
;
}
});
db
.
initialize
()
db
.
initialize
()
.
then
(()
=>
configLoader
.
cleanConfigsFromDatabase
())
.
then
(()
=>
configLoader
.
load
())
.
then
(()
=>
configLoader
.
load
(
false
))
.
then
(()
=>
services
.
initialize
({
auto_create_wallet
:
false
}))
.
then
(()
=>
services
.
initialize
())
.
then
(()
=>
{
.
then
(()
=>
{
logManager
.
logSize
=
1000
;
logManager
.
logSize
=
1000
;
if
(
config
.
MODE_TEST
)
{
if
(
config
.
MODE_TEST
)
{
...
@@ -116,3 +125,4 @@ db.initialize()
...
@@ -116,3 +125,4 @@ db.initialize()
});
});
}
}
});
});
//millix v1.17.4-tangled
\ No newline at end of file
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