Allow specifying raw N-value and R-value to scrypt
This commit is contained in:
parent
9722b04c65
commit
6e854e2354
|
@ -14,13 +14,15 @@ var algos = module.exports = global.algos = {
|
|||
}
|
||||
}
|
||||
},
|
||||
scrypt: {
|
||||
'scrypt': {
|
||||
//Uncomment diff if you want to use hardcoded truncated diff
|
||||
//diff: '0000ffff00000000000000000000000000000000000000000000000000000000',
|
||||
multiplier: Math.pow(2, 16),
|
||||
hash: function(){
|
||||
return function(){
|
||||
return multiHashing.scrypt.apply(this, arguments);
|
||||
hash: function(coinConfig){
|
||||
var nValue = coinConfig.nValue || 1024;
|
||||
var rValue = coinConfig.rValue || 1;
|
||||
return function(data){
|
||||
return multiHashing.scrypt(data,nValue,rValue);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -158,4 +160,4 @@ for (var algo in algos){
|
|||
else{
|
||||
algos[algo].maxDiff = diff1;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue