Fixed blockhash generation (block submission checking) for POS scrypt coins
This commit is contained in:
parent
50ffb00440
commit
58668a9543
@ -94,6 +94,12 @@ var JobManager = module.exports = function JobManager(options){
|
||||
return function(){
|
||||
return util.reverseBuffer(hashDigest.apply(this, arguments));
|
||||
};
|
||||
case 'scrypt':
|
||||
if (options.coin.reward === 'POS') {
|
||||
return function () {
|
||||
return util.reverseBuffer(hashDigest.apply(this, arguments));
|
||||
};
|
||||
}
|
||||
default:
|
||||
return function(d){
|
||||
return util.reverseBuffer(util.sha256d(d));
|
||||
|
||||
@ -54,11 +54,11 @@ var pool = module.exports = function pool(options, authorizeFn){
|
||||
|
||||
|
||||
this.start = function(){
|
||||
SetupJobManager();
|
||||
SetupVarDiff();
|
||||
SetupApi();
|
||||
SetupDaemonInterface(function(){
|
||||
DetectCoinData(function(){
|
||||
SetupJobManager();
|
||||
OnBlockchainSynced(function(){
|
||||
GetFirstJob(function(){
|
||||
SetupBlockPolling();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user