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 function(){
|
||||||
return util.reverseBuffer(hashDigest.apply(this, arguments));
|
return util.reverseBuffer(hashDigest.apply(this, arguments));
|
||||||
};
|
};
|
||||||
|
case 'scrypt':
|
||||||
|
if (options.coin.reward === 'POS') {
|
||||||
|
return function () {
|
||||||
|
return util.reverseBuffer(hashDigest.apply(this, arguments));
|
||||||
|
};
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return function(d){
|
return function(d){
|
||||||
return util.reverseBuffer(util.sha256d(d));
|
return util.reverseBuffer(util.sha256d(d));
|
||||||
|
|||||||
@ -54,11 +54,11 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
|
|
||||||
|
|
||||||
this.start = function(){
|
this.start = function(){
|
||||||
SetupJobManager();
|
|
||||||
SetupVarDiff();
|
SetupVarDiff();
|
||||||
SetupApi();
|
SetupApi();
|
||||||
SetupDaemonInterface(function(){
|
SetupDaemonInterface(function(){
|
||||||
DetectCoinData(function(){
|
DetectCoinData(function(){
|
||||||
|
SetupJobManager();
|
||||||
OnBlockchainSynced(function(){
|
OnBlockchainSynced(function(){
|
||||||
GetFirstJob(function(){
|
GetFirstJob(function(){
|
||||||
SetupBlockPolling();
|
SetupBlockPolling();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user