Snipa22 / nodejs-pool

Other
481 stars 421 forks source link

Set a negative fee to give bonus to miners? #463

Open shigutso opened 5 years ago

shigutso commented 5 years ago

Can I set on MySQL pool.config field "pplnsFee" to a negative value and after finding a block, miners will get more than they mined? I tested this on a testnet pool but blocks are found too quickly and I couldn't get if the negative fee was being payed correctly or not.

Thanks

DurinsMine commented 5 years ago

Just * their payments by 1.01 for 1% bonus

shigutso commented 5 years ago

Hmm that's an option as well, changing the code on payments module, you say?

If possible I'd like an option that could be confirmed by miners when checking the pool's API.

I remember an AEON Chinese pool that had negative fee value, but it wasn't a nodejs-pool

BKdilse commented 5 years ago

A better option (I think) would be to have a flag IsBonusEnabled = true/false. BonusPercentage = n.

Then blockmanager.js has the code to apply the percentage. Not an expert in this, so not 100% sure on coding required.

shigutso commented 5 years ago

hmmm maybe @Snipa22 could clarify if this is possible and how easy is to implement...