Fix cursor ordering
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
parent
ae9b82a721
commit
deb58491ca
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ CCoinsViewCursor *CCoinsViewDB::Cursor() const
|
|||
|
||||
CCoinsViewDBCursor::CCoinsViewDBCursor(const uint256 &hashBlockIn, const CCoinsViewDB* view)
|
||||
: CCoinsViewCursor(hashBlockIn), owner(view),
|
||||
query(owner->db << "SELECT txID, txN, isCoinbase, blockHeight, amount, script FROM unspent")
|
||||
query(owner->db << "SELECT txID, txN, isCoinbase, blockHeight, amount, script FROM unspent ORDER BY txID ASC, txN ASC")
|
||||
{
|
||||
iter = query.begin();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue