mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-20 01:09:48 +00:00
backend: drop bench dups logs + balances workaround
This commit is contained in:
parent
ef1cd062e1
commit
6b91caa27b
2 changed files with 6 additions and 1 deletions
|
@ -25,7 +25,7 @@ function BenchUpdateChips()
|
|||
array(':vid'=>$bench->vendorid, ':client'=>$bench->client, ':os'=>$bench->os, ':drv'=>$bench->driver,':thr'=>$bench->throughput,':uid'=>$bench->userid)
|
||||
);
|
||||
if ($dups > 10) {
|
||||
debuglog("bench: {$bench->device} ignored ($dups records already present)");
|
||||
//debuglog("bench: {$bench->device} ignored ($dups records already present)");
|
||||
$bench->delete();
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -240,6 +240,11 @@ function BackendCoinsUpdate()
|
|||
}
|
||||
|
||||
$coin->save();
|
||||
|
||||
if ($coin->available < 0) {
|
||||
// can happen after a payout (waiting first confirmation)
|
||||
BackendUpdatePoolBalances($coin->id);
|
||||
}
|
||||
// debuglog(" end $coin->name");
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue