File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
- const multiHashing = require ( 'multi -hashing' ) ;
2
+ const multiHashing = require ( "cryptonight -hashing" ) ;
3
3
const cnUtil = require ( 'cryptonote-util' ) ;
4
4
const bignum = require ( 'bignum' ) ;
5
5
const support = require ( './support.js' ) ( ) ;
@@ -232,11 +232,14 @@ let devPool = {
232
232
"devPool" : true
233
233
} ;
234
234
235
+ function syncHash ( convertedBlob ) {
236
+ return multiHashing . cryptonight ( convertedBlob , convertedBlob [ 0 ] >= 7 ? convertedBlob [ 0 ] - 6 : 0 ) ;
237
+ }
238
+
235
239
module . exports = function ( ) {
236
240
return {
237
241
devPool : devPool ,
238
- hashSync : multiHashing . cryptonight ,
239
- hashAsync : multiHashing . CNAsync ,
242
+ hashSync : syncHash ,
240
243
blockHeightCheck : blockHeightCheck ,
241
244
getRemoteNodes : getRemoteNodes ,
242
245
BlockTemplate : BlockTemplate ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " xmr-node-proxy" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"description" : " Node proxy for XMR pools based on nodejs-pool, should support any coins that nodejs-pool does with little work" ,
5
5
"main" : " proxy.js" ,
6
6
"scripts" : {
37
37
},
38
38
"optionalDependencies" : {
39
39
"cryptonote-util" : " git://github.com/Snipa22/node-cryptonote-util.git#xmr-Nan-2.0" ,
40
- "multi-hashing" : " git+https://github.com/Snipa22/node-multi-hashing-aesni.git#v0.1"
40
+ "multi-hashing" : " git+https://github.com/Snipa22/node-multi-hashing-aesni.git#v0.1" ,
41
+ "cryptonight-hashing" : " git+https://github.com/MoneroOcean/node-cryptonight-hashing.git"
41
42
}
42
43
}
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ function Pool(poolData){
260
260
this . sendData ( 'login' , {
261
261
login : this . username ,
262
262
pass : this . password ,
263
- agent : 'xmr-node-proxy/0.0.1 '
263
+ agent : 'xmr-node-proxy/0.0.2 '
264
264
} ) ;
265
265
this . active = true ;
266
266
for ( let worker in cluster . workers ) {
You can’t perform that action at this time.
0 commit comments