{"action":"created","comment":{"url":"https://api.github.com/repos/raiden-network/raiden/pulls/comments/224745478","pull_request_review_id":164190970,"id":224745478,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDc0NTQ3OA==","diff_hunk":"@@ -122,6 +92,28 @@ def get_best_routes(\n             )\n             continue\n \n+        try:\n+            length = networkx.shortest_path_length(\n+                token_network.network_graph.network,\n+                partner_address,\n+                to_address,\n+            )\n+            heappush(neighbors_heap, (partner_address, length, nonrefundable))","path":"raiden/routing.py","position":null,"original_position":88,"commit_id":"188f7dfc33075a71745685f17b0a64558137f8b9","original_commit_id":"44b465cc1e90a7fbffad593d137a56c9d253496c","user":{"login":"err508","id":22775390,"node_id":"MDQ6VXNlcjIyNzc1Mzkw","avatar_url":"https://avatars3.githubusercontent.com/u/22775390?v=4","gravatar_id":"","url":"https://api.github.com/users/err508","html_url":"https://github.com/err508","followers_url":"https://api.github.com/users/err508/followers","following_url":"https://api.github.com/users/err508/following{/other_user}","gists_url":"https://api.github.com/users/err508/gists{/gist_id}","starred_url":"https://api.github.com/users/err508/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/err508/subscriptions","organizations_url":"https://api.github.com/users/err508/orgs","repos_url":"https://api.github.com/users/err508/repos","events_url":"https://api.github.com/users/err508/events{/privacy}","received_events_url":"https://api.github.com/users/err508/received_events","type":"User","site_admin":false},"body":"right, will do!","created_at":"2018-10-12T10:49:01Z","updated_at":"2018-10-12T10:49:01Z","html_url":"https://github.com/raiden-network/raiden/pull/2762#discussion_r224745478","pull_request_url":"https://api.github.com/repos/raiden-network/raiden/pulls/2762","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/raiden-network/raiden/pulls/comments/224745478"},"html":{"href":"https://github.com/raiden-network/raiden/pull/2762#discussion_r224745478"},"pull_request":{"href":"https://api.github.com/repos/raiden-network/raiden/pulls/2762"}},"in_reply_to_id":224743838},"pull_request":{"url":"https://api.github.com/repos/raiden-network/raiden/pulls/2762","id":222178395,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMTc4Mzk1","html_url":"https://github.com/raiden-network/raiden/pull/2762","diff_url":"https://github.com/raiden-network/raiden/pull/2762.diff","patch_url":"https://github.com/raiden-network/raiden/pull/2762.patch","issue_url":"https://api.github.com/repos/raiden-network/raiden/issues/2762","number":2762,"state":"open","locked":false,"title":"Prioritize routes which have funds for refunds","user":{"login":"err508","id":22775390,"node_id":"MDQ6VXNlcjIyNzc1Mzkw","avatar_url":"https://avatars3.githubusercontent.com/u/22775390?v=4","gravatar_id":"","url":"https://api.github.com/users/err508","html_url":"https://github.com/err508","followers_url":"https://api.github.com/users/err508/followers","following_url":"https://api.github.com/users/err508/following{/other_user}","gists_url":"https://api.github.com/users/err508/gists{/gist_id}","starred_url":"https://api.github.com/users/err508/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/err508/subscriptions","organizations_url":"https://api.github.com/users/err508/orgs","repos_url":"https://api.github.com/users/err508/repos","events_url":"https://api.github.com/users/err508/events{/privacy}","received_events_url":"https://api.github.com/users/err508/received_events","type":"User","site_admin":false},"body":"Adding nonrefundable property to get_best_routes results ordering. This is applied as a tiebreaker, favoring refund routes over non-refund routes only if they have the same length. A more thoughtful trade off between number of hops, fees and refunding  should be made in the PFS. \r\n\r\ncloses #2682 ","created_at":"2018-10-11T15:17:19Z","updated_at":"2018-10-12T10:49:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14f91e4577c69d2545b2cba1d06ef0b332c7e988","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/raiden-network/raiden/pulls/2762/commits","review_comments_url":"https://api.github.com/repos/raiden-network/raiden/pulls/2762/comments","review_comment_url":"https://api.github.com/repos/raiden-network/raiden/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raiden-network/raiden/issues/2762/comments","statuses_url":"https://api.github.com/repos/raiden-network/raiden/statuses/188f7dfc33075a71745685f17b0a64558137f8b9","head":{"label":"err508:2682","ref":"2682","sha":"188f7dfc33075a71745685f17b0a64558137f8b9","user":{"login":"err508","id":22775390,"node_id":"MDQ6VXNlcjIyNzc1Mzkw","avatar_url":"https://avatars3.githubusercontent.com/u/22775390?v=4","gravatar_id":"","url":"https://api.github.com/users/err508","html_url":"https://github.com/err508","followers_url":"https://api.github.com/users/err508/followers","following_url":"https://api.github.com/users/err508/following{/other_user}","gists_url":"https://api.github.com/users/err508/gists{/gist_id}","starred_url":"https://api.github.com/users/err508/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/err508/subscriptions","organizations_url":"https://api.github.com/users/err508/orgs","repos_url":"https://api.github.com/users/err508/repos","events_url":"https://api.github.com/users/err508/events{/privacy}","received_events_url":"https://api.github.com/users/err508/received_events","type":"User","site_admin":false},"repo":{"id":124102304,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQxMDIzMDQ=","name":"raiden","full_name":"err508/raiden","private":false,"owner":{"login":"err508","id":22775390,"node_id":"MDQ6VXNlcjIyNzc1Mzkw","avatar_url":"https://avatars3.githubusercontent.com/u/22775390?v=4","gravatar_id":"","url":"https://api.github.com/users/err508","html_url":"https://github.com/err508","followers_url":"https://api.github.com/users/err508/followers","following_url":"https://api.github.com/users/err508/following{/other_user}","gists_url":"https://api.github.com/users/err508/gists{/gist_id}","starred_url":"https://api.github.com/users/err508/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/err508/subscriptions","organizations_url":"https://api.github.com/users/err508/orgs","repos_url":"https://api.github.com/users/err508/repos","events_url":"https://api.github.com/users/err508/events{/privacy}","received_events_url":"https://api.github.com/users/err508/received_events","type":"User","site_admin":false},"html_url":"https://github.com/err508/raiden","description":"Raiden Network","fork":true,"url":"https://api.github.com/repos/err508/raiden","forks_url":"https://api.github.com/repos/err508/raiden/forks","keys_url":"https://api.github.com/repos/err508/raiden/keys{/key_id}","collaborators_url":"https://api.github.com/repos/err508/raiden/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/err508/raiden/teams","hooks_url":"https://api.github.com/repos/err508/raiden/hooks","issue_events_url":"https://api.github.com/repos/err508/raiden/issues/events{/number}","events_url":"https://api.github.com/repos/err508/raiden/events","assignees_url":"https://api.github.com/repos/err508/raiden/assignees{/user}","branches_url":"https://api.github.com/repos/err508/raiden/branches{/branch}","tags_url":"https://api.github.com/repos/err508/raiden/tags","blobs_url":"https://api.github.com/repos/err508/raiden/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/err508/raiden/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/err508/raiden/git/refs{/sha}","trees_url":"https://api.github.com/repos/err508/raiden/git/trees{/sha}","statuses_url":"https://api.github.com/repos/err508/raiden/statuses/{sha}","languages_url":"https://api.github.com/repos/err508/raiden/languages","stargazers_url":"https://api.github.com/repos/err508/raiden/stargazers","contributors_url":"https://api.github.com/repos/err508/raiden/contributors","subscribers_url":"https://api.github.com/repos/err508/raiden/subscribers","subscription_url":"https://api.github.com/repos/err508/raiden/subscription","commits_url":"https://api.github.com/repos/err508/raiden/commits{/sha}","git_commits_url":"https://api.github.com/repos/err508/raiden/git/commits{/sha}","comments_url":"https://api.github.com/repos/err508/raiden/comments{/number}","issue_comment_url":"https://api.github.com/repos/err508/raiden/issues/comments{/number}","contents_url":"https://api.github.com/repos/err508/raiden/contents/{+path}","compare_url":"https://api.github.com/repos/err508/raiden/compare/{base}...{head}","merges_url":"https://api.github.com/repos/err508/raiden/merges","archive_url":"https://api.github.com/repos/err508/raiden/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/err508/raiden/downloads","issues_url":"https://api.github.com/repos/err508/raiden/issues{/number}","pulls_url":"https://api.github.com/repos/err508/raiden/pulls{/number}","milestones_url":"https://api.github.com/repos/err508/raiden/milestones{/number}","notifications_url":"https://api.github.com/repos/err508/raiden/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/err508/raiden/labels{/name}","releases_url":"https://api.github.com/repos/err508/raiden/releases{/id}","deployments_url":"https://api.github.com/repos/err508/raiden/deployments","created_at":"2018-03-06T15:57:30Z","updated_at":"2018-08-24T14:56:18Z","pushed_at":"2018-10-12T10:46:12Z","git_url":"git://github.com/err508/raiden.git","ssh_url":"git@github.com:err508/raiden.git","clone_url":"https://github.com/err508/raiden.git","svn_url":"https://github.com/err508/raiden","homepage":null,"size":10814,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"master"}},"base":{"label":"raiden-network:master","ref":"master","sha":"2db8c448c0e57a3ed3ab04edf2e946dda9306863","user":{"login":"raiden-network","id":19666847,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NjY2ODQ3","avatar_url":"https://avatars1.githubusercontent.com/u/19666847?v=4","gravatar_id":"","url":"https://api.github.com/users/raiden-network","html_url":"https://github.com/raiden-network","followers_url":"https://api.github.com/users/raiden-network/followers","following_url":"https://api.github.com/users/raiden-network/following{/other_user}","gists_url":"https://api.github.com/users/raiden-network/gists{/gist_id}","starred_url":"https://api.github.com/users/raiden-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raiden-network/subscriptions","organizations_url":"https://api.github.com/users/raiden-network/orgs","repos_url":"https://api.github.com/users/raiden-network/repos","events_url":"https://api.github.com/users/raiden-network/events{/privacy}","received_events_url":"https://api.github.com/users/raiden-network/received_events","type":"Organization","site_admin":false},"repo":{"id":50646767,"node_id":"MDEwOlJlcG9zaXRvcnk1MDY0Njc2Nw==","name":"raiden","full_name":"raiden-network/raiden","private":false,"owner":{"login":"raiden-network","id":19666847,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NjY2ODQ3","avatar_url":"https://avatars1.githubusercontent.com/u/19666847?v=4","gravatar_id":"","url":"https://api.github.com/users/raiden-network","html_url":"https://github.com/raiden-network","followers_url":"https://api.github.com/users/raiden-network/followers","following_url":"https://api.github.com/users/raiden-network/following{/other_user}","gists_url":"https://api.github.com/users/raiden-network/gists{/gist_id}","starred_url":"https://api.github.com/users/raiden-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raiden-network/subscriptions","organizations_url":"https://api.github.com/users/raiden-network/orgs","repos_url":"https://api.github.com/users/raiden-network/repos","events_url":"https://api.github.com/users/raiden-network/events{/privacy}","received_events_url":"https://api.github.com/users/raiden-network/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/raiden-network/raiden","description":"Raiden Network","fork":false,"url":"https://api.github.com/repos/raiden-network/raiden","forks_url":"https://api.github.com/repos/raiden-network/raiden/forks","keys_url":"https://api.github.com/repos/raiden-network/raiden/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raiden-network/raiden/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raiden-network/raiden/teams","hooks_url":"https://api.github.com/repos/raiden-network/raiden/hooks","issue_events_url":"https://api.github.com/repos/raiden-network/raiden/issues/events{/number}","events_url":"https://api.github.com/repos/raiden-network/raiden/events","assignees_url":"https://api.github.com/repos/raiden-network/raiden/assignees{/user}","branches_url":"https://api.github.com/repos/raiden-network/raiden/branches{/branch}","tags_url":"https://api.github.com/repos/raiden-network/raiden/tags","blobs_url":"https://api.github.com/repos/raiden-network/raiden/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raiden-network/raiden/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raiden-network/raiden/git/refs{/sha}","trees_url":"https://api.github.com/repos/raiden-network/raiden/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raiden-network/raiden/statuses/{sha}","languages_url":"https://api.github.com/repos/raiden-network/raiden/languages","stargazers_url":"https://api.github.com/repos/raiden-network/raiden/stargazers","contributors_url":"https://api.github.com/repos/raiden-network/raiden/contributors","subscribers_url":"https://api.github.com/repos/raiden-network/raiden/subscribers","subscription_url":"https://api.github.com/repos/raiden-network/raiden/subscription","commits_url":"https://api.github.com/repos/raiden-network/raiden/commits{/sha}","git_commits_url":"https://api.github.com/repos/raiden-network/raiden/git/commits{/sha}","comments_url":"https://api.github.com/repos/raiden-network/raiden/comments{/number}","issue_comment_url":"https://api.github.com/repos/raiden-network/raiden/issues/comments{/number}","contents_url":"https://api.github.com/repos/raiden-network/raiden/contents/{+path}","compare_url":"https://api.github.com/repos/raiden-network/raiden/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raiden-network/raiden/merges","archive_url":"https://api.github.com/repos/raiden-network/raiden/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raiden-network/raiden/downloads","issues_url":"https://api.github.com/repos/raiden-network/raiden/issues{/number}","pulls_url":"https://api.github.com/repos/raiden-network/raiden/pulls{/number}","milestones_url":"https://api.github.com/repos/raiden-network/raiden/milestones{/number}","notifications_url":"https://api.github.com/repos/raiden-network/raiden/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raiden-network/raiden/labels{/name}","releases_url":"https://api.github.com/repos/raiden-network/raiden/releases{/id}","deployments_url":"https://api.github.com/repos/raiden-network/raiden/deployments","created_at":"2016-01-29T07:40:47Z","updated_at":"2018-10-12T10:46:07Z","pushed_at":"2018-10-12T10:46:13Z","git_url":"git://github.com/raiden-network/raiden.git","ssh_url":"git@github.com:raiden-network/raiden.git","clone_url":"https://github.com/raiden-network/raiden.git","svn_url":"https://github.com/raiden-network/raiden","homepage":null,"size":10819,"stargazers_count":1561,"watchers_count":1561,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":321,"mirror_url":null,"archived":false,"open_issues_count":190,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":321,"open_issues":190,"watchers":1561,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/raiden-network/raiden/pulls/2762"},"html":{"href":"https://github.com/raiden-network/raiden/pull/2762"},"issue":{"href":"https://api.github.com/repos/raiden-network/raiden/issues/2762"},"comments":{"href":"https://api.github.com/repos/raiden-network/raiden/issues/2762/comments"},"review_comments":{"href":"https://api.github.com/repos/raiden-network/raiden/pulls/2762/comments"},"review_comment":{"href":"https://api.github.com/repos/raiden-network/raiden/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raiden-network/raiden/pulls/2762/commits"},"statuses":{"href":"https://api.github.com/repos/raiden-network/raiden/statuses/188f7dfc33075a71745685f17b0a64558137f8b9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"err508"}}