{"action":"opened","issue":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1589","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1589/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1589/comments","events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1589/events","html_url":"https://github.com/ethereum/go-ethereum/issues/1589","id":99148555,"number":1589,"title":"Gap in BLOCK_HASHES messages","user":{"login":"mkalinin","id":1892772,"avatar_url":"https://avatars.githubusercontent.com/u/1892772?v=3","gravatar_id":"","url":"https://api.github.com/users/mkalinin","html_url":"https://github.com/mkalinin","followers_url":"https://api.github.com/users/mkalinin/followers","following_url":"https://api.github.com/users/mkalinin/following{/other_user}","gists_url":"https://api.github.com/users/mkalinin/gists{/gist_id}","starred_url":"https://api.github.com/users/mkalinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkalinin/subscriptions","organizations_url":"https://api.github.com/users/mkalinin/orgs","repos_url":"https://api.github.com/users/mkalinin/repos","events_url":"https://api.github.com/users/mkalinin/events{/privacy}","received_events_url":"https://api.github.com/users/mkalinin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-05T08:13:29Z","updated_at":"2015-08-05T08:13:29Z","closed_at":null,"body":"Guys it seems that `go` peer produces gaps in responses to `GET_BLOCK_HASHES` message\r\n\r\nLet me show you an example.\r\nAssume we have following blocks\r\n```\r\nN.   hash=fe36bdcd1bc8f0c4488e0cdefede865e52fcd563d0c3e887b4ef85a4e8f694e5  parentHash=175da96b4e05be9657242023cdc97d85e9f716dddce786bb489e644c0926ce59\r\nN+1. hash=03eacf6c9792ae9674c0b3cd1b37a4e799c3d19c055e65f3bbe2aee2d773ca08  parentHash=fe36bdcd1bc8f0c4488e0cdefede865e52fcd563d0c3e887b4ef85a4e8f694e5\r\n```\r\nWe send a message to get `BLOCK_HASHES` for blocks in interval `[K; N]`\r\n```\r\n16:15:26 [net]  To:   ec2-54-197-80-137.compute-1.amazonaws.com/54.197.80.137:30305   Send:   \r\n[GET_BLOCK_HASHES bestHash=03eacf6c9792ae9674c0b3cd1b37a4e799c3d19c055e65f3bbe2aee2d773ca08 maxBlocks=10000]\r\n```\r\nAnd expect that first hash in response will be a hash of block number `N`\r\nBut first hash in response is a hash of block number `N-1`\r\n\r\n```\r\n16:15:26 [net]  From:   ec2-54-197-80-137.compute-1.amazonaws.com/54.197.80.137:30305   \r\nRecv:   175da96b4e05be9657242023cdc97d85e9f716dddce786bb489e644c0926ce59\r\n...\r\n```\r\n\r\nis there correct behavior on our side?\r\n\r\nThanks in advance"}}