{"action":"created","issue":{"url":"https://api.github.com/repos/adshares/ads/issues/59","repository_url":"https://api.github.com/repos/adshares/ads","labels_url":"https://api.github.com/repos/adshares/ads/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/adshares/ads/issues/59/comments","events_url":"https://api.github.com/repos/adshares/ads/issues/59/events","html_url":"https://github.com/adshares/ads/issues/59","id":330229499,"node_id":"MDU6SXNzdWUzMzAyMjk0OTk=","number":59,"title":"incorrect balance after change node status","user":{"login":"PawelPodkalicki","id":38037054,"node_id":"MDQ6VXNlcjM4MDM3MDU0","avatar_url":"https://avatars2.githubusercontent.com/u/38037054?v=4","gravatar_id":"","url":"https://api.github.com/users/PawelPodkalicki","html_url":"https://github.com/PawelPodkalicki","followers_url":"https://api.github.com/users/PawelPodkalicki/followers","following_url":"https://api.github.com/users/PawelPodkalicki/following{/other_user}","gists_url":"https://api.github.com/users/PawelPodkalicki/gists{/gist_id}","starred_url":"https://api.github.com/users/PawelPodkalicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PawelPodkalicki/subscriptions","organizations_url":"https://api.github.com/users/PawelPodkalicki/orgs","repos_url":"https://api.github.com/users/PawelPodkalicki/repos","events_url":"https://api.github.com/users/PawelPodkalicki/events{/privacy}","received_events_url":"https://api.github.com/users/PawelPodkalicki/received_events","type":"User","site_admin":false},"labels":[{"id":954987485,"node_id":"MDU6TGFiZWw5NTQ5ODc0ODU=","url":"https://api.github.com/repos/adshares/ads/labels/Bug","name":"Bug","color":"F44336","default":false},{"id":954987483,"node_id":"MDU6TGFiZWw5NTQ5ODc0ODM=","url":"https://api.github.com/repos/adshares/ads/labels/QA","name":"QA","color":"FFC164","default":false}],"state":"open","locked":false,"assignee":{"login":"jzemlo","id":19405279,"node_id":"MDQ6VXNlcjE5NDA1Mjc5","avatar_url":"https://avatars0.githubusercontent.com/u/19405279?v=4","gravatar_id":"","url":"https://api.github.com/users/jzemlo","html_url":"https://github.com/jzemlo","followers_url":"https://api.github.com/users/jzemlo/followers","following_url":"https://api.github.com/users/jzemlo/following{/other_user}","gists_url":"https://api.github.com/users/jzemlo/gists{/gist_id}","starred_url":"https://api.github.com/users/jzemlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzemlo/subscriptions","organizations_url":"https://api.github.com/users/jzemlo/orgs","repos_url":"https://api.github.com/users/jzemlo/repos","events_url":"https://api.github.com/users/jzemlo/events{/privacy}","received_events_url":"https://api.github.com/users/jzemlo/received_events","type":"User","site_admin":false},"assignees":[{"login":"jzemlo","id":19405279,"node_id":"MDQ6VXNlcjE5NDA1Mjc5","avatar_url":"https://avatars0.githubusercontent.com/u/19405279?v=4","gravatar_id":"","url":"https://api.github.com/users/jzemlo","html_url":"https://github.com/jzemlo","followers_url":"https://api.github.com/users/jzemlo/followers","following_url":"https://api.github.com/users/jzemlo/following{/other_user}","gists_url":"https://api.github.com/users/jzemlo/gists{/gist_id}","starred_url":"https://api.github.com/users/jzemlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzemlo/subscriptions","organizations_url":"https://api.github.com/users/jzemlo/orgs","repos_url":"https://api.github.com/users/jzemlo/repos","events_url":"https://api.github.com/users/jzemlo/events{/privacy}","received_events_url":"https://api.github.com/users/jzemlo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-07T11:23:41Z","updated_at":"2018-06-11T11:34:22Z","closed_at":null,"author_association":"NONE","body":"Fee for change node status (set/unset) is `0.00010000000`.\r\n\r\nBelow is event from log:\r\n```\r\n{\r\n\t\t\t\"time\": \"1528370053\",\r\n\t\t\t\"date\": \"2018-06-07 13:14:13\",\r\n\t\t\t\"type_no\": \"12\",\r\n\t\t\t\"confirmed\": \"no\",\r\n\t\t\t\"type\": \"set_node_status\",\r\n\t\t\t\"node\": \"1\",\r\n\t\t\t\"account\": \"0\",\r\n\t\t\t\"address\": \"0001-00000000-9B6F\",\r\n\t\t\t\"node_msid\": \"2\",\r\n\t\t\t\"node_mpos\": \"1\",\r\n\t\t\t\"account_msid\": \"1\",\r\n\t\t\t\"amount\": \"0.00000000001\",\r\n\t\t\t\"sender_balance\": \"1398.89861432848\",\r\n\t\t\t\"sender_amount\": \"0.00009008255\",\r\n\t\t\t\"sender_fee\": \"1398.89861432752\",\r\n\t\t\t\"sender_public_key_prefix_6\": \"00683A7F0000\",\r\n\t\t\t\"sender_status\": \"10256\",\r\n\t\t\t\"inout\": \"out\",\r\n\t\t\t\"id\": \"0001:00000002:0001\"\r\n\t\t}\r\n```\r\n\r\n```\r\n13:14:14.155 [main] INFO  net.adshares.ads.qa.util.LogChecker - NODE 1\r\n13:14:14.156 [main] INFO  net.adshares.ads.qa.util.LogChecker -         node_started:19999999.99979984000\r\n13:14:14.156 [main] INFO  net.adshares.ads.qa.util.LogChecker -      set_node_status:-1398.89861432752\r\n13:14:14.156 [main] INFO  net.adshares.ads.qa.util.LogChecker - balanceObj: 19999999.99969984000\r\n13:14:14.156 [main] INFO  net.adshares.ads.qa.util.LogChecker - balanceArr: 19998601.10118551248\r\n13:14:14.156 [main] INFO  net.adshares.ads.qa.util.LogChecker - diff      : 1398.89851432752\r\n```\r\n\r\nDifference between `account.balance` and sum of events from log is equal exactly:\r\n\r\ndiff = (sender_fee of set_node_status event) - `0.00010000000`"},"comment":{"url":"https://api.github.com/repos/adshares/ads/issues/comments/396212801","html_url":"https://github.com/adshares/ads/issues/59#issuecomment-396212801","issue_url":"https://api.github.com/repos/adshares/ads/issues/59","id":396212801,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjIxMjgwMQ==","user":{"login":"PawelPodkalicki","id":38037054,"node_id":"MDQ6VXNlcjM4MDM3MDU0","avatar_url":"https://avatars2.githubusercontent.com/u/38037054?v=4","gravatar_id":"","url":"https://api.github.com/users/PawelPodkalicki","html_url":"https://github.com/PawelPodkalicki","followers_url":"https://api.github.com/users/PawelPodkalicki/followers","following_url":"https://api.github.com/users/PawelPodkalicki/following{/other_user}","gists_url":"https://api.github.com/users/PawelPodkalicki/gists{/gist_id}","starred_url":"https://api.github.com/users/PawelPodkalicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PawelPodkalicki/subscriptions","organizations_url":"https://api.github.com/users/PawelPodkalicki/orgs","repos_url":"https://api.github.com/users/PawelPodkalicki/repos","events_url":"https://api.github.com/users/PawelPodkalicki/events{/privacy}","received_events_url":"https://api.github.com/users/PawelPodkalicki/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T11:34:22Z","updated_at":"2018-06-11T11:34:22Z","author_association":"NONE","body":"Solved in 4c5dc5edfaafed9ceb08fdc05eb08df85ea4fce0\r\n\r\n```\r\n13:31:33.599 [main] INFO  net.adshares.ads.qa.util.LogChecker -    unset_node_status:-0.00010000000\r\n13:31:33.600 [main] INFO  net.adshares.ads.qa.util.LogChecker -      set_node_status:-0.00010000000\r\n```"}}
{"actor":{"display_login":"PawelPodkalicki"}}