SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.08k stars 128 forks source link

Modified block found output so it appears in red when there is no associated payout #143

Closed hbs closed 2 years ago

SChernykh commented 2 years ago

Red color is reserved for error messages (yellow - for warnings). Also, this code doesn't even compile. I would just print it in a separate message if payout == 0, something like "you haven't received a payout in this block because you don't have shares in PPLNS window".

hbs commented 2 years ago

You are right I did not have the build chain handy to test compilation, sorry about that. The idea of having the BLOCK FOUND banner in varying color was so from a distance you could differentiate blocks:

There is already a message indicating that you have a payout for a given block, but that message is tiny and can't be seen from a distance.