{"action":"created","issue":{"url":"https://api.github.com/repos/monero-project/monero/issues/4386","repository_url":"https://api.github.com/repos/monero-project/monero","labels_url":"https://api.github.com/repos/monero-project/monero/issues/4386/labels{/name}","comments_url":"https://api.github.com/repos/monero-project/monero/issues/4386/comments","events_url":"https://api.github.com/repos/monero-project/monero/issues/4386/events","html_url":"https://github.com/monero-project/monero/issues/4386","id":360623372,"node_id":"MDU6SXNzdWUzNjA2MjMzNzI=","number":4386,"title":"[Question] How to detect if there is a hard-fork or a new version","user":{"login":"gituser","id":104405,"node_id":"MDQ6VXNlcjEwNDQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/104405?v=4","gravatar_id":"","url":"https://api.github.com/users/gituser","html_url":"https://github.com/gituser","followers_url":"https://api.github.com/users/gituser/followers","following_url":"https://api.github.com/users/gituser/following{/other_user}","gists_url":"https://api.github.com/users/gituser/gists{/gist_id}","starred_url":"https://api.github.com/users/gituser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gituser/subscriptions","organizations_url":"https://api.github.com/users/gituser/orgs","repos_url":"https://api.github.com/users/gituser/repos","events_url":"https://api.github.com/users/gituser/events{/privacy}","received_events_url":"https://api.github.com/users/gituser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-16T09:53:52Z","updated_at":"2018-09-16T11:40:46Z","closed_at":"2018-09-16T11:40:46Z","author_association":"NONE","body":"Hi.\r\n\r\nCan you clarify how to properly detect if there is a new version and hard fork is coming ?\r\n\r\nFrom documentation it's not absolutely clear.\r\n\r\nhttps://getmonero.org/resources/developer-guides/daemon-rpc.html#hard_fork_info\r\n\r\nWhat I did is to check monerod every hour with this `hard_fork_info` RPC call and check if `state!=2`, but for some reason today the node turned this parameter `state=1` (that means hard fork is coming), so my node was shut down automatically. \r\n\r\nAfter checking github it seems there is no new release at all and hard fork is only coming in october or so (according to reddit)?\r\n\r\nHere is what my monerod is showing right now:\r\n```sh\r\ncurl -X POST http://127.0.0.1:18081/json_rpc -d '{\"jsonrpc\":\"2.0\",\"id\":\"0\",\"method\":\"hard_fork_info\"}' -H 'Content-Type: application/json'\r\n{\r\n  \"id\": \"0\",\r\n  \"jsonrpc\": \"2.0\",\r\n  \"result\": {\r\n    \"earliest_height\": 1546000,\r\n    \"enabled\": true,\r\n    \"state\": 1,\r\n    \"status\": \"OK\",\r\n    \"threshold\": 0,\r\n    \"untrusted\": false,\r\n    \"version\": 7,\r\n    \"votes\": 10080,\r\n    \"voting\": 7,\r\n    \"window\": 10080\r\n  }\r\n}\r\n```\r\nCan you tell me how to check properly if there is hardfork event is started what to look precisely in this `hard_fork_info` output to make sure I'm not on pre-forked chain and need to update the daemon? \r\nThanks."},"comment":{"url":"https://api.github.com/repos/monero-project/monero/issues/comments/421750792","html_url":"https://github.com/monero-project/monero/issues/4386#issuecomment-421750792","issue_url":"https://api.github.com/repos/monero-project/monero/issues/4386","id":421750792,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTc1MDc5Mg==","user":{"login":"gituser","id":104405,"node_id":"MDQ6VXNlcjEwNDQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/104405?v=4","gravatar_id":"","url":"https://api.github.com/users/gituser","html_url":"https://github.com/gituser","followers_url":"https://api.github.com/users/gituser/followers","following_url":"https://api.github.com/users/gituser/following{/other_user}","gists_url":"https://api.github.com/users/gituser/gists{/gist_id}","starred_url":"https://api.github.com/users/gituser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gituser/subscriptions","organizations_url":"https://api.github.com/users/gituser/orgs","repos_url":"https://api.github.com/users/gituser/repos","events_url":"https://api.github.com/users/gituser/events{/privacy}","received_events_url":"https://api.github.com/users/gituser/received_events","type":"User","site_admin":false},"created_at":"2018-09-16T11:40:46Z","updated_at":"2018-09-16T11:40:46Z","author_association":"NONE","body":"OK, thanks for the clarification!"}}
{"actor":{"display_login":"gituser"}}