Added X11-hashing for DarkCoin
This commit is contained in:
parent
83f1de968d
commit
d6b99ba0d9
|
@ -21,9 +21,14 @@ Features (need additional testing)
|
|||
* Block template / job manager
|
||||
* Optimized generation transaction building
|
||||
* Process share submissions
|
||||
* Supports algorithms: scrypt, scrypt-jane, quark
|
||||
* POW (proof-of-work) & POS (proof-of-stake) support
|
||||
* Vardiff (variable difficulty / share limiter)
|
||||
* Supports algorithms:
|
||||
* __SHA256__ (BitCoin, Freicoin, Peercoin/PPCoin, TerraCoin, etc..)
|
||||
* __Scrypt__ (LiteCoin, Dogecoin, FeatherCoin, etc..)
|
||||
* __Scrypt-jane__ (YaCoin, CopperBars, Pennies, Tickets, etc..)
|
||||
* __Quark__ (QuarkCoin [QRK])
|
||||
* __X11__ (Darkcoin [DRK])
|
||||
|
||||
#### To do
|
||||
* Statistics module
|
||||
|
|
|
@ -4,7 +4,8 @@ var bignum = require('bignum');
|
|||
|
||||
var scrypt = require('scrypt256-hash');
|
||||
var quark = require('quark-hash');
|
||||
var scryptJane = require('scrypt-jane-hash')
|
||||
var scryptJane = require('scrypt-jane-hash');
|
||||
var x11 = require('x11-hash');
|
||||
|
||||
|
||||
var util = require('./util.js');
|
||||
|
@ -90,6 +91,7 @@ var JobManager = module.exports = function JobManager(options){
|
|||
case 'scrypt-jane':
|
||||
return 0x0000ffff00000000000000000000000000000000000000000000000000000000;
|
||||
case 'quark':
|
||||
case 'x11':
|
||||
return 0x000000ffff000000000000000000000000000000000000000000000000000000;
|
||||
}
|
||||
})();
|
||||
|
@ -114,6 +116,10 @@ var JobManager = module.exports = function JobManager(options){
|
|||
return function(){
|
||||
return quark.digest.apply(this, arguments);
|
||||
}
|
||||
case 'x11':
|
||||
return function(){
|
||||
return x11.digest.apply(this, arguments);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
|
|
13
package.json
13
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "stratum-pool",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"author": "Matthew Little",
|
||||
"description": "High performance Stratum poolserver in Node.js",
|
||||
"contributors": [
|
||||
|
@ -24,11 +24,12 @@
|
|||
"scrypt"
|
||||
],
|
||||
"dependencies": {
|
||||
"scrypt256-hash": "*",
|
||||
"scrypt-jane-hash": "*",
|
||||
"quark-hash": "*",
|
||||
"bignum": "*",
|
||||
"base58-native": "*",
|
||||
"scrypt256-hash": "zone117x/node-scrypt256-hash",
|
||||
"scrypt-jane-hash": "zone117x/node-scrypt-jane-hash",
|
||||
"quark-hash": "zone117x/node-quark-hash",
|
||||
"x11-hash": "zone117x/node-x11-hash",
|
||||
"bignum": "*",
|
||||
"base58-native": "*",
|
||||
"async": "*"
|
||||
},
|
||||
"license": "GPL-2.0",
|
||||
|
|
Loading…
Reference in New Issue