{"action":"created","comment":{"url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/comments/111307937","pull_request_review_id":32543443,"id":111307937,"diff_hunk":"@@ -31,6 +31,33 @@ const (\n \t// Typically, this transaction will contain either a file contract, a file\n \t// contract revision, or a storage proof.\n \tresubmissionTimeout = 3\n+\n+\t// WorkingStatusChecking is returned from WorkingStatus() if the host is\n+\t// still determining if it is working, that is, if settings calls are\n+\t// incrementing.\n+\tWorkingStatusChecking = \"checking\"\n+\n+\t// WorkingStatusNotWorking is returned from WorkingStatus() if the host has\n+\t// not received any settings calls over the duration of\n+\t// workingStatusFrequency.\n+\tWorkingStatusNotWorking = \"not working\"\n+\n+\t// WorkingStatusWorking is returned from WorkingStatus() if the host has\n+\t// received more than workingThreshold settings calls over the duration of\n+\t// workingStatusFrequency.\n+\tWorkingStatusWorking = \"working\"\n+\n+\t// ConnectabilityStatusChecking is returned from ConnectabilityStatus() if the\n+\t// host is still determining if it is connectable.\n+\tConnectabilityStatusChecking = \"checking\"\n+\n+\t// ConnectabilityStatusConnectable is returned from ConnectabilityStatus() if\n+\t// the host is connectable at its configured netaddress.\n+\tConnectabilityStatusConnectable = \"connectable\"\n+\n+\t// ConnectabilityStatusNotConnectable is returned from ConnectabilityStatus()\n+\t// if the host is not connectable at its configured netaddress.\n+\tConnectabilityStatusNotConnectable = \"not connectable\"","path":"modules/host/consts.go","position":30,"original_position":30,"commit_id":"0c6274751c2665bdfe1dfe6a61d0b639bf28d399","original_commit_id":"0c6274751c2665bdfe1dfe6a61d0b639bf28d399","user":{"login":"lukechampine","id":3344749,"avatar_url":"https://avatars1.githubusercontent.com/u/3344749?v=3","gravatar_id":"","url":"https://api.github.com/users/lukechampine","html_url":"https://github.com/lukechampine","followers_url":"https://api.github.com/users/lukechampine/followers","following_url":"https://api.github.com/users/lukechampine/following{/other_user}","gists_url":"https://api.github.com/users/lukechampine/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechampine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechampine/subscriptions","organizations_url":"https://api.github.com/users/lukechampine/orgs","repos_url":"https://api.github.com/users/lukechampine/repos","events_url":"https://api.github.com/users/lukechampine/events{/privacy}","received_events_url":"https://api.github.com/users/lukechampine/received_events","type":"User","site_admin":false},"body":"shouldn't these be defined in the `modules` package, not `host`?","created_at":"2017-04-13T04:01:44Z","updated_at":"2017-04-13T04:01:44Z","html_url":"https://github.com/NebulousLabs/Sia/pull/1687#discussion_r111307937","pull_request_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1687","_links":{"self":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/comments/111307937"},"html":{"href":"https://github.com/NebulousLabs/Sia/pull/1687#discussion_r111307937"},"pull_request":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1687"}}},"pull_request":{"url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1687","id":115426155,"html_url":"https://github.com/NebulousLabs/Sia/pull/1687","diff_url":"https://github.com/NebulousLabs/Sia/pull/1687.diff","patch_url":"https://github.com/NebulousLabs/Sia/pull/1687.patch","issue_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/1687","number":1687,"state":"open","locked":false,"title":"add `ConnectabilityState` and `WorkingState` fields to the host","user":{"login":"johnathanhowell","id":8183920,"avatar_url":"https://avatars0.githubusercontent.com/u/8183920?v=3","gravatar_id":"","url":"https://api.github.com/users/johnathanhowell","html_url":"https://github.com/johnathanhowell","followers_url":"https://api.github.com/users/johnathanhowell/followers","following_url":"https://api.github.com/users/johnathanhowell/following{/other_user}","gists_url":"https://api.github.com/users/johnathanhowell/gists{/gist_id}","starred_url":"https://api.github.com/users/johnathanhowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnathanhowell/subscriptions","organizations_url":"https://api.github.com/users/johnathanhowell/orgs","repos_url":"https://api.github.com/users/johnathanhowell/repos","events_url":"https://api.github.com/users/johnathanhowell/events{/privacy}","received_events_url":"https://api.github.com/users/johnathanhowell/received_events","type":"User","site_admin":false},"body":"This PR moves the functionality described in https://github.com/NebulousLabs/Sia-UI/pull/530 to the back-end, exposing two new API fields, `ConnectabilityState` and `WorkingState`. The commits are pretty easy to follow and should be well commented.","created_at":"2017-04-11T22:11:07Z","updated_at":"2017-04-13T04:01:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87a0f9d48eb17e9e797572da81a38f1cb80c5b1b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1687/commits","review_comments_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1687/comments","review_comment_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/1687/comments","statuses_url":"https://api.github.com/repos/NebulousLabs/Sia/statuses/0c6274751c2665bdfe1dfe6a61d0b639bf28d399","head":{"label":"NebulousLabs:host-connectability","ref":"host-connectability","sha":"0c6274751c2665bdfe1dfe6a61d0b639bf28d399","user":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars2.githubusercontent.com/u/7471422?v=3","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":25370072,"name":"Sia","full_name":"NebulousLabs/Sia","owner":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars2.githubusercontent.com/u/7471422?v=3","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NebulousLabs/Sia","description":"Blockchain-based marketplace for file storage","fork":false,"url":"https://api.github.com/repos/NebulousLabs/Sia","forks_url":"https://api.github.com/repos/NebulousLabs/Sia/forks","keys_url":"https://api.github.com/repos/NebulousLabs/Sia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NebulousLabs/Sia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NebulousLabs/Sia/teams","hooks_url":"https://api.github.com/repos/NebulousLabs/Sia/hooks","issue_events_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/events{/number}","events_url":"https://api.github.com/repos/NebulousLabs/Sia/events","assignees_url":"https://api.github.com/repos/NebulousLabs/Sia/assignees{/user}","branches_url":"https://api.github.com/repos/NebulousLabs/Sia/branches{/branch}","tags_url":"https://api.github.com/repos/NebulousLabs/Sia/tags","blobs_url":"https://api.github.com/repos/NebulousLabs/Sia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NebulousLabs/Sia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NebulousLabs/Sia/git/refs{/sha}","trees_url":"https://api.github.com/repos/NebulousLabs/Sia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NebulousLabs/Sia/statuses/{sha}","languages_url":"https://api.github.com/repos/NebulousLabs/Sia/languages","stargazers_url":"https://api.github.com/repos/NebulousLabs/Sia/stargazers","contributors_url":"https://api.github.com/repos/NebulousLabs/Sia/contributors","subscribers_url":"https://api.github.com/repos/NebulousLabs/Sia/subscribers","subscription_url":"https://api.github.com/repos/NebulousLabs/Sia/subscription","commits_url":"https://api.github.com/repos/NebulousLabs/Sia/commits{/sha}","git_commits_url":"https://api.github.com/repos/NebulousLabs/Sia/git/commits{/sha}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia/comments{/number}","issue_comment_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/comments{/number}","contents_url":"https://api.github.com/repos/NebulousLabs/Sia/contents/{+path}","compare_url":"https://api.github.com/repos/NebulousLabs/Sia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NebulousLabs/Sia/merges","archive_url":"https://api.github.com/repos/NebulousLabs/Sia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NebulousLabs/Sia/downloads","issues_url":"https://api.github.com/repos/NebulousLabs/Sia/issues{/number}","pulls_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls{/number}","milestones_url":"https://api.github.com/repos/NebulousLabs/Sia/milestones{/number}","notifications_url":"https://api.github.com/repos/NebulousLabs/Sia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NebulousLabs/Sia/labels{/name}","releases_url":"https://api.github.com/repos/NebulousLabs/Sia/releases{/id}","deployments_url":"https://api.github.com/repos/NebulousLabs/Sia/deployments","created_at":"2014-10-17T17:50:25Z","updated_at":"2017-04-12T13:27:51Z","pushed_at":"2017-04-13T03:54:10Z","git_url":"git://github.com/NebulousLabs/Sia.git","ssh_url":"git@github.com:NebulousLabs/Sia.git","clone_url":"https://github.com/NebulousLabs/Sia.git","svn_url":"https://github.com/NebulousLabs/Sia","homepage":"https://sia.tech","size":13464,"stargazers_count":577,"watchers_count":577,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":62,"forks":87,"open_issues":62,"watchers":577,"default_branch":"master"}},"base":{"label":"NebulousLabs:master","ref":"master","sha":"1798a75e1814f4cd4080b635e739eb0ee35696a0","user":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars2.githubusercontent.com/u/7471422?v=3","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":25370072,"name":"Sia","full_name":"NebulousLabs/Sia","owner":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars2.githubusercontent.com/u/7471422?v=3","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NebulousLabs/Sia","description":"Blockchain-based marketplace for file storage","fork":false,"url":"https://api.github.com/repos/NebulousLabs/Sia","forks_url":"https://api.github.com/repos/NebulousLabs/Sia/forks","keys_url":"https://api.github.com/repos/NebulousLabs/Sia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NebulousLabs/Sia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NebulousLabs/Sia/teams","hooks_url":"https://api.github.com/repos/NebulousLabs/Sia/hooks","issue_events_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/events{/number}","events_url":"https://api.github.com/repos/NebulousLabs/Sia/events","assignees_url":"https://api.github.com/repos/NebulousLabs/Sia/assignees{/user}","branches_url":"https://api.github.com/repos/NebulousLabs/Sia/branches{/branch}","tags_url":"https://api.github.com/repos/NebulousLabs/Sia/tags","blobs_url":"https://api.github.com/repos/NebulousLabs/Sia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NebulousLabs/Sia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NebulousLabs/Sia/git/refs{/sha}","trees_url":"https://api.github.com/repos/NebulousLabs/Sia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NebulousLabs/Sia/statuses/{sha}","languages_url":"https://api.github.com/repos/NebulousLabs/Sia/languages","stargazers_url":"https://api.github.com/repos/NebulousLabs/Sia/stargazers","contributors_url":"https://api.github.com/repos/NebulousLabs/Sia/contributors","subscribers_url":"https://api.github.com/repos/NebulousLabs/Sia/subscribers","subscription_url":"https://api.github.com/repos/NebulousLabs/Sia/subscription","commits_url":"https://api.github.com/repos/NebulousLabs/Sia/commits{/sha}","git_commits_url":"https://api.github.com/repos/NebulousLabs/Sia/git/commits{/sha}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia/comments{/number}","issue_comment_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/comments{/number}","contents_url":"https://api.github.com/repos/NebulousLabs/Sia/contents/{+path}","compare_url":"https://api.github.com/repos/NebulousLabs/Sia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NebulousLabs/Sia/merges","archive_url":"https://api.github.com/repos/NebulousLabs/Sia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NebulousLabs/Sia/downloads","issues_url":"https://api.github.com/repos/NebulousLabs/Sia/issues{/number}","pulls_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls{/number}","milestones_url":"https://api.github.com/repos/NebulousLabs/Sia/milestones{/number}","notifications_url":"https://api.github.com/repos/NebulousLabs/Sia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NebulousLabs/Sia/labels{/name}","releases_url":"https://api.github.com/repos/NebulousLabs/Sia/releases{/id}","deployments_url":"https://api.github.com/repos/NebulousLabs/Sia/deployments","created_at":"2014-10-17T17:50:25Z","updated_at":"2017-04-12T13:27:51Z","pushed_at":"2017-04-13T03:54:10Z","git_url":"git://github.com/NebulousLabs/Sia.git","ssh_url":"git@github.com:NebulousLabs/Sia.git","clone_url":"https://github.com/NebulousLabs/Sia.git","svn_url":"https://github.com/NebulousLabs/Sia","homepage":"https://sia.tech","size":13464,"stargazers_count":577,"watchers_count":577,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":62,"forks":87,"open_issues":62,"watchers":577,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1687"},"html":{"href":"https://github.com/NebulousLabs/Sia/pull/1687"},"issue":{"href":"https://api.github.com/repos/NebulousLabs/Sia/issues/1687"},"comments":{"href":"https://api.github.com/repos/NebulousLabs/Sia/issues/1687/comments"},"review_comments":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1687/comments"},"review_comment":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1687/commits"},"statuses":{"href":"https://api.github.com/repos/NebulousLabs/Sia/statuses/0c6274751c2665bdfe1dfe6a61d0b639bf28d399"}}}}
{"actor":{"display_login":"lukechampine"}}