{"action":"closed","number":632,"pull_request":{"url":"https://api.github.com/repos/ExchangeUnion/xud/pulls/632","id":227833350,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3ODMzMzUw","html_url":"https://github.com/ExchangeUnion/xud/pull/632","diff_url":"https://github.com/ExchangeUnion/xud/pull/632.diff","patch_url":"https://github.com/ExchangeUnion/xud/pull/632.patch","issue_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/632","number":632,"state":"closed","locked":false,"title":"feat(rpc): add UNAVAILABLE grpc error status code","user":{"login":"sangaman","id":3440835,"node_id":"MDQ6VXNlcjM0NDA4MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3440835?v=4","gravatar_id":"","url":"https://api.github.com/users/sangaman","html_url":"https://github.com/sangaman","followers_url":"https://api.github.com/users/sangaman/followers","following_url":"https://api.github.com/users/sangaman/following{/other_user}","gists_url":"https://api.github.com/users/sangaman/gists{/gist_id}","starred_url":"https://api.github.com/users/sangaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangaman/subscriptions","organizations_url":"https://api.github.com/users/sangaman/orgs","repos_url":"https://api.github.com/users/sangaman/repos","events_url":"https://api.github.com/users/sangaman/events{/privacy}","received_events_url":"https://api.github.com/users/sangaman/received_events","type":"User","site_admin":false},"body":"This adds the `UNAVAILABLE` code as one of the possible grpc status codes that can be returned by `xud`. This status is intended for calls that can fail due to transient conditions and may be successful if tried again at a later time. The two existing errors that meet that description are `LND_IS_UNAVAILABLE` (renamed from `LND_IS_DISCONNECTED` because lnd may be reachable via grpc but out of sync with the chain)) and `COULD_NOT_CONNECT` from the p2p context. We automatically attempt to reestablish a connection to lnd, and nodes that are offline may come back online.","created_at":"2018-11-02T05:13:58Z","updated_at":"2018-11-03T07:57:34Z","closed_at":"2018-11-03T07:57:34Z","merged_at":"2018-11-03T07:57:34Z","merge_commit_sha":"e9c4697fd5afc15c193858454c1ab5120fa2961a","assignee":{"login":"sangaman","id":3440835,"node_id":"MDQ6VXNlcjM0NDA4MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3440835?v=4","gravatar_id":"","url":"https://api.github.com/users/sangaman","html_url":"https://github.com/sangaman","followers_url":"https://api.github.com/users/sangaman/followers","following_url":"https://api.github.com/users/sangaman/following{/other_user}","gists_url":"https://api.github.com/users/sangaman/gists{/gist_id}","starred_url":"https://api.github.com/users/sangaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangaman/subscriptions","organizations_url":"https://api.github.com/users/sangaman/orgs","repos_url":"https://api.github.com/users/sangaman/repos","events_url":"https://api.github.com/users/sangaman/events{/privacy}","received_events_url":"https://api.github.com/users/sangaman/received_events","type":"User","site_admin":false},"assignees":[{"login":"sangaman","id":3440835,"node_id":"MDQ6VXNlcjM0NDA4MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3440835?v=4","gravatar_id":"","url":"https://api.github.com/users/sangaman","html_url":"https://github.com/sangaman","followers_url":"https://api.github.com/users/sangaman/followers","following_url":"https://api.github.com/users/sangaman/following{/other_user}","gists_url":"https://api.github.com/users/sangaman/gists{/gist_id}","starred_url":"https://api.github.com/users/sangaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangaman/subscriptions","organizations_url":"https://api.github.com/users/sangaman/orgs","repos_url":"https://api.github.com/users/sangaman/repos","events_url":"https://api.github.com/users/sangaman/events{/privacy}","received_events_url":"https://api.github.com/users/sangaman/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":908007434,"node_id":"MDU6TGFiZWw5MDgwMDc0MzQ=","url":"https://api.github.com/repos/ExchangeUnion/xud/labels/error%20handling","name":"error handling","color":"ffcc2a","default":false},{"id":911812425,"node_id":"MDU6TGFiZWw5MTE4MTI0MjU=","url":"https://api.github.com/repos/ExchangeUnion/xud/labels/grpc","name":"grpc","color":"ff44c7","default":false},{"id":930952990,"node_id":"MDU6TGFiZWw5MzA5NTI5OTA=","url":"https://api.github.com/repos/ExchangeUnion/xud/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ExchangeUnion/xud/pulls/632/commits","review_comments_url":"https://api.github.com/repos/ExchangeUnion/xud/pulls/632/comments","review_comment_url":"https://api.github.com/repos/ExchangeUnion/xud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/632/comments","statuses_url":"https://api.github.com/repos/ExchangeUnion/xud/statuses/f4f774ed06f6a9e45ea217b68157677dff26eb23","head":{"label":"ExchangeUnion:unavailable-grpc","ref":"unavailable-grpc","sha":"f4f774ed06f6a9e45ea217b68157677dff26eb23","user":{"login":"ExchangeUnion","id":32665502,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjY1NTAy","avatar_url":"https://avatars3.githubusercontent.com/u/32665502?v=4","gravatar_id":"","url":"https://api.github.com/users/ExchangeUnion","html_url":"https://github.com/ExchangeUnion","followers_url":"https://api.github.com/users/ExchangeUnion/followers","following_url":"https://api.github.com/users/ExchangeUnion/following{/other_user}","gists_url":"https://api.github.com/users/ExchangeUnion/gists{/gist_id}","starred_url":"https://api.github.com/users/ExchangeUnion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExchangeUnion/subscriptions","organizations_url":"https://api.github.com/users/ExchangeUnion/orgs","repos_url":"https://api.github.com/users/ExchangeUnion/repos","events_url":"https://api.github.com/users/ExchangeUnion/events{/privacy}","received_events_url":"https://api.github.com/users/ExchangeUnion/received_events","type":"Organization","site_admin":false},"repo":{"id":120945739,"node_id":"MDEwOlJlcG9zaXRvcnkxMjA5NDU3Mzk=","name":"xud","full_name":"ExchangeUnion/xud","private":false,"owner":{"login":"ExchangeUnion","id":32665502,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjY1NTAy","avatar_url":"https://avatars3.githubusercontent.com/u/32665502?v=4","gravatar_id":"","url":"https://api.github.com/users/ExchangeUnion","html_url":"https://github.com/ExchangeUnion","followers_url":"https://api.github.com/users/ExchangeUnion/followers","following_url":"https://api.github.com/users/ExchangeUnion/following{/other_user}","gists_url":"https://api.github.com/users/ExchangeUnion/gists{/gist_id}","starred_url":"https://api.github.com/users/ExchangeUnion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExchangeUnion/subscriptions","organizations_url":"https://api.github.com/users/ExchangeUnion/orgs","repos_url":"https://api.github.com/users/ExchangeUnion/repos","events_url":"https://api.github.com/users/ExchangeUnion/events{/privacy}","received_events_url":"https://api.github.com/users/ExchangeUnion/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ExchangeUnion/xud","description":"Exchange Union Daemon - Connecting Digital Asset Exchanges","fork":false,"url":"https://api.github.com/repos/ExchangeUnion/xud","forks_url":"https://api.github.com/repos/ExchangeUnion/xud/forks","keys_url":"https://api.github.com/repos/ExchangeUnion/xud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExchangeUnion/xud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExchangeUnion/xud/teams","hooks_url":"https://api.github.com/repos/ExchangeUnion/xud/hooks","issue_events_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/events{/number}","events_url":"https://api.github.com/repos/ExchangeUnion/xud/events","assignees_url":"https://api.github.com/repos/ExchangeUnion/xud/assignees{/user}","branches_url":"https://api.github.com/repos/ExchangeUnion/xud/branches{/branch}","tags_url":"https://api.github.com/repos/ExchangeUnion/xud/tags","blobs_url":"https://api.github.com/repos/ExchangeUnion/xud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExchangeUnion/xud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExchangeUnion/xud/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExchangeUnion/xud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExchangeUnion/xud/statuses/{sha}","languages_url":"https://api.github.com/repos/ExchangeUnion/xud/languages","stargazers_url":"https://api.github.com/repos/ExchangeUnion/xud/stargazers","contributors_url":"https://api.github.com/repos/ExchangeUnion/xud/contributors","subscribers_url":"https://api.github.com/repos/ExchangeUnion/xud/subscribers","subscription_url":"https://api.github.com/repos/ExchangeUnion/xud/subscription","commits_url":"https://api.github.com/repos/ExchangeUnion/xud/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExchangeUnion/xud/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExchangeUnion/xud/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExchangeUnion/xud/contents/{+path}","compare_url":"https://api.github.com/repos/ExchangeUnion/xud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExchangeUnion/xud/merges","archive_url":"https://api.github.com/repos/ExchangeUnion/xud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExchangeUnion/xud/downloads","issues_url":"https://api.github.com/repos/ExchangeUnion/xud/issues{/number}","pulls_url":"https://api.github.com/repos/ExchangeUnion/xud/pulls{/number}","milestones_url":"https://api.github.com/repos/ExchangeUnion/xud/milestones{/number}","notifications_url":"https://api.github.com/repos/ExchangeUnion/xud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExchangeUnion/xud/labels{/name}","releases_url":"https://api.github.com/repos/ExchangeUnion/xud/releases{/id}","deployments_url":"https://api.github.com/repos/ExchangeUnion/xud/deployments","created_at":"2018-02-09T19:18:54Z","updated_at":"2018-11-03T07:46:48Z","pushed_at":"2018-11-03T07:57:34Z","git_url":"git://github.com/ExchangeUnion/xud.git","ssh_url":"git@github.com:ExchangeUnion/xud.git","clone_url":"https://github.com/ExchangeUnion/xud.git","svn_url":"https://github.com/ExchangeUnion/xud","homepage":"https://exchangeunion.com","size":2341,"stargazers_count":43,"watchers_count":43,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":81,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":22,"open_issues":81,"watchers":43,"default_branch":"master"}},"base":{"label":"ExchangeUnion:master","ref":"master","sha":"17bb9f7b18ab53d3f5f6c7cc834b9488f49315ba","user":{"login":"ExchangeUnion","id":32665502,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjY1NTAy","avatar_url":"https://avatars3.githubusercontent.com/u/32665502?v=4","gravatar_id":"","url":"https://api.github.com/users/ExchangeUnion","html_url":"https://github.com/ExchangeUnion","followers_url":"https://api.github.com/users/ExchangeUnion/followers","following_url":"https://api.github.com/users/ExchangeUnion/following{/other_user}","gists_url":"https://api.github.com/users/ExchangeUnion/gists{/gist_id}","starred_url":"https://api.github.com/users/ExchangeUnion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExchangeUnion/subscriptions","organizations_url":"https://api.github.com/users/ExchangeUnion/orgs","repos_url":"https://api.github.com/users/ExchangeUnion/repos","events_url":"https://api.github.com/users/ExchangeUnion/events{/privacy}","received_events_url":"https://api.github.com/users/ExchangeUnion/received_events","type":"Organization","site_admin":false},"repo":{"id":120945739,"node_id":"MDEwOlJlcG9zaXRvcnkxMjA5NDU3Mzk=","name":"xud","full_name":"ExchangeUnion/xud","private":false,"owner":{"login":"ExchangeUnion","id":32665502,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjY1NTAy","avatar_url":"https://avatars3.githubusercontent.com/u/32665502?v=4","gravatar_id":"","url":"https://api.github.com/users/ExchangeUnion","html_url":"https://github.com/ExchangeUnion","followers_url":"https://api.github.com/users/ExchangeUnion/followers","following_url":"https://api.github.com/users/ExchangeUnion/following{/other_user}","gists_url":"https://api.github.com/users/ExchangeUnion/gists{/gist_id}","starred_url":"https://api.github.com/users/ExchangeUnion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExchangeUnion/subscriptions","organizations_url":"https://api.github.com/users/ExchangeUnion/orgs","repos_url":"https://api.github.com/users/ExchangeUnion/repos","events_url":"https://api.github.com/users/ExchangeUnion/events{/privacy}","received_events_url":"https://api.github.com/users/ExchangeUnion/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ExchangeUnion/xud","description":"Exchange Union Daemon - Connecting Digital Asset Exchanges","fork":false,"url":"https://api.github.com/repos/ExchangeUnion/xud","forks_url":"https://api.github.com/repos/ExchangeUnion/xud/forks","keys_url":"https://api.github.com/repos/ExchangeUnion/xud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExchangeUnion/xud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExchangeUnion/xud/teams","hooks_url":"https://api.github.com/repos/ExchangeUnion/xud/hooks","issue_events_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/events{/number}","events_url":"https://api.github.com/repos/ExchangeUnion/xud/events","assignees_url":"https://api.github.com/repos/ExchangeUnion/xud/assignees{/user}","branches_url":"https://api.github.com/repos/ExchangeUnion/xud/branches{/branch}","tags_url":"https://api.github.com/repos/ExchangeUnion/xud/tags","blobs_url":"https://api.github.com/repos/ExchangeUnion/xud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExchangeUnion/xud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExchangeUnion/xud/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExchangeUnion/xud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExchangeUnion/xud/statuses/{sha}","languages_url":"https://api.github.com/repos/ExchangeUnion/xud/languages","stargazers_url":"https://api.github.com/repos/ExchangeUnion/xud/stargazers","contributors_url":"https://api.github.com/repos/ExchangeUnion/xud/contributors","subscribers_url":"https://api.github.com/repos/ExchangeUnion/xud/subscribers","subscription_url":"https://api.github.com/repos/ExchangeUnion/xud/subscription","commits_url":"https://api.github.com/repos/ExchangeUnion/xud/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExchangeUnion/xud/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExchangeUnion/xud/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExchangeUnion/xud/contents/{+path}","compare_url":"https://api.github.com/repos/ExchangeUnion/xud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExchangeUnion/xud/merges","archive_url":"https://api.github.com/repos/ExchangeUnion/xud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExchangeUnion/xud/downloads","issues_url":"https://api.github.com/repos/ExchangeUnion/xud/issues{/number}","pulls_url":"https://api.github.com/repos/ExchangeUnion/xud/pulls{/number}","milestones_url":"https://api.github.com/repos/ExchangeUnion/xud/milestones{/number}","notifications_url":"https://api.github.com/repos/ExchangeUnion/xud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExchangeUnion/xud/labels{/name}","releases_url":"https://api.github.com/repos/ExchangeUnion/xud/releases{/id}","deployments_url":"https://api.github.com/repos/ExchangeUnion/xud/deployments","created_at":"2018-02-09T19:18:54Z","updated_at":"2018-11-03T07:46:48Z","pushed_at":"2018-11-03T07:57:34Z","git_url":"git://github.com/ExchangeUnion/xud.git","ssh_url":"git@github.com:ExchangeUnion/xud.git","clone_url":"https://github.com/ExchangeUnion/xud.git","svn_url":"https://github.com/ExchangeUnion/xud","homepage":"https://exchangeunion.com","size":2341,"stargazers_count":43,"watchers_count":43,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":81,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":22,"open_issues":81,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ExchangeUnion/xud/pulls/632"},"html":{"href":"https://github.com/ExchangeUnion/xud/pull/632"},"issue":{"href":"https://api.github.com/repos/ExchangeUnion/xud/issues/632"},"comments":{"href":"https://api.github.com/repos/ExchangeUnion/xud/issues/632/comments"},"review_comments":{"href":"https://api.github.com/repos/ExchangeUnion/xud/pulls/632/comments"},"review_comment":{"href":"https://api.github.com/repos/ExchangeUnion/xud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ExchangeUnion/xud/pulls/632/commits"},"statuses":{"href":"https://api.github.com/repos/ExchangeUnion/xud/statuses/f4f774ed06f6a9e45ea217b68157677dff26eb23"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"moshababo","id":17073733,"node_id":"MDQ6VXNlcjE3MDczNzMz","avatar_url":"https://avatars2.githubusercontent.com/u/17073733?v=4","gravatar_id":"","url":"https://api.github.com/users/moshababo","html_url":"https://github.com/moshababo","followers_url":"https://api.github.com/users/moshababo/followers","following_url":"https://api.github.com/users/moshababo/following{/other_user}","gists_url":"https://api.github.com/users/moshababo/gists{/gist_id}","starred_url":"https://api.github.com/users/moshababo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moshababo/subscriptions","organizations_url":"https://api.github.com/users/moshababo/orgs","repos_url":"https://api.github.com/users/moshababo/repos","events_url":"https://api.github.com/users/moshababo/events{/privacy}","received_events_url":"https://api.github.com/users/moshababo/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":10,"deletions":8,"changed_files":3}}
{"actor":{"display_login":"moshababo"}}