{"action":"created","comment":{"url":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/comments/225200706","pull_request_review_id":164750012,"id":225200706,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTIwMDcwNg==","diff_hunk":"@@ -31,12 +36,12 @@ def bounty_to_dict(bounty):\n         'assigned_arbiter': bounty[6],\n         'quorum_reached': bounty[7],\n         'quorum_reached_block': bounty[8],\n-        'quorum_mask': int_to_bool_list(bounty[9]),\n+        'quorum_mask': safe_int_to_bool_list(bounty[9], retval['num_artifacts']),\n     }\n-    if len(bounty) > 10:\n+    if bounty_has_voters_and_verdicts:\n         retval['bloom'] = uint256_list_to_hex_string(bounty[10])\n         retval['voters'] = bounty[11]\n-        retval['verdicts'] = int_to_bool_list(bounty[12])\n+        retval['verdicts'] = safe_int_to_bool_list(bounty[12], retval['num_artifacts'])","path":"src/polyswarmd/utils.py","position":37,"original_position":37,"commit_id":"d7b65c224abc1e01d784d9cd8898931a05ff2f29","original_commit_id":"d7b65c224abc1e01d784d9cd8898931a05ff2f29","user":{"login":"ceseale","id":7860694,"node_id":"MDQ6VXNlcjc4NjA2OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7860694?v=4","gravatar_id":"","url":"https://api.github.com/users/ceseale","html_url":"https://github.com/ceseale","followers_url":"https://api.github.com/users/ceseale/followers","following_url":"https://api.github.com/users/ceseale/following{/other_user}","gists_url":"https://api.github.com/users/ceseale/gists{/gist_id}","starred_url":"https://api.github.com/users/ceseale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceseale/subscriptions","organizations_url":"https://api.github.com/users/ceseale/orgs","repos_url":"https://api.github.com/users/ceseale/repos","events_url":"https://api.github.com/users/ceseale/events{/privacy}","received_events_url":"https://api.github.com/users/ceseale/received_events","type":"User","site_admin":false},"body":"Yes, thanks!","created_at":"2018-10-15T15:03:16Z","updated_at":"2018-10-15T15:03:17Z","html_url":"https://github.com/polyswarm/polyswarmd/pull/83#discussion_r225200706","pull_request_url":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/83","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/comments/225200706"},"html":{"href":"https://github.com/polyswarm/polyswarmd/pull/83#discussion_r225200706"},"pull_request":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/83"}},"in_reply_to_id":225008124},"pull_request":{"url":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/83","id":222139367,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMTM5MzY3","html_url":"https://github.com/polyswarm/polyswarmd/pull/83","diff_url":"https://github.com/polyswarm/polyswarmd/pull/83.diff","patch_url":"https://github.com/polyswarm/polyswarmd/pull/83.patch","issue_url":"https://api.github.com/repos/polyswarm/polyswarmd/issues/83","number":83,"state":"open","locked":false,"title":"Fix for broken verdicts of more than one false","user":{"login":"ceseale","id":7860694,"node_id":"MDQ6VXNlcjc4NjA2OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7860694?v=4","gravatar_id":"","url":"https://api.github.com/users/ceseale","html_url":"https://github.com/ceseale","followers_url":"https://api.github.com/users/ceseale/followers","following_url":"https://api.github.com/users/ceseale/following{/other_user}","gists_url":"https://api.github.com/users/ceseale/gists{/gist_id}","starred_url":"https://api.github.com/users/ceseale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceseale/subscriptions","organizations_url":"https://api.github.com/users/ceseale/orgs","repos_url":"https://api.github.com/users/ceseale/repos","events_url":"https://api.github.com/users/ceseale/events{/privacy}","received_events_url":"https://api.github.com/users/ceseale/received_events","type":"User","site_admin":false},"body":"Bug description here -> https://github.com/polyswarm/consumer/issues/2","created_at":"2018-10-11T13:32:01Z","updated_at":"2018-10-15T15:03:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0bede94a4beebb336198e61d721a4cc436c8ff04","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mjkoo","id":30420,"node_id":"MDQ6VXNlcjMwNDIw","avatar_url":"https://avatars3.githubusercontent.com/u/30420?v=4","gravatar_id":"","url":"https://api.github.com/users/mjkoo","html_url":"https://github.com/mjkoo","followers_url":"https://api.github.com/users/mjkoo/followers","following_url":"https://api.github.com/users/mjkoo/following{/other_user}","gists_url":"https://api.github.com/users/mjkoo/gists{/gist_id}","starred_url":"https://api.github.com/users/mjkoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjkoo/subscriptions","organizations_url":"https://api.github.com/users/mjkoo/orgs","repos_url":"https://api.github.com/users/mjkoo/repos","events_url":"https://api.github.com/users/mjkoo/events{/privacy}","received_events_url":"https://api.github.com/users/mjkoo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/83/commits","review_comments_url":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/83/comments","review_comment_url":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/polyswarm/polyswarmd/issues/83/comments","statuses_url":"https://api.github.com/repos/polyswarm/polyswarmd/statuses/d7b65c224abc1e01d784d9cd8898931a05ff2f29","head":{"label":"polyswarm:broken-verdict","ref":"broken-verdict","sha":"d7b65c224abc1e01d784d9cd8898931a05ff2f29","user":{"login":"polyswarm","id":31043802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMDQzODAy","avatar_url":"https://avatars0.githubusercontent.com/u/31043802?v=4","gravatar_id":"","url":"https://api.github.com/users/polyswarm","html_url":"https://github.com/polyswarm","followers_url":"https://api.github.com/users/polyswarm/followers","following_url":"https://api.github.com/users/polyswarm/following{/other_user}","gists_url":"https://api.github.com/users/polyswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/polyswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyswarm/subscriptions","organizations_url":"https://api.github.com/users/polyswarm/orgs","repos_url":"https://api.github.com/users/polyswarm/repos","events_url":"https://api.github.com/users/polyswarm/events{/privacy}","received_events_url":"https://api.github.com/users/polyswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":126096752,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYwOTY3NTI=","name":"polyswarmd","full_name":"polyswarm/polyswarmd","private":false,"owner":{"login":"polyswarm","id":31043802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMDQzODAy","avatar_url":"https://avatars0.githubusercontent.com/u/31043802?v=4","gravatar_id":"","url":"https://api.github.com/users/polyswarm","html_url":"https://github.com/polyswarm","followers_url":"https://api.github.com/users/polyswarm/followers","following_url":"https://api.github.com/users/polyswarm/following{/other_user}","gists_url":"https://api.github.com/users/polyswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/polyswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyswarm/subscriptions","organizations_url":"https://api.github.com/users/polyswarm/orgs","repos_url":"https://api.github.com/users/polyswarm/repos","events_url":"https://api.github.com/users/polyswarm/events{/privacy}","received_events_url":"https://api.github.com/users/polyswarm/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/polyswarm/polyswarmd","description":"daemon for PolySwarm, the first decentralized threat intelligence market.","fork":false,"url":"https://api.github.com/repos/polyswarm/polyswarmd","forks_url":"https://api.github.com/repos/polyswarm/polyswarmd/forks","keys_url":"https://api.github.com/repos/polyswarm/polyswarmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/polyswarm/polyswarmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/polyswarm/polyswarmd/teams","hooks_url":"https://api.github.com/repos/polyswarm/polyswarmd/hooks","issue_events_url":"https://api.github.com/repos/polyswarm/polyswarmd/issues/events{/number}","events_url":"https://api.github.com/repos/polyswarm/polyswarmd/events","assignees_url":"https://api.github.com/repos/polyswarm/polyswarmd/assignees{/user}","branches_url":"https://api.github.com/repos/polyswarm/polyswarmd/branches{/branch}","tags_url":"https://api.github.com/repos/polyswarm/polyswarmd/tags","blobs_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/polyswarm/polyswarmd/statuses/{sha}","languages_url":"https://api.github.com/repos/polyswarm/polyswarmd/languages","stargazers_url":"https://api.github.com/repos/polyswarm/polyswarmd/stargazers","contributors_url":"https://api.github.com/repos/polyswarm/polyswarmd/contributors","subscribers_url":"https://api.github.com/repos/polyswarm/polyswarmd/subscribers","subscription_url":"https://api.github.com/repos/polyswarm/polyswarmd/subscription","commits_url":"https://api.github.com/repos/polyswarm/polyswarmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/polyswarm/polyswarmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/polyswarm/polyswarmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/polyswarm/polyswarmd/contents/{+path}","compare_url":"https://api.github.com/repos/polyswarm/polyswarmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/polyswarm/polyswarmd/merges","archive_url":"https://api.github.com/repos/polyswarm/polyswarmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/polyswarm/polyswarmd/downloads","issues_url":"https://api.github.com/repos/polyswarm/polyswarmd/issues{/number}","pulls_url":"https://api.github.com/repos/polyswarm/polyswarmd/pulls{/number}","milestones_url":"https://api.github.com/repos/polyswarm/polyswarmd/milestones{/number}","notifications_url":"https://api.github.com/repos/polyswarm/polyswarmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/polyswarm/polyswarmd/labels{/name}","releases_url":"https://api.github.com/repos/polyswarm/polyswarmd/releases{/id}","deployments_url":"https://api.github.com/repos/polyswarm/polyswarmd/deployments","created_at":"2018-03-20T23:40:21Z","updated_at":"2018-10-15T05:45:24Z","pushed_at":"2018-10-13T00:49:35Z","git_url":"git://github.com/polyswarm/polyswarmd.git","ssh_url":"git@github.com:polyswarm/polyswarmd.git","clone_url":"https://github.com/polyswarm/polyswarmd.git","svn_url":"https://github.com/polyswarm/polyswarmd","homepage":"https://polyswarm.io","size":737,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":26,"watchers":10,"default_branch":"master"}},"base":{"label":"polyswarm:master","ref":"master","sha":"cf772fe2f07b30139827b4c8e1c3a45eb5d27b68","user":{"login":"polyswarm","id":31043802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMDQzODAy","avatar_url":"https://avatars0.githubusercontent.com/u/31043802?v=4","gravatar_id":"","url":"https://api.github.com/users/polyswarm","html_url":"https://github.com/polyswarm","followers_url":"https://api.github.com/users/polyswarm/followers","following_url":"https://api.github.com/users/polyswarm/following{/other_user}","gists_url":"https://api.github.com/users/polyswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/polyswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyswarm/subscriptions","organizations_url":"https://api.github.com/users/polyswarm/orgs","repos_url":"https://api.github.com/users/polyswarm/repos","events_url":"https://api.github.com/users/polyswarm/events{/privacy}","received_events_url":"https://api.github.com/users/polyswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":126096752,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYwOTY3NTI=","name":"polyswarmd","full_name":"polyswarm/polyswarmd","private":false,"owner":{"login":"polyswarm","id":31043802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMDQzODAy","avatar_url":"https://avatars0.githubusercontent.com/u/31043802?v=4","gravatar_id":"","url":"https://api.github.com/users/polyswarm","html_url":"https://github.com/polyswarm","followers_url":"https://api.github.com/users/polyswarm/followers","following_url":"https://api.github.com/users/polyswarm/following{/other_user}","gists_url":"https://api.github.com/users/polyswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/polyswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyswarm/subscriptions","organizations_url":"https://api.github.com/users/polyswarm/orgs","repos_url":"https://api.github.com/users/polyswarm/repos","events_url":"https://api.github.com/users/polyswarm/events{/privacy}","received_events_url":"https://api.github.com/users/polyswarm/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/polyswarm/polyswarmd","description":"daemon for PolySwarm, the first decentralized threat intelligence market.","fork":false,"url":"https://api.github.com/repos/polyswarm/polyswarmd","forks_url":"https://api.github.com/repos/polyswarm/polyswarmd/forks","keys_url":"https://api.github.com/repos/polyswarm/polyswarmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/polyswarm/polyswarmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/polyswarm/polyswarmd/teams","hooks_url":"https://api.github.com/repos/polyswarm/polyswarmd/hooks","issue_events_url":"https://api.github.com/repos/polyswarm/polyswarmd/issues/events{/number}","events_url":"https://api.github.com/repos/polyswarm/polyswarmd/events","assignees_url":"https://api.github.com/repos/polyswarm/polyswarmd/assignees{/user}","branches_url":"https://api.github.com/repos/polyswarm/polyswarmd/branches{/branch}","tags_url":"https://api.github.com/repos/polyswarm/polyswarmd/tags","blobs_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/polyswarm/polyswarmd/statuses/{sha}","languages_url":"https://api.github.com/repos/polyswarm/polyswarmd/languages","stargazers_url":"https://api.github.com/repos/polyswarm/polyswarmd/stargazers","contributors_url":"https://api.github.com/repos/polyswarm/polyswarmd/contributors","subscribers_url":"https://api.github.com/repos/polyswarm/polyswarmd/subscribers","subscription_url":"https://api.github.com/repos/polyswarm/polyswarmd/subscription","commits_url":"https://api.github.com/repos/polyswarm/polyswarmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/polyswarm/polyswarmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/polyswarm/polyswarmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/polyswarm/polyswarmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/polyswarm/polyswarmd/contents/{+path}","compare_url":"https://api.github.com/repos/polyswarm/polyswarmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/polyswarm/polyswarmd/merges","archive_url":"https://api.github.com/repos/polyswarm/polyswarmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/polyswarm/polyswarmd/downloads","issues_url":"https://api.github.com/repos/polyswarm/polyswarmd/issues{/number}","pulls_url":"https://api.github.com/repos/polyswarm/polyswarmd/pulls{/number}","milestones_url":"https://api.github.com/repos/polyswarm/polyswarmd/milestones{/number}","notifications_url":"https://api.github.com/repos/polyswarm/polyswarmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/polyswarm/polyswarmd/labels{/name}","releases_url":"https://api.github.com/repos/polyswarm/polyswarmd/releases{/id}","deployments_url":"https://api.github.com/repos/polyswarm/polyswarmd/deployments","created_at":"2018-03-20T23:40:21Z","updated_at":"2018-10-15T05:45:24Z","pushed_at":"2018-10-13T00:49:35Z","git_url":"git://github.com/polyswarm/polyswarmd.git","ssh_url":"git@github.com:polyswarm/polyswarmd.git","clone_url":"https://github.com/polyswarm/polyswarmd.git","svn_url":"https://github.com/polyswarm/polyswarmd","homepage":"https://polyswarm.io","size":737,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":26,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/83"},"html":{"href":"https://github.com/polyswarm/polyswarmd/pull/83"},"issue":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/issues/83"},"comments":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/polyswarm/polyswarmd/statuses/d7b65c224abc1e01d784d9cd8898931a05ff2f29"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ceseale"}}