kbs1 background process fix

This commit is contained in:
Arionum
2018-02-18 21:16:11 +02:00
parent ec153dd099
commit 0170559fd5
5 changed files with 16 additions and 8 deletions

View File

@@ -334,7 +334,7 @@ $forgotten=$current['height']-$_config['sanity_rebroadcast_height'];
$r=$db->run("SELECT id FROM mempool WHERE height<:forgotten ORDER by val DESC LIMIT 10",array(":forgotten"=>$forgotten));
foreach($r as $x){
$x['id']=san($x['id']);
system("php propagate.php transaction $x[id] &>/dev/null &");
system("php propagate.php transaction $x[id] > /dev/null 2>&1 &");
$db->run("UPDATE mempool SET height=:current WHERE id=:id",array(":id"=>$x['id'], ":current"=>$current['height']));
}