{"action":"created","issue":{"url":"https://api.github.com/repos/aionnetwork/aion_api/issues/28","repository_url":"https://api.github.com/repos/aionnetwork/aion_api","labels_url":"https://api.github.com/repos/aionnetwork/aion_api/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/aionnetwork/aion_api/issues/28/comments","events_url":"https://api.github.com/repos/aionnetwork/aion_api/issues/28/events","html_url":"https://github.com/aionnetwork/aion_api/issues/28","id":331495305,"node_id":"MDU6SXNzdWUzMzE0OTUzMDU=","number":28,"title":"getSyncInfo returns suspicios numbers for chainBestBlock - API v0.1.18","user":{"login":"centrys-otniel","id":37304045,"node_id":"MDQ6VXNlcjM3MzA0MDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/37304045?v=4","gravatar_id":"","url":"https://api.github.com/users/centrys-otniel","html_url":"https://github.com/centrys-otniel","followers_url":"https://api.github.com/users/centrys-otniel/followers","following_url":"https://api.github.com/users/centrys-otniel/following{/other_user}","gists_url":"https://api.github.com/users/centrys-otniel/gists{/gist_id}","starred_url":"https://api.github.com/users/centrys-otniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/centrys-otniel/subscriptions","organizations_url":"https://api.github.com/users/centrys-otniel/orgs","repos_url":"https://api.github.com/users/centrys-otniel/repos","events_url":"https://api.github.com/users/centrys-otniel/events{/privacy}","received_events_url":"https://api.github.com/users/centrys-otniel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"AionJayT","id":36162090,"node_id":"MDQ6VXNlcjM2MTYyMDkw","avatar_url":"https://avatars2.githubusercontent.com/u/36162090?v=4","gravatar_id":"","url":"https://api.github.com/users/AionJayT","html_url":"https://github.com/AionJayT","followers_url":"https://api.github.com/users/AionJayT/followers","following_url":"https://api.github.com/users/AionJayT/following{/other_user}","gists_url":"https://api.github.com/users/AionJayT/gists{/gist_id}","starred_url":"https://api.github.com/users/AionJayT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AionJayT/subscriptions","organizations_url":"https://api.github.com/users/AionJayT/orgs","repos_url":"https://api.github.com/users/AionJayT/repos","events_url":"https://api.github.com/users/AionJayT/events{/privacy}","received_events_url":"https://api.github.com/users/AionJayT/received_events","type":"User","site_admin":false},"assignees":[{"login":"AionJayT","id":36162090,"node_id":"MDQ6VXNlcjM2MTYyMDkw","avatar_url":"https://avatars2.githubusercontent.com/u/36162090?v=4","gravatar_id":"","url":"https://api.github.com/users/AionJayT","html_url":"https://github.com/AionJayT","followers_url":"https://api.github.com/users/AionJayT/followers","following_url":"https://api.github.com/users/AionJayT/following{/other_user}","gists_url":"https://api.github.com/users/AionJayT/gists{/gist_id}","starred_url":"https://api.github.com/users/AionJayT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AionJayT/subscriptions","organizations_url":"https://api.github.com/users/AionJayT/orgs","repos_url":"https://api.github.com/users/AionJayT/repos","events_url":"https://api.github.com/users/AionJayT/events{/privacy}","received_events_url":"https://api.github.com/users/AionJayT/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-06-12T08:51:29Z","updated_at":"2018-07-06T21:09:48Z","closed_at":null,"author_association":"NONE","body":"`API.getNet().syncInfo()` returns unexpected values - i.e. the reported chainBestBlock is too low. \r\n\r\nThese are the numbers reported by the Java API:\r\n`Syncing: true, chainBest: 405384, netBest: 405785`\r\n\r\nThese are the numbers reported by the web3 API:\r\n`aion-127.0.0.1:8545> eth.syncing`\r\n`{ currentBlock: 405785,`\r\n`  highestBlock: 405384,`\r\n`  startingBlock: 400437 }`\r\n\r\nThese are the last lines in the kernel's logs reffering to these node numbers:\r\n`18-06-12 09:46:49.482 INFO  SYNC [p2p-worker-9]: <import-status: node = c33d5a, hash = be4867, number = 405384, txs = 0, result = IMPORTED_BEST, time elapsed = 1 ms>`\r\n`18-06-12 10:58:36.047 INFO  SYNC [p2p-worker-6]: <import-status: node = c33d22, hash = 4c3620, number = 405785, txs = 0, result = IMPORTED_BEST, time elapsed = 0 ms>`\r\n\r\nOne thing that stood out is that the block reported as the chainBest was the first block processed by a `p2p-worker-*` thread after a batch of blocks processed by `sync-ib` nodes:\r\n![screenshot from 2018-06-12 11-37-19](https://user-images.githubusercontent.com/37304045/41279549-7748b502-6e35-11e8-8dd6-9de970668349.png)\r\n\r\n\r\nFrom these numbers I understand that I should not be able to access blocks that have higher numbers than **405384**, but fom the Java API I can do that. This suggests that the number reported as `chainBestBlock` is not acurate.\r\n\r\nYou can see below that I can get TransactionDetails from a Block that is higher than the current chainBestBlock:\r\n**405384 < 405583**\r\n![screenshot from 2018-06-12 10-58-59](https://user-images.githubusercontent.com/37304045/41279797-16fab6fe-6e36-11e8-872e-e89a9bb55c1a.png)\r\n\r\n![screenshot from 2018-06-12 10-59-01](https://user-images.githubusercontent.com/37304045/41279978-84011194-6e36-11e8-83a3-b7b12712dd82.png)\r\n\r\n\r\nL.E: Kernel version is: v0.2.7.1bbeec1"},"comment":{"url":"https://api.github.com/repos/aionnetwork/aion_api/issues/comments/403147661","html_url":"https://github.com/aionnetwork/aion_api/issues/28#issuecomment-403147661","issue_url":"https://api.github.com/repos/aionnetwork/aion_api/issues/28","id":403147661,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzE0NzY2MQ==","user":{"login":"AionJayT","id":36162090,"node_id":"MDQ6VXNlcjM2MTYyMDkw","avatar_url":"https://avatars2.githubusercontent.com/u/36162090?v=4","gravatar_id":"","url":"https://api.github.com/users/AionJayT","html_url":"https://github.com/AionJayT","followers_url":"https://api.github.com/users/AionJayT/followers","following_url":"https://api.github.com/users/AionJayT/following{/other_user}","gists_url":"https://api.github.com/users/AionJayT/gists{/gist_id}","starred_url":"https://api.github.com/users/AionJayT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AionJayT/subscriptions","organizations_url":"https://api.github.com/users/AionJayT/orgs","repos_url":"https://api.github.com/users/AionJayT/repos","events_url":"https://api.github.com/users/AionJayT/events{/privacy}","received_events_url":"https://api.github.com/users/AionJayT/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T21:09:48Z","updated_at":"2018-07-06T21:09:48Z","author_association":"COLLABORATOR","body":"fix the issue in the kernel PR.\r\nthe kernel binary will publish in the mid of July\r\nhttps://github.com/aionnetwork/aion/pull/544"}}
{"actor":{"display_login":"AionJayT"}}