Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3680413f89
@ -89,6 +89,8 @@ var myCoin = {
|
||||
"name": "Dogecoin",
|
||||
"symbol": "DOGE",
|
||||
"algorithm": "scrypt",
|
||||
"nValue": 1024, //optional. Defaults to 1024
|
||||
"rValue": 1, //optional. Defaults to 1
|
||||
"txMessages": false, //or true (not required, defaults to false)
|
||||
};
|
||||
```
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -159,4 +161,4 @@ for (var algo in algos){
|
||||
else{
|
||||
algos[algo].maxDiff = diff1;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user