{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/16496","repository_url":"https://api.github.com/repos/ethereum/go-ethereum","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/16496/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/16496/comments","events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/16496/events","html_url":"https://github.com/ethereum/go-ethereum/issues/16496","id":313744269,"number":16496,"title":"Geth falsly reporting zero balance on synced transaction","user":{"login":"rritoch","id":4718217,"avatar_url":"https://avatars2.githubusercontent.com/u/4718217?v=4","gravatar_id":"","url":"https://api.github.com/users/rritoch","html_url":"https://github.com/rritoch","followers_url":"https://api.github.com/users/rritoch/followers","following_url":"https://api.github.com/users/rritoch/following{/other_user}","gists_url":"https://api.github.com/users/rritoch/gists{/gist_id}","starred_url":"https://api.github.com/users/rritoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rritoch/subscriptions","organizations_url":"https://api.github.com/users/rritoch/orgs","repos_url":"https://api.github.com/users/rritoch/repos","events_url":"https://api.github.com/users/rritoch/events{/privacy}","received_events_url":"https://api.github.com/users/rritoch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-12T14:10:25Z","updated_at":"2018-05-22T15:25:45Z","closed_at":null,"author_association":"NONE","body":"Geth falsly reporting zero balance on synced transaction. The \"attach\" session below under actual behavior verifies that geth is not functioning properly.\r\n\r\n\r\n#### System information\r\n\r\nGeth version: 1.8.3-stable\r\nOS & Version: Windows/Linux\r\nCommit hash : 329ac18ef617d0238f71637bffe78f028b0f13f7\r\n\r\nVersion: 1.8.3-stable\r\nGit Commit: 329ac18ef617d0238f71637bffe78f028b0f13f7\r\nArchitecture: amd64\r\nProtocol Versions: [63 62]\r\nNetwork Id: 1\r\nGo Version: go1.10\r\nOperating System: windows\r\nGOPATH=\r\nGOROOT=C:\\go\r\n\r\n\r\n#### Expected behaviour\r\n\r\n`eth.getBalance(\"0x50414d4d3d26048f6d4461730447f843012ad3af\")` returning non-zero balance\r\n\r\n#### Actual behaviour\r\n\r\n```\r\n\r\n> eth.accounts\r\n[\"0x2062f1ec1b10aece7ae6a8e3d25e4ddd78322bf0\", \"0x50414d4d3d26048f6d4461730447f843012ad3af\"]\r\n> eth.getBalance(eth.accounts[1])\r\n0\r\n> eth.getTransaction(\"0xb78bef37c80edb552ce33d544e5c13ce83e40bbea1892fc4377e5e881b69c127\")\r\n{\r\n  blockHash: \"0x46847dc4322ef5a31e2fdfa57e96fa6c84c5482c7b9ed553594c7259e3a03bb5\",\r\n  blockNumber: 5372932,\r\n  from: \"0x2a65aca4d5fc5b5c859090a6c34d164135398226\",\r\n  gas: 50000,\r\n  gasPrice: 4000000000,\r\n  hash: \"0xb78bef37c80edb552ce33d544e5c13ce83e40bbea1892fc4377e5e881b69c127\",\r\n  input: \"0x\",\r\n  nonce: 3264462,\r\n  r: \"0xc2b3aaeb7bd36f167523070cb881f98068f628b05bd6baf320061d129ed7da08\",\r\n  s: \"0x44d5c4751c533d69d7276eacca268f80dee02604765319761340959ef7b4524a\",\r\n  to: \"0x50414d4d3d26048f6d4461730447f843012ad3af\",\r\n  transactionIndex: 7,\r\n  v: \"0x26\",\r\n  value: 50086850000000000\r\n}\r\n>\r\n\r\n```\r\n#### Steps to reproduce the behaviour\r\n\r\nAttempt to use geth to view account balance\r\n\r\n#### Backtrace\r\n\r\n````\r\n[backtrace]\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/comments/391033301","html_url":"https://github.com/ethereum/go-ethereum/issues/16496#issuecomment-391033301","issue_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/16496","id":391033301,"user":{"login":"rritoch","id":4718217,"avatar_url":"https://avatars2.githubusercontent.com/u/4718217?v=4","gravatar_id":"","url":"https://api.github.com/users/rritoch","html_url":"https://github.com/rritoch","followers_url":"https://api.github.com/users/rritoch/followers","following_url":"https://api.github.com/users/rritoch/following{/other_user}","gists_url":"https://api.github.com/users/rritoch/gists{/gist_id}","starred_url":"https://api.github.com/users/rritoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rritoch/subscriptions","organizations_url":"https://api.github.com/users/rritoch/orgs","repos_url":"https://api.github.com/users/rritoch/repos","events_url":"https://api.github.com/users/rritoch/events{/privacy}","received_events_url":"https://api.github.com/users/rritoch/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T15:25:45Z","updated_at":"2018-05-22T15:25:45Z","author_association":"NONE","body":"I'm still syncing.  I'd say this is a scam to sell SSD drives but I'm seeing complaints here regarding SSD's also.  So here we are, 28 days later, syncing 24/7 on mirrord storage space (windows raid) and not yet synced.\r\n\r\n{\r\n  currentBlock: 4474824,\r\n  highestBlock: 5658093,\r\n  knownStates: 0,\r\n  pulledStates: 0,\r\n  startingBlock: 4474794\r\n}\r\n\r\nTo be exact I'm 202 days behind the head of this garbage blockchain technology.  In this time I've been able to learn the GO language and start hacking my wallet.  The paranoid locking is obviously the problem but unfortunately I don't have a good enough understanding of the data flow to know which code I can unlock.  I did increase the internal \"ideal batch size\" to 1Mb.  Secondly I'd say that 2Mb per file is way too small considering the resource manager says there's an average of about 8Mb per second being transferred to the Hard drive, I don't know how many file handles it has open but based on the file size it must be at least 4 so the hard drive is likely wasting a lot of time waiting for the disk to spin around to where the files are.  If only I could find a way to resize this database I would NEVER go with 2Mb files, maybe 64/128Mb, but at 2Mb I doubt windows explorer can even open the folder at this point. This architecture is either based on incompetance or a scam to sell hardware. Whatever the case it WILL be hacked, code this bad can easily be hacked.  I already found at least one bug which I know would cause the syncing to freeze because a lock is created and never unlocked... Just bad code and bad architecture, that is what is wrong with geth.\r\n\r\n"}}
{"actor":{"display_login":"rritoch"}}