{"action":"created","comment":{"url":"https://api.github.com/repos/livepeer/go-livepeer/pulls/comments/243858127","pull_request_review_id":187728829,"id":243858127,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0Mzg1ODEyNw==","diff_hunk":"@@ -0,0 +1,258 @@\n+package pm\n+\n+import (\n+\t\"crypto/rand\"\n+\t\"math/big\"\n+\t\"reflect\"\n+\t\"strings\"\n+\t\"sync\"\n+\t\"sync/atomic\"\n+\t\"testing\"\n+\n+\t\"github.com/ethereum/go-ethereum/accounts\"\n+\tethcommon \"github.com/ethereum/go-ethereum/common\"\n+)\n+\n+func TestStartSession_GivenSomeRecipientRandHash_UsesItAsSessionId(t *testing.T) {\n+\tsender := defaultNewSender(t)\n+\trecipient := ethcommon.Address{}\n+\tticketParams := defaultTicketParams(t)\n+\texpectedSessionID := hashToHex(ticketParams.RecipientRandHash)\n+\n+\tsessionID := sender.StartSession(recipient, TicketParams{\n+\t\tFaceValue:         big.NewInt(0),\n+\t\tWinProb:           big.NewInt(0),\n+\t\tSeed:              big.NewInt(0),\n+\t\tRecipientRandHash: ticketParams.RecipientRandHash,\n+\t})\n+\n+\tif sessionID != expectedSessionID {\n+\t\tt.Errorf(\"expected %v to equal %v\", sessionID, expectedSessionID)\n+\t}\n+}\n+\n+func TestStartSession_GivenConcurrentUsage_RecordsAllSessions(t *testing.T) {\n+\tsender := defaultNewSender(t)\n+\trecipient := ethcommon.Address{}\n+\n+\tvar sessions []string\n+\tvar sessionCount int32\n+\tch := make(chan struct{})\n+\tfor i := 0; i < 100; i++ {\n+\t\tticketParams := defaultTicketParams(t)\n+\t\texpectedSessionID := hashToHex(ticketParams.RecipientRandHash)\n+\t\tsessions = append(sessions, expectedSessionID)\n+\n+\t\tgo func() {\n+\t\t\tsender.StartSession(recipient, TicketParams{\n+\t\t\t\tFaceValue:         big.NewInt(0),\n+\t\t\t\tWinProb:           big.NewInt(0),\n+\t\t\t\tSeed:              big.NewInt(0),\n+\t\t\t\tRecipientRandHash: ticketParams.RecipientRandHash,\n+\t\t\t})\n+\t\t\tcurrentCount := atomic.AddInt32(&sessionCount, 1)\n+\t\t\tif currentCount >= 100 {\n+\t\t\t\tch <- struct{}{}\n+\t\t\t}\n+\t\t}()\n+\t}\n+\t// waiting for all session to be created\n+\t<-ch\n+\n+\tfor _, sessionID := range sessions {\n+\t\t_, ok := sender.sessions.Load(sessionID)\n+\t\tif !ok {\n+\t\t\tt.Errorf(\"expected to find sessionID in sender. sessionID: %v\", sessionID)\n+\t\t}\n+\t}\n+}\n+\n+func TestCreateTicket_GivenNonexistentSession_ReturnsError(t *testing.T) {\n+\tsender := defaultNewSender(t)\n+\n+\t_, _, _, err := sender.CreateTicket(\"foo\")\n+\n+\tif err == nil {\n+\t\tt.Errorf(\"expected an error for nonexistent session\")\n+\t}\n+\tif !strings.Contains(err.Error(), \"unknown session\") {\n+\t\tt.Errorf(\"expected error to contain 'unknown session' but instead got: %v\", err.Error())\n+\t}\n+}\n+\n+func TestCreateTicket_GivenValidSessionId_UsesSessionParamsInTicket(t *testing.T) {\n+\tsender := defaultNewSender(t)\n+\tam := sender.accountManager.(*stubAccountManager)\n+\tam.signShouldFail = false\n+\tam.saveSignRequest = true\n+\tam.signResponse = randBytesOrFatal(42, t)\n+\tsenderAddress := sender.accountManager.Account().Address\n+\trecipient := randAddressOrFatal(t)\n+\trecipientRandHash := randHashOrFatal(t)\n+\tticketParams := TicketParams{\n+\t\tFaceValue:         big.NewInt(1111),\n+\t\tWinProb:           big.NewInt(2222),\n+\t\tSeed:              big.NewInt(3333),\n+\t\tRecipientRandHash: recipientRandHash,\n+\t}\n+\tsessionID := sender.StartSession(recipient, ticketParams)\n+\n+\tticket, actualSeed, actualSig, err := sender.CreateTicket(sessionID)\n+\n+\tif err != nil {\n+\t\tt.Errorf(\"error tryint to create a ticket: %v\", err)\n+\t}\n+\tif ticket.Sender != senderAddress {\n+\t\tt.Errorf(\"expected ticket sender %v to be %v\", ticket.Sender, senderAddress)\n+\t}\n+\tif ticket.Recipient != recipient {\n+\t\tt.Errorf(\"expeceted ticket recipient %v to be %v\", ticket.Recipient, recipient)\n+\t}\n+\tif ticket.RecipientRandHash != recipientRandHash {\n+\t\tt.Errorf(\"expected ticket recipientRandHash %v to be %v\", ticket.RecipientRandHash, recipientRandHash)\n+\t}\n+\tif ticket.FaceValue != ticketParams.FaceValue {\n+\t\tt.Errorf(\"expected ticket FaceValue %v to be %v\", ticket.FaceValue, ticketParams.FaceValue)\n+\t}\n+\tif ticket.WinProb != ticketParams.WinProb {\n+\t\tt.Errorf(\"expected ticket WinProb %v to be %v\", ticket.WinProb, ticketParams.WinProb)\n+\t}\n+\tif ticket.SenderNonce != 1 {\n+\t\tt.Errorf(\"expected ticket SenderNonce %d to be 1\", ticket.SenderNonce)\n+\t}\n+\tif actualSeed != ticketParams.Seed {\n+\t\tt.Errorf(\"expected actual seed %d to be %d\", actualSeed, ticketParams.Seed)\n+\t}\n+\tif !reflect.DeepEqual(actualSig, am.signResponse) {","path":"pm/sender_test.go","position":126,"original_position":126,"commit_id":"91f64834d454c9040db7556ee0523631a3cc0788","original_commit_id":"91f64834d454c9040db7556ee0523631a3cc0788","user":{"login":"yondonfu","id":5933273,"node_id":"MDQ6VXNlcjU5MzMyNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5933273?v=4","gravatar_id":"","url":"https://api.github.com/users/yondonfu","html_url":"https://github.com/yondonfu","followers_url":"https://api.github.com/users/yondonfu/followers","following_url":"https://api.github.com/users/yondonfu/following{/other_user}","gists_url":"https://api.github.com/users/yondonfu/gists{/gist_id}","starred_url":"https://api.github.com/users/yondonfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yondonfu/subscriptions","organizations_url":"https://api.github.com/users/yondonfu/orgs","repos_url":"https://api.github.com/users/yondonfu/repos","events_url":"https://api.github.com/users/yondonfu/events{/privacy}","received_events_url":"https://api.github.com/users/yondonfu/received_events","type":"User","site_admin":false},"body":"Thoughts on using [bytes.Equal](https://golang.org/pkg/bytes/#Equal) here for clarity on types being compared?","created_at":"2018-12-24T21:03:01Z","updated_at":"2018-12-24T21:09:52Z","html_url":"https://github.com/livepeer/go-livepeer/pull/651#discussion_r243858127","pull_request_url":"https://api.github.com/repos/livepeer/go-livepeer/pulls/651","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/livepeer/go-livepeer/pulls/comments/243858127"},"html":{"href":"https://github.com/livepeer/go-livepeer/pull/651#discussion_r243858127"},"pull_request":{"href":"https://api.github.com/repos/livepeer/go-livepeer/pulls/651"}}},"pull_request":{"url":"https://api.github.com/repos/livepeer/go-livepeer/pulls/651","id":240598535,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNTk4NTM1","html_url":"https://github.com/livepeer/go-livepeer/pull/651","diff_url":"https://github.com/livepeer/go-livepeer/pull/651.diff","patch_url":"https://github.com/livepeer/go-livepeer/pull/651.patch","issue_url":"https://api.github.com/repos/livepeer/go-livepeer/issues/651","number":651,"state":"open","locked":false,"title":"PM Sender","user":{"login":"eladmallel","id":1137044,"node_id":"MDQ6VXNlcjExMzcwNDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1137044?v=4","gravatar_id":"","url":"https://api.github.com/users/eladmallel","html_url":"https://github.com/eladmallel","followers_url":"https://api.github.com/users/eladmallel/followers","following_url":"https://api.github.com/users/eladmallel/following{/other_user}","gists_url":"https://api.github.com/users/eladmallel/gists{/gist_id}","starred_url":"https://api.github.com/users/eladmallel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eladmallel/subscriptions","organizations_url":"https://api.github.com/users/eladmallel/orgs","repos_url":"https://api.github.com/users/eladmallel/repos","events_url":"https://api.github.com/users/eladmallel/events{/privacy}","received_events_url":"https://api.github.com/users/eladmallel/received_events","type":"User","site_admin":false},"body":"**What does this pull request do? Explain your changes. (required)**\r\nAdds the PM `Sender` interface and implementation, allowing Bs to create PM tickets based on params received from O (B/O PM param exchange has yet to be implemented).\r\n\r\n**Specific updates (required)**\r\n<!--- List out all significant updates your code introduces -->\r\n- `pm.Sender` with support for `StartSession` and `CreateTicket`\r\n- `StartSession` begins a PM session with specific params, e.g. `recipientRandHash`, `winProb` and a few more\r\n- `CreateTicket` creates the next valid ticket given a specific session\r\n- Refactored `AccountManager` to be an interface so it can be stubbed out in `sender_test.go`\r\n\r\n**How did you test each of these updates (required)**\r\n\r\n- Unit tests for `defaultSender`, which is the only `Sender` implementation as of now\r\n- Used `go test -race` and made sure the race condition detector did not find any race conditions\r\n\r\n**Does this pull request close any open issues?**\r\n\r\n- Fixes #629 \r\n\r\n**Checklist:**\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] README and other documentation updated\r\n- [ ] Node runs in OSX and devenv\r\n- [x] All tests in `./test.sh` pass\r\n","created_at":"2018-12-21T23:25:43Z","updated_at":"2018-12-24T21:09:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55b39e008e613d097b42e22bcd2b07bc5b1385b4","assignee":null,"assignees":[],"requested_reviewers":[{"login":"j0sh","id":292510,"node_id":"MDQ6VXNlcjI5MjUxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/292510?v=4","gravatar_id":"","url":"https://api.github.com/users/j0sh","html_url":"https://github.com/j0sh","followers_url":"https://api.github.com/users/j0sh/followers","following_url":"https://api.github.com/users/j0sh/following{/other_user}","gists_url":"https://api.github.com/users/j0sh/gists{/gist_id}","starred_url":"https://api.github.com/users/j0sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j0sh/subscriptions","organizations_url":"https://api.github.com/users/j0sh/orgs","repos_url":"https://api.github.com/users/j0sh/repos","events_url":"https://api.github.com/users/j0sh/events{/privacy}","received_events_url":"https://api.github.com/users/j0sh/received_events","type":"User","site_admin":false},{"login":"ericxtang","id":345743,"node_id":"MDQ6VXNlcjM0NTc0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/345743?v=4","gravatar_id":"","url":"https://api.github.com/users/ericxtang","html_url":"https://github.com/ericxtang","followers_url":"https://api.github.com/users/ericxtang/followers","following_url":"https://api.github.com/users/ericxtang/following{/other_user}","gists_url":"https://api.github.com/users/ericxtang/gists{/gist_id}","starred_url":"https://api.github.com/users/ericxtang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericxtang/subscriptions","organizations_url":"https://api.github.com/users/ericxtang/orgs","repos_url":"https://api.github.com/users/ericxtang/repos","events_url":"https://api.github.com/users/ericxtang/events{/privacy}","received_events_url":"https://api.github.com/users/ericxtang/received_events","type":"User","site_admin":false},{"login":"angyangie","id":16169518,"node_id":"MDQ6VXNlcjE2MTY5NTE4","avatar_url":"https://avatars0.githubusercontent.com/u/16169518?v=4","gravatar_id":"","url":"https://api.github.com/users/angyangie","html_url":"https://github.com/angyangie","followers_url":"https://api.github.com/users/angyangie/followers","following_url":"https://api.github.com/users/angyangie/following{/other_user}","gists_url":"https://api.github.com/users/angyangie/gists{/gist_id}","starred_url":"https://api.github.com/users/angyangie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angyangie/subscriptions","organizations_url":"https://api.github.com/users/angyangie/orgs","repos_url":"https://api.github.com/users/angyangie/repos","events_url":"https://api.github.com/users/angyangie/events{/privacy}","received_events_url":"https://api.github.com/users/angyangie/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/livepeer/go-livepeer/pulls/651/commits","review_comments_url":"https://api.github.com/repos/livepeer/go-livepeer/pulls/651/comments","review_comment_url":"https://api.github.com/repos/livepeer/go-livepeer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/livepeer/go-livepeer/issues/651/comments","statuses_url":"https://api.github.com/repos/livepeer/go-livepeer/statuses/91f64834d454c9040db7556ee0523631a3cc0788","head":{"label":"livepeer:em/pm-sender","ref":"em/pm-sender","sha":"91f64834d454c9040db7556ee0523631a3cc0788","user":{"login":"livepeer","id":25355022,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzU1MDIy","avatar_url":"https://avatars2.githubusercontent.com/u/25355022?v=4","gravatar_id":"","url":"https://api.github.com/users/livepeer","html_url":"https://github.com/livepeer","followers_url":"https://api.github.com/users/livepeer/followers","following_url":"https://api.github.com/users/livepeer/following{/other_user}","gists_url":"https://api.github.com/users/livepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/livepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livepeer/subscriptions","organizations_url":"https://api.github.com/users/livepeer/orgs","repos_url":"https://api.github.com/users/livepeer/repos","events_url":"https://api.github.com/users/livepeer/events{/privacy}","received_events_url":"https://api.github.com/users/livepeer/received_events","type":"Organization","site_admin":false},"repo":{"id":94728962,"node_id":"MDEwOlJlcG9zaXRvcnk5NDcyODk2Mg==","name":"go-livepeer","full_name":"livepeer/go-livepeer","private":false,"owner":{"login":"livepeer","id":25355022,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzU1MDIy","avatar_url":"https://avatars2.githubusercontent.com/u/25355022?v=4","gravatar_id":"","url":"https://api.github.com/users/livepeer","html_url":"https://github.com/livepeer","followers_url":"https://api.github.com/users/livepeer/followers","following_url":"https://api.github.com/users/livepeer/following{/other_user}","gists_url":"https://api.github.com/users/livepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/livepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livepeer/subscriptions","organizations_url":"https://api.github.com/users/livepeer/orgs","repos_url":"https://api.github.com/users/livepeer/repos","events_url":"https://api.github.com/users/livepeer/events{/privacy}","received_events_url":"https://api.github.com/users/livepeer/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/livepeer/go-livepeer","description":"Official Go implementation of the Livepeer protocol","fork":false,"url":"https://api.github.com/repos/livepeer/go-livepeer","forks_url":"https://api.github.com/repos/livepeer/go-livepeer/forks","keys_url":"https://api.github.com/repos/livepeer/go-livepeer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/livepeer/go-livepeer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/livepeer/go-livepeer/teams","hooks_url":"https://api.github.com/repos/livepeer/go-livepeer/hooks","issue_events_url":"https://api.github.com/repos/livepeer/go-livepeer/issues/events{/number}","events_url":"https://api.github.com/repos/livepeer/go-livepeer/events","assignees_url":"https://api.github.com/repos/livepeer/go-livepeer/assignees{/user}","branches_url":"https://api.github.com/repos/livepeer/go-livepeer/branches{/branch}","tags_url":"https://api.github.com/repos/livepeer/go-livepeer/tags","blobs_url":"https://api.github.com/repos/livepeer/go-livepeer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/livepeer/go-livepeer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/livepeer/go-livepeer/git/refs{/sha}","trees_url":"https://api.github.com/repos/livepeer/go-livepeer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/livepeer/go-livepeer/statuses/{sha}","languages_url":"https://api.github.com/repos/livepeer/go-livepeer/languages","stargazers_url":"https://api.github.com/repos/livepeer/go-livepeer/stargazers","contributors_url":"https://api.github.com/repos/livepeer/go-livepeer/contributors","subscribers_url":"https://api.github.com/repos/livepeer/go-livepeer/subscribers","subscription_url":"https://api.github.com/repos/livepeer/go-livepeer/subscription","commits_url":"https://api.github.com/repos/livepeer/go-livepeer/commits{/sha}","git_commits_url":"https://api.github.com/repos/livepeer/go-livepeer/git/commits{/sha}","comments_url":"https://api.github.com/repos/livepeer/go-livepeer/comments{/number}","issue_comment_url":"https://api.github.com/repos/livepeer/go-livepeer/issues/comments{/number}","contents_url":"https://api.github.com/repos/livepeer/go-livepeer/contents/{+path}","compare_url":"https://api.github.com/repos/livepeer/go-livepeer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/livepeer/go-livepeer/merges","archive_url":"https://api.github.com/repos/livepeer/go-livepeer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/livepeer/go-livepeer/downloads","issues_url":"https://api.github.com/repos/livepeer/go-livepeer/issues{/number}","pulls_url":"https://api.github.com/repos/livepeer/go-livepeer/pulls{/number}","milestones_url":"https://api.github.com/repos/livepeer/go-livepeer/milestones{/number}","notifications_url":"https://api.github.com/repos/livepeer/go-livepeer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/livepeer/go-livepeer/labels{/name}","releases_url":"https://api.github.com/repos/livepeer/go-livepeer/releases{/id}","deployments_url":"https://api.github.com/repos/livepeer/go-livepeer/deployments","created_at":"2017-06-19T02:36:09Z","updated_at":"2018-12-20T23:22:23Z","pushed_at":"2018-12-21T23:25:44Z","git_url":"git://github.com/livepeer/go-livepeer.git","ssh_url":"git@github.com:livepeer/go-livepeer.git","clone_url":"https://github.com/livepeer/go-livepeer.git","svn_url":"https://github.com/livepeer/go-livepeer","homepage":"http://livepeer.org","size":89072,"stargazers_count":169,"watchers_count":169,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":121,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":42,"open_issues":121,"watchers":169,"default_branch":"master"}},"base":{"label":"livepeer:master","ref":"master","sha":"bb7d2741ace20f9fd5255122f27559ee229a9724","user":{"login":"livepeer","id":25355022,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzU1MDIy","avatar_url":"https://avatars2.githubusercontent.com/u/25355022?v=4","gravatar_id":"","url":"https://api.github.com/users/livepeer","html_url":"https://github.com/livepeer","followers_url":"https://api.github.com/users/livepeer/followers","following_url":"https://api.github.com/users/livepeer/following{/other_user}","gists_url":"https://api.github.com/users/livepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/livepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livepeer/subscriptions","organizations_url":"https://api.github.com/users/livepeer/orgs","repos_url":"https://api.github.com/users/livepeer/repos","events_url":"https://api.github.com/users/livepeer/events{/privacy}","received_events_url":"https://api.github.com/users/livepeer/received_events","type":"Organization","site_admin":false},"repo":{"id":94728962,"node_id":"MDEwOlJlcG9zaXRvcnk5NDcyODk2Mg==","name":"go-livepeer","full_name":"livepeer/go-livepeer","private":false,"owner":{"login":"livepeer","id":25355022,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzU1MDIy","avatar_url":"https://avatars2.githubusercontent.com/u/25355022?v=4","gravatar_id":"","url":"https://api.github.com/users/livepeer","html_url":"https://github.com/livepeer","followers_url":"https://api.github.com/users/livepeer/followers","following_url":"https://api.github.com/users/livepeer/following{/other_user}","gists_url":"https://api.github.com/users/livepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/livepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livepeer/subscriptions","organizations_url":"https://api.github.com/users/livepeer/orgs","repos_url":"https://api.github.com/users/livepeer/repos","events_url":"https://api.github.com/users/livepeer/events{/privacy}","received_events_url":"https://api.github.com/users/livepeer/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/livepeer/go-livepeer","description":"Official Go implementation of the Livepeer protocol","fork":false,"url":"https://api.github.com/repos/livepeer/go-livepeer","forks_url":"https://api.github.com/repos/livepeer/go-livepeer/forks","keys_url":"https://api.github.com/repos/livepeer/go-livepeer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/livepeer/go-livepeer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/livepeer/go-livepeer/teams","hooks_url":"https://api.github.com/repos/livepeer/go-livepeer/hooks","issue_events_url":"https://api.github.com/repos/livepeer/go-livepeer/issues/events{/number}","events_url":"https://api.github.com/repos/livepeer/go-livepeer/events","assignees_url":"https://api.github.com/repos/livepeer/go-livepeer/assignees{/user}","branches_url":"https://api.github.com/repos/livepeer/go-livepeer/branches{/branch}","tags_url":"https://api.github.com/repos/livepeer/go-livepeer/tags","blobs_url":"https://api.github.com/repos/livepeer/go-livepeer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/livepeer/go-livepeer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/livepeer/go-livepeer/git/refs{/sha}","trees_url":"https://api.github.com/repos/livepeer/go-livepeer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/livepeer/go-livepeer/statuses/{sha}","languages_url":"https://api.github.com/repos/livepeer/go-livepeer/languages","stargazers_url":"https://api.github.com/repos/livepeer/go-livepeer/stargazers","contributors_url":"https://api.github.com/repos/livepeer/go-livepeer/contributors","subscribers_url":"https://api.github.com/repos/livepeer/go-livepeer/subscribers","subscription_url":"https://api.github.com/repos/livepeer/go-livepeer/subscription","commits_url":"https://api.github.com/repos/livepeer/go-livepeer/commits{/sha}","git_commits_url":"https://api.github.com/repos/livepeer/go-livepeer/git/commits{/sha}","comments_url":"https://api.github.com/repos/livepeer/go-livepeer/comments{/number}","issue_comment_url":"https://api.github.com/repos/livepeer/go-livepeer/issues/comments{/number}","contents_url":"https://api.github.com/repos/livepeer/go-livepeer/contents/{+path}","compare_url":"https://api.github.com/repos/livepeer/go-livepeer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/livepeer/go-livepeer/merges","archive_url":"https://api.github.com/repos/livepeer/go-livepeer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/livepeer/go-livepeer/downloads","issues_url":"https://api.github.com/repos/livepeer/go-livepeer/issues{/number}","pulls_url":"https://api.github.com/repos/livepeer/go-livepeer/pulls{/number}","milestones_url":"https://api.github.com/repos/livepeer/go-livepeer/milestones{/number}","notifications_url":"https://api.github.com/repos/livepeer/go-livepeer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/livepeer/go-livepeer/labels{/name}","releases_url":"https://api.github.com/repos/livepeer/go-livepeer/releases{/id}","deployments_url":"https://api.github.com/repos/livepeer/go-livepeer/deployments","created_at":"2017-06-19T02:36:09Z","updated_at":"2018-12-20T23:22:23Z","pushed_at":"2018-12-21T23:25:44Z","git_url":"git://github.com/livepeer/go-livepeer.git","ssh_url":"git@github.com:livepeer/go-livepeer.git","clone_url":"https://github.com/livepeer/go-livepeer.git","svn_url":"https://github.com/livepeer/go-livepeer","homepage":"http://livepeer.org","size":89072,"stargazers_count":169,"watchers_count":169,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":121,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":42,"open_issues":121,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/livepeer/go-livepeer/pulls/651"},"html":{"href":"https://github.com/livepeer/go-livepeer/pull/651"},"issue":{"href":"https://api.github.com/repos/livepeer/go-livepeer/issues/651"},"comments":{"href":"https://api.github.com/repos/livepeer/go-livepeer/issues/651/comments"},"review_comments":{"href":"https://api.github.com/repos/livepeer/go-livepeer/pulls/651/comments"},"review_comment":{"href":"https://api.github.com/repos/livepeer/go-livepeer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/livepeer/go-livepeer/pulls/651/commits"},"statuses":{"href":"https://api.github.com/repos/livepeer/go-livepeer/statuses/91f64834d454c9040db7556ee0523631a3cc0788"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"yondonfu"}}