mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-20 18:09:54 +00:00
shares: fix for last commit
This commit is contained in:
parent
db2efc310d
commit
deeccfe011
1 changed files with 6 additions and 2 deletions
|
@ -51,8 +51,12 @@ function BackendBlockNew($coin, $db_block)
|
|||
}
|
||||
|
||||
$delay = time() - 5*60;
|
||||
dborun("DELETE FROM shares WHERE algo=:algo AND time < :delay",
|
||||
array(':algo'=>$coin->algo,':delay'=>$delay));
|
||||
$sqlCond = "time < $delay";
|
||||
if(!YAAMP_ALLOW_EXCHANGE) // only one coin mined
|
||||
$sqlCond .= " AND coinid = ".intval($coin->id);
|
||||
|
||||
dborun("DELETE FROM shares WHERE algo=:algo AND $sqlCond",
|
||||
array(':algo'=>$coin->algo));
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Reference in a new issue