{"action":"created","issue":{"url":"https://api.github.com/repos/JoinMarket-Org/joinmarket/issues/37","labels_url":"https://api.github.com/repos/JoinMarket-Org/joinmarket/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/JoinMarket-Org/joinmarket/issues/37/comments","events_url":"https://api.github.com/repos/JoinMarket-Org/joinmarket/issues/37/events","html_url":"https://github.com/JoinMarket-Org/joinmarket/issues/37","id":119791614,"number":37,"title":"Bug in wallet generation on startup","user":{"login":"AdamISZ","id":4278257,"avatar_url":"https://avatars.githubusercontent.com/u/4278257?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamISZ","html_url":"https://github.com/AdamISZ","followers_url":"https://api.github.com/users/AdamISZ/followers","following_url":"https://api.github.com/users/AdamISZ/following{/other_user}","gists_url":"https://api.github.com/users/AdamISZ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamISZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamISZ/subscriptions","organizations_url":"https://api.github.com/users/AdamISZ/orgs","repos_url":"https://api.github.com/users/AdamISZ/repos","events_url":"https://api.github.com/users/AdamISZ/events{/privacy}","received_events_url":"https://api.github.com/users/AdamISZ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JoinMarket-Org/joinmarket/labels/imported","name":"imported","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-01T19:40:43Z","updated_at":"2015-12-01T19:41:00Z","closed_at":null,"body":"<a href=\"https://github.com/AdamISZ\"><img src=\"https://avatars.githubusercontent.com/u/4278257?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [AdamISZ](https://github.com/AdamISZ)**\n_Tuesday Feb 03, 2015 at 21:00 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT_\n_Originally opened as https://github.com/chris-belcher/joinmarket/issues/37_\n\n----\n\nWhen the wallet synchronisation runs at startup, it picks up utxos for the wallet which are in existing *unconfirmed* transactions, which can of course lead to pushtx() failure.\r\n\r\nI saw this happen for 1bb51f2af3e0a05c37151f337c4a58a8294cc7f78af4cdc06d645530cfd0b98b and aaaf6f710e73740f1e413111b338d4b53a8209d8def2010d09c4adda50bc9150.\r\naaa was still unconfirmed when I started another sendpayment and outpoint 1 from 1bb was recorded as part of the wallet, so the pushtx() for the new tx failed.\r\n\r\nIt seems that http://tbtc.blockr.io/api/v1/address/unspent/(address) does *not* show transactions in the list with zero confirmations (I just tried briefly). If it did, I guess it would explain why that utxo showed up in the wallet.\n"},"comment":{"url":"https://api.github.com/repos/JoinMarket-Org/joinmarket/issues/comments/161073786","html_url":"https://github.com/JoinMarket-Org/joinmarket/issues/37#issuecomment-161073786","issue_url":"https://api.github.com/repos/JoinMarket-Org/joinmarket/issues/37","id":161073786,"user":{"login":"AdamISZ","id":4278257,"avatar_url":"https://avatars.githubusercontent.com/u/4278257?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamISZ","html_url":"https://github.com/AdamISZ","followers_url":"https://api.github.com/users/AdamISZ/followers","following_url":"https://api.github.com/users/AdamISZ/following{/other_user}","gists_url":"https://api.github.com/users/AdamISZ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamISZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamISZ/subscriptions","organizations_url":"https://api.github.com/users/AdamISZ/orgs","repos_url":"https://api.github.com/users/AdamISZ/repos","events_url":"https://api.github.com/users/AdamISZ/events{/privacy}","received_events_url":"https://api.github.com/users/AdamISZ/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T19:41:00Z","updated_at":"2015-12-01T19:41:00Z","body":"<a href=\"https://github.com/AdamISZ\"><img src=\"https://avatars.githubusercontent.com/u/4278257?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [AdamISZ](https://github.com/AdamISZ)**\n_Tuesday Feb 03, 2015 at 21:33 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT_\n\n----\n\nI guess using /tx/info as in the example: \r\n\r\nhttp://btc.blockr.io/api/v1/tx/info/60c1f1a3160042152114e2bba45600a5045711c3a8a458016248acec59653471,4addbc5ec75e087a44a34e8c1c3bd05fd495771072879a89a8c9aaa356255cb2 \r\n\r\nwould give us what we want, as there's a \"is_unconfirmed\" field.\n"}}