{"action":"created","comment":{"url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/comments/74949414","id":74949414,"diff_hunk":"@@ -1514,6 +1514,11 @@ coluutils.requestParseTx = function requestParseTx(txid, headersToForward)\n       return btc.mul(100000000);\n     }\n \n+    function getHeadersToForward() {\n+      var context = session.get('context')\n+      return context && context.req && context.req.service && context.req.service.headersToForward\n+    }\n+","path":"coluutils.js","position":258,"original_position":258,"commit_id":"5ab2088de43a981129d1246fee79324088580b91","original_commit_id":"5ab2088de43a981129d1246fee79324088580b91","user":{"login":"oleiba","id":16321515,"avatar_url":"https://avatars.githubusercontent.com/u/16321515?v=3","gravatar_id":"","url":"https://api.github.com/users/oleiba","html_url":"https://github.com/oleiba","followers_url":"https://api.github.com/users/oleiba/followers","following_url":"https://api.github.com/users/oleiba/following{/other_user}","gists_url":"https://api.github.com/users/oleiba/gists{/gist_id}","starred_url":"https://api.github.com/users/oleiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleiba/subscriptions","organizations_url":"https://api.github.com/users/oleiba/orgs","repos_url":"https://api.github.com/users/oleiba/repos","events_url":"https://api.github.com/users/oleiba/events{/privacy}","received_events_url":"https://api.github.com/users/oleiba/received_events","type":"User","site_admin":false},"body":"Every function before `client.methods...` is called (node-rest-client call): it expands the request headers.\r\nFor example: see line 1406.","created_at":"2016-08-16T14:46:05Z","updated_at":"2016-08-16T14:46:05Z","html_url":"https://github.com/Colored-Coins/coloredcoinsd/pull/5#discussion_r74949414","pull_request_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/comments/74949414"},"html":{"href":"https://github.com/Colored-Coins/coloredcoinsd/pull/5#discussion_r74949414"},"pull_request":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/5","id":80866475,"html_url":"https://github.com/Colored-Coins/coloredcoinsd/pull/5","diff_url":"https://github.com/Colored-Coins/coloredcoinsd/pull/5.diff","patch_url":"https://github.com/Colored-Coins/coloredcoinsd/pull/5.patch","issue_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues/5","number":5,"state":"open","locked":false,"title":"use continuous-local-storage instead of passing request","user":{"login":"oleiba","id":16321515,"avatar_url":"https://avatars.githubusercontent.com/u/16321515?v=3","gravatar_id":"","url":"https://api.github.com/users/oleiba","html_url":"https://github.com/oleiba","followers_url":"https://api.github.com/users/oleiba/followers","following_url":"https://api.github.com/users/oleiba/following{/other_user}","gists_url":"https://api.github.com/users/oleiba/gists{/gist_id}","starred_url":"https://api.github.com/users/oleiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleiba/subscriptions","organizations_url":"https://api.github.com/users/oleiba/orgs","repos_url":"https://api.github.com/users/oleiba/repos","events_url":"https://api.github.com/users/oleiba/events{/privacy}","received_events_url":"https://api.github.com/users/oleiba/received_events","type":"User","site_admin":false},"body":"This is useful for elegantly passing correlation-id and other headers that are needed to be forwarded to other servers (currently only to block-explorer).\r\nlocal-storage context is encapsulating both request and response and can be used for more needs in the future.","created_at":"2016-08-10T20:58:36Z","updated_at":"2016-08-16T14:46:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f529ec4b694b34e2afc465c58bd2f6e66ffda612","assignee":{"login":"bejavu","id":10231448,"avatar_url":"https://avatars.githubusercontent.com/u/10231448?v=3","gravatar_id":"","url":"https://api.github.com/users/bejavu","html_url":"https://github.com/bejavu","followers_url":"https://api.github.com/users/bejavu/followers","following_url":"https://api.github.com/users/bejavu/following{/other_user}","gists_url":"https://api.github.com/users/bejavu/gists{/gist_id}","starred_url":"https://api.github.com/users/bejavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bejavu/subscriptions","organizations_url":"https://api.github.com/users/bejavu/orgs","repos_url":"https://api.github.com/users/bejavu/repos","events_url":"https://api.github.com/users/bejavu/events{/privacy}","received_events_url":"https://api.github.com/users/bejavu/received_events","type":"User","site_admin":false},"assignees":[{"login":"bejavu","id":10231448,"avatar_url":"https://avatars.githubusercontent.com/u/10231448?v=3","gravatar_id":"","url":"https://api.github.com/users/bejavu","html_url":"https://github.com/bejavu","followers_url":"https://api.github.com/users/bejavu/followers","following_url":"https://api.github.com/users/bejavu/following{/other_user}","gists_url":"https://api.github.com/users/bejavu/gists{/gist_id}","starred_url":"https://api.github.com/users/bejavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bejavu/subscriptions","organizations_url":"https://api.github.com/users/bejavu/orgs","repos_url":"https://api.github.com/users/bejavu/repos","events_url":"https://api.github.com/users/bejavu/events{/privacy}","received_events_url":"https://api.github.com/users/bejavu/received_events","type":"User","site_admin":false},{"login":"oleiba","id":16321515,"avatar_url":"https://avatars.githubusercontent.com/u/16321515?v=3","gravatar_id":"","url":"https://api.github.com/users/oleiba","html_url":"https://github.com/oleiba","followers_url":"https://api.github.com/users/oleiba/followers","following_url":"https://api.github.com/users/oleiba/following{/other_user}","gists_url":"https://api.github.com/users/oleiba/gists{/gist_id}","starred_url":"https://api.github.com/users/oleiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleiba/subscriptions","organizations_url":"https://api.github.com/users/oleiba/orgs","repos_url":"https://api.github.com/users/oleiba/repos","events_url":"https://api.github.com/users/oleiba/events{/privacy}","received_events_url":"https://api.github.com/users/oleiba/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues/5/comments","statuses_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/statuses/5ab2088de43a981129d1246fee79324088580b91","head":{"label":"Colored-Coins:correlation_id_continuation_local_storage","ref":"correlation_id_continuation_local_storage","sha":"5ab2088de43a981129d1246fee79324088580b91","user":{"login":"Colored-Coins","id":12785396,"avatar_url":"https://avatars.githubusercontent.com/u/12785396?v=3","gravatar_id":"","url":"https://api.github.com/users/Colored-Coins","html_url":"https://github.com/Colored-Coins","followers_url":"https://api.github.com/users/Colored-Coins/followers","following_url":"https://api.github.com/users/Colored-Coins/following{/other_user}","gists_url":"https://api.github.com/users/Colored-Coins/gists{/gist_id}","starred_url":"https://api.github.com/users/Colored-Coins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Colored-Coins/subscriptions","organizations_url":"https://api.github.com/users/Colored-Coins/orgs","repos_url":"https://api.github.com/users/Colored-Coins/repos","events_url":"https://api.github.com/users/Colored-Coins/events{/privacy}","received_events_url":"https://api.github.com/users/Colored-Coins/received_events","type":"Organization","site_admin":false},"repo":{"id":37636531,"name":"coloredcoinsd","full_name":"Colored-Coins/coloredcoinsd","owner":{"login":"Colored-Coins","id":12785396,"avatar_url":"https://avatars.githubusercontent.com/u/12785396?v=3","gravatar_id":"","url":"https://api.github.com/users/Colored-Coins","html_url":"https://github.com/Colored-Coins","followers_url":"https://api.github.com/users/Colored-Coins/followers","following_url":"https://api.github.com/users/Colored-Coins/following{/other_user}","gists_url":"https://api.github.com/users/Colored-Coins/gists{/gist_id}","starred_url":"https://api.github.com/users/Colored-Coins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Colored-Coins/subscriptions","organizations_url":"https://api.github.com/users/Colored-Coins/orgs","repos_url":"https://api.github.com/users/Colored-Coins/repos","events_url":"https://api.github.com/users/Colored-Coins/events{/privacy}","received_events_url":"https://api.github.com/users/Colored-Coins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Colored-Coins/coloredcoinsd","description":"Node.JS implementation for the Colored Coins protocol by Colu.","fork":false,"url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd","forks_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/forks","keys_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/teams","hooks_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/hooks","issue_events_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues/events{/number}","events_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/events","assignees_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/assignees{/user}","branches_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/branches{/branch}","tags_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/tags","blobs_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/statuses/{sha}","languages_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/languages","stargazers_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/stargazers","contributors_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/contributors","subscribers_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/subscribers","subscription_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/subscription","commits_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/contents/{+path}","compare_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/merges","archive_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/downloads","issues_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues{/number}","pulls_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls{/number}","milestones_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/milestones{/number}","notifications_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/labels{/name}","releases_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/releases{/id}","deployments_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/deployments","created_at":"2015-06-18T04:08:06Z","updated_at":"2016-07-08T10:43:59Z","pushed_at":"2016-08-11T09:47:18Z","git_url":"git://github.com/Colored-Coins/coloredcoinsd.git","ssh_url":"git@github.com:Colored-Coins/coloredcoinsd.git","clone_url":"https://github.com/Colored-Coins/coloredcoinsd.git","svn_url":"https://github.com/Colored-Coins/coloredcoinsd","homepage":"","size":231,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":13,"default_branch":"master"}},"base":{"label":"Colored-Coins:master","ref":"master","sha":"58a16bee6c3e843313cb922672fe0f189ac34d5f","user":{"login":"Colored-Coins","id":12785396,"avatar_url":"https://avatars.githubusercontent.com/u/12785396?v=3","gravatar_id":"","url":"https://api.github.com/users/Colored-Coins","html_url":"https://github.com/Colored-Coins","followers_url":"https://api.github.com/users/Colored-Coins/followers","following_url":"https://api.github.com/users/Colored-Coins/following{/other_user}","gists_url":"https://api.github.com/users/Colored-Coins/gists{/gist_id}","starred_url":"https://api.github.com/users/Colored-Coins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Colored-Coins/subscriptions","organizations_url":"https://api.github.com/users/Colored-Coins/orgs","repos_url":"https://api.github.com/users/Colored-Coins/repos","events_url":"https://api.github.com/users/Colored-Coins/events{/privacy}","received_events_url":"https://api.github.com/users/Colored-Coins/received_events","type":"Organization","site_admin":false},"repo":{"id":37636531,"name":"coloredcoinsd","full_name":"Colored-Coins/coloredcoinsd","owner":{"login":"Colored-Coins","id":12785396,"avatar_url":"https://avatars.githubusercontent.com/u/12785396?v=3","gravatar_id":"","url":"https://api.github.com/users/Colored-Coins","html_url":"https://github.com/Colored-Coins","followers_url":"https://api.github.com/users/Colored-Coins/followers","following_url":"https://api.github.com/users/Colored-Coins/following{/other_user}","gists_url":"https://api.github.com/users/Colored-Coins/gists{/gist_id}","starred_url":"https://api.github.com/users/Colored-Coins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Colored-Coins/subscriptions","organizations_url":"https://api.github.com/users/Colored-Coins/orgs","repos_url":"https://api.github.com/users/Colored-Coins/repos","events_url":"https://api.github.com/users/Colored-Coins/events{/privacy}","received_events_url":"https://api.github.com/users/Colored-Coins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Colored-Coins/coloredcoinsd","description":"Node.JS implementation for the Colored Coins protocol by Colu.","fork":false,"url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd","forks_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/forks","keys_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/teams","hooks_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/hooks","issue_events_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues/events{/number}","events_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/events","assignees_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/assignees{/user}","branches_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/branches{/branch}","tags_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/tags","blobs_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/statuses/{sha}","languages_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/languages","stargazers_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/stargazers","contributors_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/contributors","subscribers_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/subscribers","subscription_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/subscription","commits_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/contents/{+path}","compare_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/merges","archive_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/downloads","issues_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues{/number}","pulls_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls{/number}","milestones_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/milestones{/number}","notifications_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/labels{/name}","releases_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/releases{/id}","deployments_url":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/deployments","created_at":"2015-06-18T04:08:06Z","updated_at":"2016-07-08T10:43:59Z","pushed_at":"2016-08-11T09:47:18Z","git_url":"git://github.com/Colored-Coins/coloredcoinsd.git","ssh_url":"git@github.com:Colored-Coins/coloredcoinsd.git","clone_url":"https://github.com/Colored-Coins/coloredcoinsd.git","svn_url":"https://github.com/Colored-Coins/coloredcoinsd","homepage":"","size":231,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/5"},"html":{"href":"https://github.com/Colored-Coins/coloredcoinsd/pull/5"},"issue":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues/5"},"comments":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Colored-Coins/coloredcoinsd/statuses/5ab2088de43a981129d1246fee79324088580b91"}}}}
{"actor":{"display_login":"oleiba"}}