{"action":"created","issue":{"url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/1271","repository_url":"https://api.github.com/repos/bigchaindb/bigchaindb","labels_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/1271/labels{/name}","comments_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/1271/comments","events_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/1271/events","html_url":"https://github.com/bigchaindb/bigchaindb/issues/1271","id":213332599,"number":1271,"title":"double spend incorrectly reported","user":{"login":"sbellem","id":125458,"avatar_url":"https://avatars1.githubusercontent.com/u/125458?v=3","gravatar_id":"","url":"https://api.github.com/users/sbellem","html_url":"https://github.com/sbellem","followers_url":"https://api.github.com/users/sbellem/followers","following_url":"https://api.github.com/users/sbellem/following{/other_user}","gists_url":"https://api.github.com/users/sbellem/gists{/gist_id}","starred_url":"https://api.github.com/users/sbellem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbellem/subscriptions","organizations_url":"https://api.github.com/users/sbellem/orgs","repos_url":"https://api.github.com/users/sbellem/repos","events_url":"https://api.github.com/users/sbellem/events{/privacy}","received_events_url":"https://api.github.com/users/sbellem/received_events","type":"User","site_admin":false},"labels":[{"id":323044732,"url":"https://api.github.com/repos/bigchaindb/bigchaindb/labels/BUG","name":"BUG","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":{"login":"sbellem","id":125458,"avatar_url":"https://avatars1.githubusercontent.com/u/125458?v=3","gravatar_id":"","url":"https://api.github.com/users/sbellem","html_url":"https://github.com/sbellem","followers_url":"https://api.github.com/users/sbellem/followers","following_url":"https://api.github.com/users/sbellem/following{/other_user}","gists_url":"https://api.github.com/users/sbellem/gists{/gist_id}","starred_url":"https://api.github.com/users/sbellem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbellem/subscriptions","organizations_url":"https://api.github.com/users/sbellem/orgs","repos_url":"https://api.github.com/users/sbellem/repos","events_url":"https://api.github.com/users/sbellem/events{/privacy}","received_events_url":"https://api.github.com/users/sbellem/received_events","type":"User","site_admin":false},"assignees":[{"login":"sbellem","id":125458,"avatar_url":"https://avatars1.githubusercontent.com/u/125458?v=3","gravatar_id":"","url":"https://api.github.com/users/sbellem","html_url":"https://github.com/sbellem","followers_url":"https://api.github.com/users/sbellem/followers","following_url":"https://api.github.com/users/sbellem/following{/other_user}","gists_url":"https://api.github.com/users/sbellem/gists{/gist_id}","starred_url":"https://api.github.com/users/sbellem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbellem/subscriptions","organizations_url":"https://api.github.com/users/sbellem/orgs","repos_url":"https://api.github.com/users/sbellem/repos","events_url":"https://api.github.com/users/sbellem/events{/privacy}","received_events_url":"https://api.github.com/users/sbellem/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-03-10T12:48:41Z","updated_at":"2017-03-10T13:32:07Z","closed_at":null,"body":"From [jmduque on gitter](https://gitter.im/bigchaindb/bigchaindb?at=58c20249de504908226c4835) (with small edits to help clarifying):\r\n\r\n> This is an issue with the implementation of the [`get_spent()`](https://github.com/bigchaindb/bigchaindb/blob/master/bigchaindb/backend/mongodb/query.py#L151-L167) query for MongoDB.\r\n> For the RethinkDB implementation the issue does NOT arise.\r\n>\r\n> ### How to duplicate the bug?\r\n> 1. Create a divisible asset (outputs: tx1-0)\r\n> 2. Transfer 2 amount to user A and 2 amount to user B (input: tx1-0, outpus: tx2-0/tx2-1)\r\n> 3. Transfer another 1 Amount to A (inputs: tx1-0, ouputs: tx3-0/tx3-1)\r\n> 4. Transfer 3 Amount from user A to user B (inputs: tx2-1/tx3-0, outputs: tx4-0/tx4-1)\r\n> 5. Transfer 2 Amount from user B to user A (inputs: tx2-0, outputs: tx5-0)\r\n\r\nSee report by jmduque on gitter: https://gitter.im/bigchaindb/bigchaindb?at=58c12bf200c00c3d4fe02c88 for all details."},"comment":{"url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/comments/285669515","html_url":"https://github.com/bigchaindb/bigchaindb/issues/1271#issuecomment-285669515","issue_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/1271","id":285669515,"user":{"login":"ttmc","id":1210951,"avatar_url":"https://avatars2.githubusercontent.com/u/1210951?v=3","gravatar_id":"","url":"https://api.github.com/users/ttmc","html_url":"https://github.com/ttmc","followers_url":"https://api.github.com/users/ttmc/followers","following_url":"https://api.github.com/users/ttmc/following{/other_user}","gists_url":"https://api.github.com/users/ttmc/gists{/gist_id}","starred_url":"https://api.github.com/users/ttmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttmc/subscriptions","organizations_url":"https://api.github.com/users/ttmc/orgs","repos_url":"https://api.github.com/users/ttmc/repos","events_url":"https://api.github.com/users/ttmc/events{/privacy}","received_events_url":"https://api.github.com/users/ttmc/received_events","type":"User","site_admin":false},"created_at":"2017-03-10T13:32:07Z","updated_at":"2017-03-10T13:32:07Z","body":"I drew a little diagram to understand how all the transactions are related:\r\n\r\n![office lens 20170310-142642](https://cloud.githubusercontent.com/assets/1210951/23797022/23ce4988-059e-11e7-9239-73a41b6b36df.jpg)\r\n"}}
{"actor":{"display_login":"ttmc"}}