This commit is contained in:
arionum
2019-03-24 09:44:31 +02:00
committed by GitHub
parent cbe27cf45a
commit 489f048438

View File

@@ -708,13 +708,13 @@ if ($_config['disable_repropagation'] == false) {
$forgotten = $current['height'] - $_config['sanity_rebroadcast_height'];
$r1 = $db->run(
"SELECT id FROM mempool WHERE height<:forgotten ORDER by val DESC LIMIT 10",
[":forgotten" => $forgotten];
[":forgotten" => $forgotten]);
// getting some random transactions as well
$r2 = $db->run(
"SELECT id FROM mempool WHERE height<:forgotten ORDER by RAND() LIMIT 10",
[":forgotten" => $forgotten];
[":forgotten" => $forgotten]);
$r=array_merge($r1,$r2);
);
_log("Rebroadcasting external transactions - ".count($r));