mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
backend: keep blocks history at least 7 days
This commit is contained in:
parent
b114a1c66f
commit
ca974e661f
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ function BackendQuickClean()
|
|||
|
||||
foreach($coins as $coin)
|
||||
{
|
||||
$delay = time() - 24*60*60;
|
||||
if ($coin->symbol=='DCR') $delay = time() - 7*24*60*60;
|
||||
$delay = time() - 7*24*60*60;
|
||||
|
||||
$id = dboscalar("select id from blocks where coin_id=$coin->id and time<$delay and
|
||||
id not in (select blockid from earnings where coinid=$coin->id)
|
||||
|
|
Loading…
Add table
Reference in a new issue