Allow reward type to be configured in coin definition instead of auto detected
This commit is contained in:
parent
f08b105be9
commit
d2354063ac
10
lib/pool.js
10
lib/pool.js
@ -398,10 +398,12 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNaN(rpcResults.getdifficulty) && 'proof-of-stake' in rpcResults.getdifficulty)
|
if (!options.coin.reward) {
|
||||||
options.coin.reward = 'POS';
|
if (isNaN(rpcResults.getdifficulty) && 'proof-of-stake' in rpcResults.getdifficulty)
|
||||||
else
|
options.coin.reward = 'POS';
|
||||||
options.coin.reward = 'POW';
|
else
|
||||||
|
options.coin.reward = 'POW';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* POS coins must use the pubkey in coinbase transaction, and pubkey is
|
/* POS coins must use the pubkey in coinbase transaction, and pubkey is
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user