Comparing version 0.0.5 to 0.0.6
@@ -26,3 +26,4 @@ const exec = require('child_process').exec; | ||
return new Promise((r,e)=>{ | ||
execute(`echo '{"jsonrpc":"2.0","method":"txpool_content","params":[],"id":1092015}' | nc -U .chainData/signup/./MEC.ipc`).then((result)=>{ | ||
console.log(node) | ||
execute(`echo '{"jsonrpc":"2.0","method":"txpool_content","params":[],"id":1092015}' | nc -U .chainData/${node}/./MEC.ipc`).then((result)=>{ | ||
r(result); | ||
@@ -29,0 +30,0 @@ }) |
@@ -14,5 +14,5 @@ const m = require('../utils/Makers.js') | ||
m.Client(name, chainId, k.ports, k.discovery, true).then(res=>{ | ||
let path = `.chainDatcd a/${name}/./MEC.ipc` | ||
let path = `.chainData/${name}/./MEC.ipc` | ||
k.ipc[name] = s.setIpcProvider(path) | ||
nodec.connectConsortium( | ||
c.connectConsortium( | ||
c.consortium_params( | ||
@@ -19,0 +19,0 @@ s.enode(name), |
@@ -6,3 +6,3 @@ const k = require('../appStructure/keyElements.js') | ||
setInterval(() => { | ||
let a = new pool(k.ipc[name]) | ||
let a = new pool(name) | ||
pool.content | ||
@@ -9,0 +9,0 @@ .then(res=>{ |
{ | ||
"name": "mec", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "This package helps to create multi-layer chains upon Ethereum Network. Also it provides easy to use nodejs API to any of consortium network and helps to manage all of them at the same time", | ||
@@ -20,5 +20,12 @@ "main": "mec.js", | ||
"Tooneling", | ||
"DAPPS" | ||
"DAPPS", | ||
"Offchain", | ||
"Layer", | ||
"Chain" | ||
], | ||
"author": "Sizov Bogdan <sizov.workingbox@gmail.com>", | ||
"author": { | ||
"name": "Sizov Bogdan", | ||
"email": "sizov.workingbox@gmail.com", | ||
"url": "" | ||
}, | ||
"license": "LGPL-3.0", | ||
@@ -32,3 +39,7 @@ "dependencies": { | ||
"web3_ipc": "^1.4.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/MEC-org/nodejs-MEC.git" | ||
} | ||
} |
@@ -11,3 +11,3 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * | ||
ncp( | ||
`.chainData/main/keystore/`, | ||
`.chainData/signup/keystore/`, | ||
`.chainData/${newChain}/keystore/`, | ||
@@ -14,0 +14,0 @@ (err)=>{ |
@@ -26,6 +26,9 @@ const m = require('./Makers.js') | ||
return new Promise((r,e)=>{ | ||
let who = params.network; | ||
console.log(params) | ||
let who = params.network; | ||
let net = getNetObjByName(who) | ||
// setting remote provider, change to local | ||
chain = m.newWeb3Provider(params.server).eth; | ||
@@ -46,2 +49,6 @@ | ||
if(!params.node) { | ||
r(true); | ||
} | ||
keys.ipc[who].admin.addPeer(params.node, (err,res)=>{ | ||
@@ -48,0 +55,0 @@ if(err) e(err); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
32517471
1478
1