Skip to content

Commit

Permalink
Fixed a bug in HybridStorage.Blocks.cs:GetPaidBlocks().
Browse files Browse the repository at this point in the history
  • Loading branch information
bonesoul committed Sep 29, 2014
1 parent cabe060 commit 9690d6d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ public IList<IPersistedBlock> GetPaidBlocks(IPaginationQuery paginationQuery)
From Block b
INNER JOIN Payment as p ON p.Block = b.Height
WHERE b.Accounted = true and p.Completed = true
ORDER BY Height DESC LIMIT @offset, @count",
GROUP BY b.Height
ORDER BY b.Height DESC LIMIT @offset, @count",
new
{
offset = paginationQuery.Offset,
Expand Down

0 comments on commit 9690d6d

Please sign in to comment.