mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
decred: listtransactions order is finally like others
This commit is contained in:
parent
1f9bfd006a
commit
7aa93d684a
2 changed files with 6 additions and 3 deletions
|
@ -395,7 +395,8 @@ if ($DCR) {
|
||||||
if ($lastday == '' && count($txs) == $maxrows)
|
if ($lastday == '' && count($txs) == $maxrows)
|
||||||
$lastday = strftime('%F', $tx['time']);
|
$lastday = strftime('%F', $tx['time']);
|
||||||
}
|
}
|
||||||
ksort($txs_array); // reversed order
|
if ($info['version'] < 1010200)
|
||||||
|
ksort($txs_array); // was in reversed order
|
||||||
}
|
}
|
||||||
|
|
||||||
$rows = 0;
|
$rows = 0;
|
||||||
|
|
|
@ -179,7 +179,8 @@ if (!empty($txs_array)) {
|
||||||
if ($lastday == '' && count($txs) == $maxrows)
|
if ($lastday == '' && count($txs) == $maxrows)
|
||||||
$lastday = strftime('%F', arraySafeVal($tx,'blocktime', $tx['time']));
|
$lastday = strftime('%F', arraySafeVal($tx,'blocktime', $tx['time']));
|
||||||
}
|
}
|
||||||
ksort($txs_array);
|
if ($info['version'] < 1010200)
|
||||||
|
ksort($txs_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($tickets)) foreach ($tickets['hashes'] as $n => $txid) {
|
if (!empty($tickets)) foreach ($tickets['hashes'] as $n => $txid) {
|
||||||
|
@ -200,7 +201,8 @@ if (!empty($tickets)) foreach ($tickets['hashes'] as $n => $txid) {
|
||||||
$stx['stx'] = $stx;
|
$stx['stx'] = $stx;
|
||||||
$txs_array[$k] = $stx;
|
$txs_array[$k] = $stx;
|
||||||
}
|
}
|
||||||
ksort($txs_array);
|
if ($info['version'] < 1010200)
|
||||||
|
ksort($txs_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
$rows = 0;
|
$rows = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue