{"action":"created","issue":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/667","repository_url":"https://api.github.com/repos/kyuupichan/electrumx","labels_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/667/labels{/name}","comments_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/667/comments","events_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/667/events","html_url":"https://github.com/kyuupichan/electrumx/issues/667","id":390447056,"node_id":"MDU6SXNzdWUzOTA0NDcwNTY=","number":667,"title":"Truncate AuxPoW for headers that are covered by a checkpoint","user":{"login":"JeremyRand","id":244188,"node_id":"MDQ6VXNlcjI0NDE4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/244188?v=4","gravatar_id":"","url":"https://api.github.com/users/JeremyRand","html_url":"https://github.com/JeremyRand","followers_url":"https://api.github.com/users/JeremyRand/followers","following_url":"https://api.github.com/users/JeremyRand/following{/other_user}","gists_url":"https://api.github.com/users/JeremyRand/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremyRand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremyRand/subscriptions","organizations_url":"https://api.github.com/users/JeremyRand/orgs","repos_url":"https://api.github.com/users/JeremyRand/repos","events_url":"https://api.github.com/users/JeremyRand/events{/privacy}","received_events_url":"https://api.github.com/users/JeremyRand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-12T23:03:56Z","updated_at":"2018-12-13T02:08:16Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"AuxPoW data isn't relevant for headers covered by a checkpoint, since the AuxPoW data isn't needed to compute the block header hash, nor is it needed to verify that the checkpoint commits to the block header.  (I'm assuming that our threat model excludes the possibility of the checkpoint committing to invalid blocks.)  Given this, we could save a lot of bandwidth by truncating AuxPoW data for headers that are covered by a checkpoint (i.e. for headers whose height is less than or equal to `cp_height` in `blockchain.block.header` and `blockchain.block.headers`).  In Namecoin's case, that means truncating everything after the first 80 bytes of each header; I'm not certain whether other AuxPoW coins have a different definition (though I suspect it's likely that some do).\r\n\r\nWould a PR be accepted that truncates the AuxPoW data for headers that are covered by a checkpoint?  (The Namecoin devs would probably be willing to code up such a PR if no one else does it first.)"},"comment":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/comments/446816054","html_url":"https://github.com/kyuupichan/electrumx/issues/667#issuecomment-446816054","issue_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/667","id":446816054,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjgxNjA1NA==","user":{"login":"kyuupichan","id":3319176,"node_id":"MDQ6VXNlcjMzMTkxNzY=","avatar_url":"https://avatars1.githubusercontent.com/u/3319176?v=4","gravatar_id":"","url":"https://api.github.com/users/kyuupichan","html_url":"https://github.com/kyuupichan","followers_url":"https://api.github.com/users/kyuupichan/followers","following_url":"https://api.github.com/users/kyuupichan/following{/other_user}","gists_url":"https://api.github.com/users/kyuupichan/gists{/gist_id}","starred_url":"https://api.github.com/users/kyuupichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyuupichan/subscriptions","organizations_url":"https://api.github.com/users/kyuupichan/orgs","repos_url":"https://api.github.com/users/kyuupichan/repos","events_url":"https://api.github.com/users/kyuupichan/events{/privacy}","received_events_url":"https://api.github.com/users/kyuupichan/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T02:08:16Z","updated_at":"2018-12-13T02:08:16Z","author_association":"OWNER","body":"Oh I see, so it would change the nature of the returned value.  Got it.  That would probably need a protocol version bump"}}
{"actor":{"display_login":"kyuupichan"}}