janfiedler / mineiota

IOTA Faucet - Get IOTA through mining Monero and PIVX staking pool
52 stars 25 forks source link

Error message (Low difficulty share) flood the log #73

Closed poe84it closed 5 years ago

poe84it commented 5 years ago

When the internet connection is lost for whatever reason, the log is flooded with the following message:

Bad share from you miner (Low difficulty share), restarting connection to the pool

It's seems that when in your code you submit a message to the log, you need to call the keepLogLenght function, but you forgot to call it when occur the problem that log that message.

That freeze the browser (Firefox in my case) and if the workstation is unattended the system memory is totally eaten... you can imagine what arise in those situation.

Maybe ensuring the length of the UI log by calling keepLogLenght at the end of the function that put the message in the UI log could easily fix the problem. That last is pure speculation!

janfiedler commented 5 years ago

Hi, thank you very much for finding this issue. I forgot remove this function with refreshing page. But you are right I also forgot add keepLogLenght function when i was used this function in past. Now it is removed completly. So no more this information in log. Now you will see only: The connection to the pool was closed. And then miner is stopped.