mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

* Problem: Outputs API doesn't respond with correct unspent/spent outputs Solution: Fix fastquery such that embedded document is queried properly * Problem: key order agnostic queries not implemented Solution: get_spent queries embedded documents which respect key order. This is not expected by the application hence the query should be altered to query any kind of key order * Problem: Mongo query for get_spent too complicated Solution: Simplify query using $elemMatch * Problem: No test for checking mixed spent outputs Solution: Add test for `get_spending_transactions` to check that correct matching is done when querying documents with multiple inputs * Problem: tranasction ids not assert when getting spent outputs Solution: assert tranasction ids