{"action":"created","issue":{"url":"https://api.github.com/repos/nimiq-network/core/issues/254","repository_url":"https://api.github.com/repos/nimiq-network/core","labels_url":"https://api.github.com/repos/nimiq-network/core/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/nimiq-network/core/issues/254/comments","events_url":"https://api.github.com/repos/nimiq-network/core/issues/254/events","html_url":"https://github.com/nimiq-network/core/issues/254","id":278127988,"number":254,"title":"Difficulty calculation in first 120 blocks broken by genisis block timestamp","user":{"login":"sisou","id":1828163,"avatar_url":"https://avatars1.githubusercontent.com/u/1828163?v=4","gravatar_id":"","url":"https://api.github.com/users/sisou","html_url":"https://github.com/sisou","followers_url":"https://api.github.com/users/sisou/followers","following_url":"https://api.github.com/users/sisou/following{/other_user}","gists_url":"https://api.github.com/users/sisou/gists{/gist_id}","starred_url":"https://api.github.com/users/sisou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sisou/subscriptions","organizations_url":"https://api.github.com/users/sisou/orgs","repos_url":"https://api.github.com/users/sisou/repos","events_url":"https://api.github.com/users/sisou/events{/privacy}","received_events_url":"https://api.github.com/users/sisou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-30T13:55:42Z","updated_at":"2017-11-30T14:19:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The genisis block in Luna has a timestamp of `0`, which is either `0000-00-00 00:00:00` or `1970-01-01 00:00:00`, depending on which library is used. In any case, this destroys the difficulty calculation for the first 120 blocks, because the time it took to find the secod block is then at least 48 years..."},"comment":{"url":"https://api.github.com/repos/nimiq-network/core/issues/comments/348200605","html_url":"https://github.com/nimiq-network/core/issues/254#issuecomment-348200605","issue_url":"https://api.github.com/repos/nimiq-network/core/issues/254","id":348200605,"user":{"login":"styppo","id":6218706,"avatar_url":"https://avatars1.githubusercontent.com/u/6218706?v=4","gravatar_id":"","url":"https://api.github.com/users/styppo","html_url":"https://github.com/styppo","followers_url":"https://api.github.com/users/styppo/followers","following_url":"https://api.github.com/users/styppo/following{/other_user}","gists_url":"https://api.github.com/users/styppo/gists{/gist_id}","starred_url":"https://api.github.com/users/styppo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styppo/subscriptions","organizations_url":"https://api.github.com/users/styppo/orgs","repos_url":"https://api.github.com/users/styppo/repos","events_url":"https://api.github.com/users/styppo/events{/privacy}","received_events_url":"https://api.github.com/users/styppo/received_events","type":"User","site_admin":false},"created_at":"2017-11-30T14:19:15Z","updated_at":"2017-11-30T14:19:15Z","author_association":"CONTRIBUTOR","body":"Hey @sisou, that is correct and we are aware of this issue. It doesn't really break anything, but just causes the difficulty to stay at 1 for the first ```Policy.DIFFICULTY_BLOCK_WINDOW``` blocks. The MainNet genesis block will look different (pre-allocated coins, etc.) and will have the correct timestamp. For the Luna TestNet, we chose to ignore this since we had already mined the first ~5000 blocks in our \"private\" TestNet anyways, so it didn't really affect anything."}}
{"actor":{"display_login":"styppo"}}