{"action":"created","comment":{"url":"https://api.github.com/repos/DLTcollab/dcurl/pulls/comments/207712038","pull_request_review_id":143386338,"id":207712038,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzcxMjAzOA==","diff_hunk":"@@ -0,0 +1,158 @@\n+/*MIT License\n+\n+Copyright (c) 2018 Ievgen Korokyi\n+\n+Permission is hereby granted, free of charge, to any person obtaining a copy\n+of this software and associated documentation files (the \"Software\"), to deal\n+in the Software without restriction, including without limitation the rights\n+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+copies of the Software, and to permit persons to whom the Software is\n+furnished to do so, subject to the following conditions:\n+\n+The above copyright notice and this permission notice shall be included in all\n+copies or substantial portions of the Software.\n+\n+THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+SOFTWARE.*/\n+\n+#include \"pow_fpga_accel.h\"\n+\n+\n+#define NONCE_LEN 81\n+#define TRANSACTION_LEN 2673\n+#define NONCE_OFFSET 2646\n+#define HPS_TO_FPGA_BASE 0xC0000000\n+#define HPS_TO_FPGA_SPAN 0x0020000\n+#define HASH_CNT_REG_OFFSET 4\n+#define TICK_CNT_LOW_REG_OFFSET 5\n+#define TICK_CNT_HI_REG_OFFSET 6\n+#define MWM_MASK_REG_OFFSET 3\n+#define CPOW_BASE 0\n+\n+#define HINTS                                                           \\\n+    \"### CPOW Hardware Accelerated ###\\nUsage:\\n\\t./curl_pow_hard MWM \" \\\n+    \"TRYTES(length: %d) \\n\"\n+\n+static int8_t otrytes[TRANSACTION_LEN];\n+\n+int pow_fpga_accel_init()\n+{\n+    ctrl_fd = 0;\n+    in_fd = 0;\n+    out_fd = 0;\n+    devmem_fd = 0;\n+    fpga_regs_map = 0;\n+    cpow_map = 0;\n+\n+    ctrl_fd = fopen(\"/dev/cpow-ctrl\", \"r+\");","path":"src/pow_fpga_accel.c","position":55,"original_position":52,"commit_id":"90ead950c7f1a3cfd569b594a7166091ae91bd87","original_commit_id":"3775dc47a9633c483b0d3f59c24be589b959813a","user":{"login":"ajblane","id":5338746,"node_id":"MDQ6VXNlcjUzMzg3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/5338746?v=4","gravatar_id":"","url":"https://api.github.com/users/ajblane","html_url":"https://github.com/ajblane","followers_url":"https://api.github.com/users/ajblane/followers","following_url":"https://api.github.com/users/ajblane/following{/other_user}","gists_url":"https://api.github.com/users/ajblane/gists{/gist_id}","starred_url":"https://api.github.com/users/ajblane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajblane/subscriptions","organizations_url":"https://api.github.com/users/ajblane/orgs","repos_url":"https://api.github.com/users/ajblane/repos","events_url":"https://api.github.com/users/ajblane/events{/privacy}","received_events_url":"https://api.github.com/users/ajblane/received_events","type":"User","site_admin":false},"body":"I do not known what you mean.","created_at":"2018-08-04T15:49:13Z","updated_at":"2018-08-04T15:49:13Z","html_url":"https://github.com/DLTcollab/dcurl/pull/50#discussion_r207712038","pull_request_url":"https://api.github.com/repos/DLTcollab/dcurl/pulls/50","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/DLTcollab/dcurl/pulls/comments/207712038"},"html":{"href":"https://github.com/DLTcollab/dcurl/pull/50#discussion_r207712038"},"pull_request":{"href":"https://api.github.com/repos/DLTcollab/dcurl/pulls/50"}},"in_reply_to_id":206877577},"pull_request":{"url":"https://api.github.com/repos/DLTcollab/dcurl/pulls/50","id":204343511,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MzQzNTEx","html_url":"https://github.com/DLTcollab/dcurl/pull/50","diff_url":"https://github.com/DLTcollab/dcurl/pull/50.diff","patch_url":"https://github.com/DLTcollab/dcurl/pull/50.patch","issue_url":"https://api.github.com/repos/DLTcollab/dcurl/issues/50","number":50,"state":"open","locked":false,"title":"Integrate FPGA-accelerated PoW","user":{"login":"ajblane","id":5338746,"node_id":"MDQ6VXNlcjUzMzg3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/5338746?v=4","gravatar_id":"","url":"https://api.github.com/users/ajblane","html_url":"https://github.com/ajblane","followers_url":"https://api.github.com/users/ajblane/followers","following_url":"https://api.github.com/users/ajblane/following{/other_user}","gists_url":"https://api.github.com/users/ajblane/gists{/gist_id}","starred_url":"https://api.github.com/users/ajblane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajblane/subscriptions","organizations_url":"https://api.github.com/users/ajblane/orgs","repos_url":"https://api.github.com/users/ajblane/repos","events_url":"https://api.github.com/users/ajblane/events{/privacy}","received_events_url":"https://api.github.com/users/ajblane/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-27T06:46:58Z","updated_at":"2018-08-04T15:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"371d7b51a1004da598d05afcfd9958e346866b87","assignee":{"login":"ajblane","id":5338746,"node_id":"MDQ6VXNlcjUzMzg3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/5338746?v=4","gravatar_id":"","url":"https://api.github.com/users/ajblane","html_url":"https://github.com/ajblane","followers_url":"https://api.github.com/users/ajblane/followers","following_url":"https://api.github.com/users/ajblane/following{/other_user}","gists_url":"https://api.github.com/users/ajblane/gists{/gist_id}","starred_url":"https://api.github.com/users/ajblane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajblane/subscriptions","organizations_url":"https://api.github.com/users/ajblane/orgs","repos_url":"https://api.github.com/users/ajblane/repos","events_url":"https://api.github.com/users/ajblane/events{/privacy}","received_events_url":"https://api.github.com/users/ajblane/received_events","type":"User","site_admin":false},"assignees":[{"login":"ajblane","id":5338746,"node_id":"MDQ6VXNlcjUzMzg3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/5338746?v=4","gravatar_id":"","url":"https://api.github.com/users/ajblane","html_url":"https://github.com/ajblane","followers_url":"https://api.github.com/users/ajblane/followers","following_url":"https://api.github.com/users/ajblane/following{/other_user}","gists_url":"https://api.github.com/users/ajblane/gists{/gist_id}","starred_url":"https://api.github.com/users/ajblane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajblane/subscriptions","organizations_url":"https://api.github.com/users/ajblane/orgs","repos_url":"https://api.github.com/users/ajblane/repos","events_url":"https://api.github.com/users/ajblane/events{/privacy}","received_events_url":"https://api.github.com/users/ajblane/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DLTcollab/dcurl/pulls/50/commits","review_comments_url":"https://api.github.com/repos/DLTcollab/dcurl/pulls/50/comments","review_comment_url":"https://api.github.com/repos/DLTcollab/dcurl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DLTcollab/dcurl/issues/50/comments","statuses_url":"https://api.github.com/repos/DLTcollab/dcurl/statuses/90ead950c7f1a3cfd569b594a7166091ae91bd87","head":{"label":"ajblane:fpga-pow-accel","ref":"fpga-pow-accel","sha":"90ead950c7f1a3cfd569b594a7166091ae91bd87","user":{"login":"ajblane","id":5338746,"node_id":"MDQ6VXNlcjUzMzg3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/5338746?v=4","gravatar_id":"","url":"https://api.github.com/users/ajblane","html_url":"https://github.com/ajblane","followers_url":"https://api.github.com/users/ajblane/followers","following_url":"https://api.github.com/users/ajblane/following{/other_user}","gists_url":"https://api.github.com/users/ajblane/gists{/gist_id}","starred_url":"https://api.github.com/users/ajblane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajblane/subscriptions","organizations_url":"https://api.github.com/users/ajblane/orgs","repos_url":"https://api.github.com/users/ajblane/repos","events_url":"https://api.github.com/users/ajblane/events{/privacy}","received_events_url":"https://api.github.com/users/ajblane/received_events","type":"User","site_admin":false},"repo":{"id":139651243,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk2NTEyNDM=","name":"dcurl","full_name":"ajblane/dcurl","owner":{"login":"ajblane","id":5338746,"node_id":"MDQ6VXNlcjUzMzg3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/5338746?v=4","gravatar_id":"","url":"https://api.github.com/users/ajblane","html_url":"https://github.com/ajblane","followers_url":"https://api.github.com/users/ajblane/followers","following_url":"https://api.github.com/users/ajblane/following{/other_user}","gists_url":"https://api.github.com/users/ajblane/gists{/gist_id}","starred_url":"https://api.github.com/users/ajblane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajblane/subscriptions","organizations_url":"https://api.github.com/users/ajblane/orgs","repos_url":"https://api.github.com/users/ajblane/repos","events_url":"https://api.github.com/users/ajblane/events{/privacy}","received_events_url":"https://api.github.com/users/ajblane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajblane/dcurl","description":"Multi-threaded Curl function implementation, which can be a drop-in replacement for ccurl","fork":true,"url":"https://api.github.com/repos/ajblane/dcurl","forks_url":"https://api.github.com/repos/ajblane/dcurl/forks","keys_url":"https://api.github.com/repos/ajblane/dcurl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajblane/dcurl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajblane/dcurl/teams","hooks_url":"https://api.github.com/repos/ajblane/dcurl/hooks","issue_events_url":"https://api.github.com/repos/ajblane/dcurl/issues/events{/number}","events_url":"https://api.github.com/repos/ajblane/dcurl/events","assignees_url":"https://api.github.com/repos/ajblane/dcurl/assignees{/user}","branches_url":"https://api.github.com/repos/ajblane/dcurl/branches{/branch}","tags_url":"https://api.github.com/repos/ajblane/dcurl/tags","blobs_url":"https://api.github.com/repos/ajblane/dcurl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajblane/dcurl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajblane/dcurl/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajblane/dcurl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajblane/dcurl/statuses/{sha}","languages_url":"https://api.github.com/repos/ajblane/dcurl/languages","stargazers_url":"https://api.github.com/repos/ajblane/dcurl/stargazers","contributors_url":"https://api.github.com/repos/ajblane/dcurl/contributors","subscribers_url":"https://api.github.com/repos/ajblane/dcurl/subscribers","subscription_url":"https://api.github.com/repos/ajblane/dcurl/subscription","commits_url":"https://api.github.com/repos/ajblane/dcurl/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajblane/dcurl/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajblane/dcurl/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajblane/dcurl/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajblane/dcurl/contents/{+path}","compare_url":"https://api.github.com/repos/ajblane/dcurl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajblane/dcurl/merges","archive_url":"https://api.github.com/repos/ajblane/dcurl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajblane/dcurl/downloads","issues_url":"https://api.github.com/repos/ajblane/dcurl/issues{/number}","pulls_url":"https://api.github.com/repos/ajblane/dcurl/pulls{/number}","milestones_url":"https://api.github.com/repos/ajblane/dcurl/milestones{/number}","notifications_url":"https://api.github.com/repos/ajblane/dcurl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajblane/dcurl/labels{/name}","releases_url":"https://api.github.com/repos/ajblane/dcurl/releases{/id}","deployments_url":"https://api.github.com/repos/ajblane/dcurl/deployments","created_at":"2018-07-04T00:56:38Z","updated_at":"2018-08-04T11:47:59Z","pushed_at":"2018-08-04T15:47:16Z","git_url":"git://github.com/ajblane/dcurl.git","ssh_url":"git@github.com:ajblane/dcurl.git","clone_url":"https://github.com/ajblane/dcurl.git","svn_url":"https://github.com/ajblane/dcurl","homepage":"","size":351,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"DLTcollab:dev","ref":"dev","sha":"09546941503c6137ab35063b389209fd8abfcd63","user":{"login":"DLTcollab","id":40378901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzc4OTAx","avatar_url":"https://avatars3.githubusercontent.com/u/40378901?v=4","gravatar_id":"","url":"https://api.github.com/users/DLTcollab","html_url":"https://github.com/DLTcollab","followers_url":"https://api.github.com/users/DLTcollab/followers","following_url":"https://api.github.com/users/DLTcollab/following{/other_user}","gists_url":"https://api.github.com/users/DLTcollab/gists{/gist_id}","starred_url":"https://api.github.com/users/DLTcollab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DLTcollab/subscriptions","organizations_url":"https://api.github.com/users/DLTcollab/orgs","repos_url":"https://api.github.com/users/DLTcollab/repos","events_url":"https://api.github.com/users/DLTcollab/events{/privacy}","received_events_url":"https://api.github.com/users/DLTcollab/received_events","type":"Organization","site_admin":false},"repo":{"id":116799440,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY3OTk0NDA=","name":"dcurl","full_name":"DLTcollab/dcurl","owner":{"login":"DLTcollab","id":40378901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzc4OTAx","avatar_url":"https://avatars3.githubusercontent.com/u/40378901?v=4","gravatar_id":"","url":"https://api.github.com/users/DLTcollab","html_url":"https://github.com/DLTcollab","followers_url":"https://api.github.com/users/DLTcollab/followers","following_url":"https://api.github.com/users/DLTcollab/following{/other_user}","gists_url":"https://api.github.com/users/DLTcollab/gists{/gist_id}","starred_url":"https://api.github.com/users/DLTcollab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DLTcollab/subscriptions","organizations_url":"https://api.github.com/users/DLTcollab/orgs","repos_url":"https://api.github.com/users/DLTcollab/repos","events_url":"https://api.github.com/users/DLTcollab/events{/privacy}","received_events_url":"https://api.github.com/users/DLTcollab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DLTcollab/dcurl","description":"Hardware-accelerated Multi-threaded IOTA PoW, drop-in replacement for ccurl","fork":false,"url":"https://api.github.com/repos/DLTcollab/dcurl","forks_url":"https://api.github.com/repos/DLTcollab/dcurl/forks","keys_url":"https://api.github.com/repos/DLTcollab/dcurl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DLTcollab/dcurl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DLTcollab/dcurl/teams","hooks_url":"https://api.github.com/repos/DLTcollab/dcurl/hooks","issue_events_url":"https://api.github.com/repos/DLTcollab/dcurl/issues/events{/number}","events_url":"https://api.github.com/repos/DLTcollab/dcurl/events","assignees_url":"https://api.github.com/repos/DLTcollab/dcurl/assignees{/user}","branches_url":"https://api.github.com/repos/DLTcollab/dcurl/branches{/branch}","tags_url":"https://api.github.com/repos/DLTcollab/dcurl/tags","blobs_url":"https://api.github.com/repos/DLTcollab/dcurl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DLTcollab/dcurl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DLTcollab/dcurl/git/refs{/sha}","trees_url":"https://api.github.com/repos/DLTcollab/dcurl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DLTcollab/dcurl/statuses/{sha}","languages_url":"https://api.github.com/repos/DLTcollab/dcurl/languages","stargazers_url":"https://api.github.com/repos/DLTcollab/dcurl/stargazers","contributors_url":"https://api.github.com/repos/DLTcollab/dcurl/contributors","subscribers_url":"https://api.github.com/repos/DLTcollab/dcurl/subscribers","subscription_url":"https://api.github.com/repos/DLTcollab/dcurl/subscription","commits_url":"https://api.github.com/repos/DLTcollab/dcurl/commits{/sha}","git_commits_url":"https://api.github.com/repos/DLTcollab/dcurl/git/commits{/sha}","comments_url":"https://api.github.com/repos/DLTcollab/dcurl/comments{/number}","issue_comment_url":"https://api.github.com/repos/DLTcollab/dcurl/issues/comments{/number}","contents_url":"https://api.github.com/repos/DLTcollab/dcurl/contents/{+path}","compare_url":"https://api.github.com/repos/DLTcollab/dcurl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DLTcollab/dcurl/merges","archive_url":"https://api.github.com/repos/DLTcollab/dcurl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DLTcollab/dcurl/downloads","issues_url":"https://api.github.com/repos/DLTcollab/dcurl/issues{/number}","pulls_url":"https://api.github.com/repos/DLTcollab/dcurl/pulls{/number}","milestones_url":"https://api.github.com/repos/DLTcollab/dcurl/milestones{/number}","notifications_url":"https://api.github.com/repos/DLTcollab/dcurl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DLTcollab/dcurl/labels{/name}","releases_url":"https://api.github.com/repos/DLTcollab/dcurl/releases{/id}","deployments_url":"https://api.github.com/repos/DLTcollab/dcurl/deployments","created_at":"2018-01-09T10:07:50Z","updated_at":"2018-08-03T02:37:34Z","pushed_at":"2018-08-04T15:47:18Z","git_url":"git://github.com/DLTcollab/dcurl.git","ssh_url":"git@github.com:DLTcollab/dcurl.git","clone_url":"https://github.com/DLTcollab/dcurl.git","svn_url":"https://github.com/DLTcollab/dcurl","homepage":"","size":344,"stargazers_count":27,"watchers_count":27,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":14,"open_issues":7,"watchers":27,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/DLTcollab/dcurl/pulls/50"},"html":{"href":"https://github.com/DLTcollab/dcurl/pull/50"},"issue":{"href":"https://api.github.com/repos/DLTcollab/dcurl/issues/50"},"comments":{"href":"https://api.github.com/repos/DLTcollab/dcurl/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/DLTcollab/dcurl/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/DLTcollab/dcurl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DLTcollab/dcurl/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/DLTcollab/dcurl/statuses/90ead950c7f1a3cfd569b594a7166091ae91bd87"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ajblane"}}