mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-29 06:40:41 +00:00
backend: fix a wrong filter to detect unnotified blocks
This commit is contained in:
parent
688708139f
commit
12986518a7
1 changed files with 3 additions and 1 deletions
|
@ -220,7 +220,9 @@ function BackendBlockFind2()
|
|||
|
||||
$blockext = $remote->getblock($transaction['blockhash']);
|
||||
|
||||
$db_block = getdbosql('db_blocks', "blockhash='{$transaction['blockhash']}' OR height={$blockext['height']}");
|
||||
$db_block = getdbosql('db_blocks', "coin_id=:id AND (blockhash=:hash OR height=:height)",
|
||||
array(':id'=>$coin->id, ':hash'=>$transaction['blockhash'], ':height'=>$blockext['height'])
|
||||
);
|
||||
if($db_block) continue;
|
||||
|
||||
if ($coin->symbol == 'DCR')
|
||||
|
|
Loading…
Add table
Reference in a new issue