-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
771c803
commit 6a5cd78
Showing
4 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
var INFURA_MAINNET_URL = 'https://mainnet.infura.io/gmXEVo5luMPUGPqg6mhy'; | ||
|
||
|
||
var redisInterface = require('./lib/redis-interface') | ||
var peerInterface = require('./lib/peer-interface') | ||
|
||
var tokenInterface = require('./lib/token-interface') | ||
|
||
var poolConfig = require('./pool.config').config | ||
var accountConfig = require('./account.config').accounts; | ||
|
||
var Web3 = require('web3') | ||
var web3 = new Web3() | ||
web3.setProvider(INFURA_MAINNET_URL) | ||
|
||
var pool_env = "main" | ||
|
||
async function init() | ||
{ | ||
|
||
await redisInterface.init() | ||
await tokenInterface.init(redisInterface,web3,accountConfig,poolConfig,pool_env) | ||
|
||
await peerInterface.init(web3,accountConfig,poolConfig,redisInterface,tokenInterface,pool_env) //initJSONRPCServer(); | ||
|
||
await peerInterface.cleanRedisData(); | ||
|
||
process.exit() | ||
} | ||
|
||
init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
0 info it worked if it ends with ok | ||
1 verbose cli [ '/home/andy/.nvm/versions/node/v6.12.2/bin/node', | ||
1 verbose cli '/home/andy/.nvm/versions/node/v6.12.2/bin/npm', | ||
1 verbose cli 'run', | ||
1 verbose cli 'clean_redis' ] | ||
2 info using npm@3.10.10 | ||
3 info using node@v6.12.2 | ||
4 verbose run-script [ 'preclean_redis', 'clean_redis', 'postclean_redis' ] | ||
5 info lifecycle TokenPool@1.4.0~preclean_redis: TokenPool@1.4.0 | ||
6 silly lifecycle TokenPool@1.4.0~preclean_redis: no script for preclean_redis, continuing | ||
7 info lifecycle TokenPool@1.4.0~clean_redis: TokenPool@1.4.0 | ||
8 verbose lifecycle TokenPool@1.4.0~clean_redis: unsafe-perm in lifecycle true | ||
9 verbose lifecycle TokenPool@1.4.0~clean_redis: PATH: /home/andy/.nvm/versions/node/v6.12.2/lib/node_modules/npm/bin/node-gyp-bin:/home/andy/dev/tokenpool/node_modules/.bin:/home/andy/.rvm/gems/ruby-2.2.7/bin:/home/andy/.rvm/gems/ruby-2.2.7@global/bin:/home/andy/.rvm/rubies/ruby-2.2.7/bin:/home/andy/.nvm/versions/node/v6.12.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/andy/.rvm/bin | ||
10 verbose lifecycle TokenPool@1.4.0~clean_redis: CWD: /home/andy/dev/tokenpool | ||
11 silly lifecycle TokenPool@1.4.0~clean_redis: Args: [ '-c', 'node clean-redis.js' ] | ||
12 silly lifecycle TokenPool@1.4.0~clean_redis: Returned: code: 1 signal: null | ||
13 info lifecycle TokenPool@1.4.0~clean_redis: Failed to exec clean_redis script | ||
14 verbose stack Error: TokenPool@1.4.0 clean_redis: `node clean-redis.js` | ||
14 verbose stack Exit status 1 | ||
14 verbose stack at EventEmitter.<anonymous> (/home/andy/.nvm/versions/node/v6.12.2/lib/node_modules/npm/lib/utils/lifecycle.js:255:16) | ||
14 verbose stack at emitTwo (events.js:106:13) | ||
14 verbose stack at EventEmitter.emit (events.js:191:7) | ||
14 verbose stack at ChildProcess.<anonymous> (/home/andy/.nvm/versions/node/v6.12.2/lib/node_modules/npm/lib/utils/spawn.js:40:14) | ||
14 verbose stack at emitTwo (events.js:106:13) | ||
14 verbose stack at ChildProcess.emit (events.js:191:7) | ||
14 verbose stack at maybeClose (internal/child_process.js:920:16) | ||
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) | ||
15 verbose pkgid TokenPool@1.4.0 | ||
16 verbose cwd /home/andy/dev/tokenpool | ||
17 error Linux 4.13.0-21-generic | ||
18 error argv "/home/andy/.nvm/versions/node/v6.12.2/bin/node" "/home/andy/.nvm/versions/node/v6.12.2/bin/npm" "run" "clean_redis" | ||
19 error node v6.12.2 | ||
20 error npm v3.10.10 | ||
21 error code ELIFECYCLE | ||
22 error TokenPool@1.4.0 clean_redis: `node clean-redis.js` | ||
22 error Exit status 1 | ||
23 error Failed at the TokenPool@1.4.0 clean_redis script 'node clean-redis.js'. | ||
23 error Make sure you have the latest version of node.js and npm installed. | ||
23 error If you do, this is most likely a problem with the TokenPool package, | ||
23 error not with npm itself. | ||
23 error Tell the author that this fails on your system: | ||
23 error node clean-redis.js | ||
23 error You can get information on how to open an issue for this project with: | ||
23 error npm bugs TokenPool | ||
23 error Or if that isn't available, you can get their info via: | ||
23 error npm owner ls TokenPool | ||
23 error There is likely additional logging output above. | ||
24 verbose exit [ 1, true ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters