{"action":"created","issue":{"url":"https://api.github.com/repos/CityOfZion/neo-python/issues/578","repository_url":"https://api.github.com/repos/CityOfZion/neo-python","labels_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/578/comments","events_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/578/events","html_url":"https://github.com/CityOfZion/neo-python/issues/578","id":354140231,"node_id":"MDU6SXNzdWUzNTQxNDAyMzE=","number":578,"title":"`getaccountstate` returns the wrong balance of NEO","user":{"login":"jseagrave21","id":40873301,"node_id":"MDQ6VXNlcjQwODczMzAx","avatar_url":"https://avatars0.githubusercontent.com/u/40873301?v=4","gravatar_id":"","url":"https://api.github.com/users/jseagrave21","html_url":"https://github.com/jseagrave21","followers_url":"https://api.github.com/users/jseagrave21/followers","following_url":"https://api.github.com/users/jseagrave21/following{/other_user}","gists_url":"https://api.github.com/users/jseagrave21/gists{/gist_id}","starred_url":"https://api.github.com/users/jseagrave21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseagrave21/subscriptions","organizations_url":"https://api.github.com/users/jseagrave21/orgs","repos_url":"https://api.github.com/users/jseagrave21/repos","events_url":"https://api.github.com/users/jseagrave21/events{/privacy}","received_events_url":"https://api.github.com/users/jseagrave21/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-08-26T23:52:48Z","updated_at":"2018-09-26T01:58:36Z","closed_at":"2018-09-26T01:58:36Z","author_association":"CONTRIBUTOR","body":"### Current behavior\r\n`getaccounstate` returns the wrong balance of NEO. NEO-cli returns the correct balance.\r\nGAS balance seems to be correct\r\n\r\nPM me on Discord if you want a specific address to query (I only figured this out because I queried one of my addresses)\r\n\r\n### Expected behavior\r\n\r\n`getaccountstate` should return the correct balance of both NEO and GAS\r\n\r\n### How to reproduce\r\n\r\nYou can use this script in Python to test if the balances match:\r\n\r\n```\r\nimport requests\r\n\r\nurl = \"http://108.252.121.18:10332\"\r\nbody = {\"jsonrpc\": \"2.0\",\"method\": \"getaccountstate\",\"params\": [\"<address>\"],\"id\": 2}\r\n\r\nreq = requests.post(url, json=body)\r\nreq = req.json()\r\ndata = req['result']\r\n\r\nprint('Python Data: ', data)\r\n\r\nurl = \"http://18.197.197.10:10332\"\r\nbody = {\"jsonrpc\": \"2.0\",\"method\": \"getaccountstate\",\"params\": [\"<address>\"],\"id\": 2}\r\n\r\nreq = requests.post(url, json=body)\r\nreq = req.json()\r\ndata = req['result']\r\n\r\nprint('NEO-cli: ', data)\r\n```\r\n\r\n\r\n### Your environment\r\n\r\nThis is based on live RPC calls\r\n"},"comment":{"url":"https://api.github.com/repos/CityOfZion/neo-python/issues/comments/424558910","html_url":"https://github.com/CityOfZion/neo-python/issues/578#issuecomment-424558910","issue_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/578","id":424558910,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDU1ODkxMA==","user":{"login":"jseagrave21","id":40873301,"node_id":"MDQ6VXNlcjQwODczMzAx","avatar_url":"https://avatars0.githubusercontent.com/u/40873301?v=4","gravatar_id":"","url":"https://api.github.com/users/jseagrave21","html_url":"https://github.com/jseagrave21","followers_url":"https://api.github.com/users/jseagrave21/followers","following_url":"https://api.github.com/users/jseagrave21/following{/other_user}","gists_url":"https://api.github.com/users/jseagrave21/gists{/gist_id}","starred_url":"https://api.github.com/users/jseagrave21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseagrave21/subscriptions","organizations_url":"https://api.github.com/users/jseagrave21/orgs","repos_url":"https://api.github.com/users/jseagrave21/repos","events_url":"https://api.github.com/users/jseagrave21/events{/privacy}","received_events_url":"https://api.github.com/users/jseagrave21/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T01:58:36Z","updated_at":"2018-09-26T01:58:36Z","author_association":"CONTRIBUTOR","body":"@localhuman with the most recent bootstrap file you posted\r\nhttps://s3.us-east-2.amazonaws.com/cityofzion/bootstrap_main/Main276xxxx.tar.gz, the issue appears resolved\r\n```\r\n\"balances\": {\r\n        \"0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7\": \"14.37532376\",\r\n        \"0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b\": \"264.0\"\r\n```\r\nI think it would be good to include this bootstrap file in the next neo-python release."}}
{"actor":{"display_login":"jseagrave21"}}