fix(onShareFound): payout to be double

pull/173/head
James Willhoite 2 years ago
parent 75d269daa7
commit 9614f1a540

Binary file not shown.

@ -395,8 +395,13 @@ void p2pool::handle_chain_main(ChainMain& data, const char* extra)
if(!params().m_onBlockFound.empty())
{
std::stringstream cmd;
double po = payout;
if(po > 0)
{
po = po * 0.000000000001; //convert to XMR reward
}
cmd << params().m_onBlockFound << " BLOCK " << data.id << " " << data.timestamp << " " << data.reward << " " << payout;
cmd << params().m_onBlockFound << " BLOCK " << data.id << " " << data.timestamp << " " << data.reward << " " << po;
//system() requires char and not string, convert to char
std::string ss(cmd.str());

Loading…
Cancel
Save