{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/9078","repository_url":"https://api.github.com/repos/bitcoin/bitcoin","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/9078/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/9078/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/9078/events","html_url":"https://github.com/bitcoin/bitcoin/issues/9078","id":187192561,"number":9078,"title":"account balance inconsistency in 0.13.1","user":{"login":"sturles","id":15728135,"avatar_url":"https://avatars.githubusercontent.com/u/15728135?v=3","gravatar_id":"","url":"https://api.github.com/users/sturles","html_url":"https://github.com/sturles","followers_url":"https://api.github.com/users/sturles/followers","following_url":"https://api.github.com/users/sturles/following{/other_user}","gists_url":"https://api.github.com/users/sturles/gists{/gist_id}","starred_url":"https://api.github.com/users/sturles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sturles/subscriptions","organizations_url":"https://api.github.com/users/sturles/orgs","repos_url":"https://api.github.com/users/sturles/repos","events_url":"https://api.github.com/users/sturles/events{/privacy}","received_events_url":"https://api.github.com/users/sturles/received_events","type":"User","site_admin":false},"labels":[{"id":149424,"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/Wallet","name":"Wallet","color":"02d7e1","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-03T21:16:42Z","updated_at":"2016-11-11T09:02:06Z","closed_at":"2016-11-11T09:02:06Z","body":"When using Bitcoin version v0.13.99.0-86f9e3d compiled myself with libdb 5.3 on Debian Jessie, AMD64, the balances reported by listaccounts become inconsistent:\r\n\r\n$ bitcoin-cli listaccounts | grep -v \\ 0.00000000\r\n{\r\n  \"\": -27.58320234,\r\n  \"PP\": 4.00584319,\r\n}\r\n$ bitcoin-cli getbalance\r\n9.43349050\r\n\r\nWhen reverting back to an older version (Bitcoin version v0.11.99.0-32520bf-dirty), the balance becomes correct again:\r\n\r\n$ bitcoin-cli listaccounts | grep -v \\ 0.00000000\r\n{\r\n  \"\": 5.32762789,\r\n  \"PP\": 4.10586261,\r\n}\r\n\r\nThe sum equals my total balance.\r\n\r\nThis happens on AMD64.  I tried compiling the the same version on an armv7l CPU, using approximately the same wallet (from an older backup), and the balances there are reported correctly.  Either the inconsistency has shown up later, or due to using this wallet backup on the ARM for some transaction during downtime on the AMD64.\r\n\r\nI get most of my incoming BTC to other accounts, and move them to \"\" when paid for.\r\n\r\nI have rolled git back and forward in a tedious search for the exact commit causing this bug.  I found that the bug is not present at 1b5118bfa0d94dbc0f3d7803c3e68626b0a694ee, but shows up at the next commit: 30c2d8c635c41149b7184ea8471121c53042444c.  This is a merge of pull request #7105.\r\n\r\nSomething in pull request #7105 is causing the sum of account balances to become wrong, possibly only when it discovers outgoing wallet transactions created on a different node."},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/259912343","html_url":"https://github.com/bitcoin/bitcoin/issues/9078#issuecomment-259912343","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/9078","id":259912343,"user":{"login":"sturles","id":15728135,"avatar_url":"https://avatars.githubusercontent.com/u/15728135?v=3","gravatar_id":"","url":"https://api.github.com/users/sturles","html_url":"https://github.com/sturles","followers_url":"https://api.github.com/users/sturles/followers","following_url":"https://api.github.com/users/sturles/following{/other_user}","gists_url":"https://api.github.com/users/sturles/gists{/gist_id}","starred_url":"https://api.github.com/users/sturles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sturles/subscriptions","organizations_url":"https://api.github.com/users/sturles/orgs","repos_url":"https://api.github.com/users/sturles/repos","events_url":"https://api.github.com/users/sturles/events{/privacy}","received_events_url":"https://api.github.com/users/sturles/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T09:02:06Z","updated_at":"2016-11-11T09:02:06Z","body":"A rescan fixed it.\r\n\r\n@pstratem the API currently forces the account system to be used.  I use sendmany a lot, which requires an account to send from as the first argument.  Therefore I can't stop using it."}}
{"actor":{"display_login":"sturles"}}