Allow reward type to be configured in coin definition instead of auto detected

This commit is contained in:
Matthew Little 2014-06-21 09:20:03 -06:00
parent f08b105be9
commit d2354063ac

View File

@ -398,10 +398,12 @@ var pool = module.exports = function pool(options, authorizeFn){
return;
}
if (isNaN(rpcResults.getdifficulty) && 'proof-of-stake' in rpcResults.getdifficulty)
options.coin.reward = 'POS';
else
options.coin.reward = 'POW';
if (!options.coin.reward) {
if (isNaN(rpcResults.getdifficulty) && 'proof-of-stake' in rpcResults.getdifficulty)
options.coin.reward = 'POS';
else
options.coin.reward = 'POW';
}
/* POS coins must use the pubkey in coinbase transaction, and pubkey is