{"action":"opened","issue":{"url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/477","repository_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode","labels_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/477/comments","events_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/477/events","html_url":"https://github.com/stratisproject/StratisBitcoinFullNode/issues/477","id":259242869,"number":477,"title":"[Speeding up] Improvements of checkpoints and beyond ","user":{"login":"Aprogiena","id":30052221,"avatar_url":"https://avatars0.githubusercontent.com/u/30052221?v=4","gravatar_id":"","url":"https://api.github.com/users/Aprogiena","html_url":"https://github.com/Aprogiena","followers_url":"https://api.github.com/users/Aprogiena/followers","following_url":"https://api.github.com/users/Aprogiena/following{/other_user}","gists_url":"https://api.github.com/users/Aprogiena/gists{/gist_id}","starred_url":"https://api.github.com/users/Aprogiena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aprogiena/subscriptions","organizations_url":"https://api.github.com/users/Aprogiena/orgs","repos_url":"https://api.github.com/users/Aprogiena/repos","events_url":"https://api.github.com/users/Aprogiena/events{/privacy}","received_events_url":"https://api.github.com/users/Aprogiena/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-20T17:31:46Z","updated_at":"2017-09-20T17:31:46Z","closed_at":null,"author_association":"COLLABORATOR","body":"We've implemented hardcoded checkpoints to save some processing time on old blocks.\r\n\r\nHowever, there is still some space for further improvements. Currently, we are aware of these:\r\n\r\n1. POS StakeModifier (v1) is not used anymore for V3 blocks (which is place for quite a long time already, so latest checkpoints are V3). However, we still spend a lot of CPU and I/O time on calculating this v1 StakeModifier. We think we can remove this completely, which will speed up validation time on blocks after last checkpoint.\r\n\r\n2. `AcceptBlock` method in `ConsensusLoop` contains this line:\r\n```\r\n                context.Flags = this.NodeDeployments.GetFlags(context.BlockResult.ChainedBlock);\r\n```\r\nIt seems that it takes quite a lot of time to execute this line and the question is if that time could be saved for historic blocks - i.e. before last checkpoint. If so, this could save significant amount of time during IBD with checkpoints enabled."}}
{"actor":{"display_login":"Aprogiena"}}