{"action":"created","comment":{"url":"https://api.github.com/repos/mediachain/mediachain/pulls/comments/62087727","id":62087727,"diff_hunk":"@@ -60,10 +63,10 @@ object StateMachine {\n     private def insertRecord(cmd: JournalInsert): Xor[JournalError, CanonicalEntry] = {\n       val rec = cmd.record\n       val ref = datastore.put(rec)\n-      index.get(ref) match {\n+      state.index.get(ref) match {","path":"transactor/src/main/scala/io/mediachain/transactor/StateMachine.scala","position":43,"original_position":43,"commit_id":"834f2a74431df9ccbcb89886ec8e730b9684b4b5","original_commit_id":"834f2a74431df9ccbcb89886ec8e730b9684b4b5","user":{"login":"bigs","id":213338,"avatar_url":"https://avatars.githubusercontent.com/u/213338?v=3","gravatar_id":"","url":"https://api.github.com/users/bigs","html_url":"https://github.com/bigs","followers_url":"https://api.github.com/users/bigs/followers","following_url":"https://api.github.com/users/bigs/following{/other_user}","gists_url":"https://api.github.com/users/bigs/gists{/gist_id}","starred_url":"https://api.github.com/users/bigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigs/subscriptions","organizations_url":"https://api.github.com/users/bigs/orgs","repos_url":"https://api.github.com/users/bigs/repos","events_url":"https://api.github.com/users/bigs/events{/privacy}","received_events_url":"https://api.github.com/users/bigs/received_events","type":"User","site_admin":false},"body":"not too important but this diff could be eliminated w\r\n\r\n```scala\r\nval index = state.index\r\n```","created_at":"2016-05-04T18:14:50Z","updated_at":"2016-05-04T18:14:50Z","html_url":"https://github.com/mediachain/mediachain/pull/53#discussion_r62087727","pull_request_url":"https://api.github.com/repos/mediachain/mediachain/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/mediachain/mediachain/pulls/comments/62087727"},"html":{"href":"https://github.com/mediachain/mediachain/pull/53#discussion_r62087727"},"pull_request":{"href":"https://api.github.com/repos/mediachain/mediachain/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/mediachain/mediachain/pulls/53","id":68820086,"html_url":"https://github.com/mediachain/mediachain/pull/53","diff_url":"https://github.com/mediachain/mediachain/pull/53.diff","patch_url":"https://github.com/mediachain/mediachain/pull/53.patch","issue_url":"https://api.github.com/repos/mediachain/mediachain/issues/53","number":53,"state":"open","locked":false,"title":"copycat serializers","user":{"login":"vyzo","id":36426,"avatar_url":"https://avatars.githubusercontent.com/u/36426?v=3","gravatar_id":"","url":"https://api.github.com/users/vyzo","html_url":"https://github.com/vyzo","followers_url":"https://api.github.com/users/vyzo/followers","following_url":"https://api.github.com/users/vyzo/following{/other_user}","gists_url":"https://api.github.com/users/vyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/vyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyzo/subscriptions","organizations_url":"https://api.github.com/users/vyzo/orgs","repos_url":"https://api.github.com/users/vyzo/repos","events_url":"https://api.github.com/users/vyzo/events{/privacy}","received_events_url":"https://api.github.com/users/vyzo/received_events","type":"User","site_admin":false},"body":"#22 \r\n- Drops the whitelist for copycat serialization and registers all types that are directly serialized.\r\n- The JournalStateMachine is refactored to keep the serialized state in a single object.","created_at":"2016-05-04T07:24:59Z","updated_at":"2016-05-04T18:14:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6114d1ba5c4d27cd29a6f5c9bac16dd99a73292c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mediachain/mediachain/pulls/53/commits","review_comments_url":"https://api.github.com/repos/mediachain/mediachain/pulls/53/comments","review_comment_url":"https://api.github.com/repos/mediachain/mediachain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mediachain/mediachain/issues/53/comments","statuses_url":"https://api.github.com/repos/mediachain/mediachain/statuses/834f2a74431df9ccbcb89886ec8e730b9684b4b5","head":{"label":"mediachain:vyzo-copycat-serializers","ref":"vyzo-copycat-serializers","sha":"834f2a74431df9ccbcb89886ec8e730b9684b4b5","user":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"repo":{"id":49516983,"name":"mediachain","full_name":"mediachain/mediachain","owner":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mediachain/mediachain","description":"A distributed metadata protocol","fork":false,"url":"https://api.github.com/repos/mediachain/mediachain","forks_url":"https://api.github.com/repos/mediachain/mediachain/forks","keys_url":"https://api.github.com/repos/mediachain/mediachain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mediachain/mediachain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mediachain/mediachain/teams","hooks_url":"https://api.github.com/repos/mediachain/mediachain/hooks","issue_events_url":"https://api.github.com/repos/mediachain/mediachain/issues/events{/number}","events_url":"https://api.github.com/repos/mediachain/mediachain/events","assignees_url":"https://api.github.com/repos/mediachain/mediachain/assignees{/user}","branches_url":"https://api.github.com/repos/mediachain/mediachain/branches{/branch}","tags_url":"https://api.github.com/repos/mediachain/mediachain/tags","blobs_url":"https://api.github.com/repos/mediachain/mediachain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mediachain/mediachain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mediachain/mediachain/git/refs{/sha}","trees_url":"https://api.github.com/repos/mediachain/mediachain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mediachain/mediachain/statuses/{sha}","languages_url":"https://api.github.com/repos/mediachain/mediachain/languages","stargazers_url":"https://api.github.com/repos/mediachain/mediachain/stargazers","contributors_url":"https://api.github.com/repos/mediachain/mediachain/contributors","subscribers_url":"https://api.github.com/repos/mediachain/mediachain/subscribers","subscription_url":"https://api.github.com/repos/mediachain/mediachain/subscription","commits_url":"https://api.github.com/repos/mediachain/mediachain/commits{/sha}","git_commits_url":"https://api.github.com/repos/mediachain/mediachain/git/commits{/sha}","comments_url":"https://api.github.com/repos/mediachain/mediachain/comments{/number}","issue_comment_url":"https://api.github.com/repos/mediachain/mediachain/issues/comments{/number}","contents_url":"https://api.github.com/repos/mediachain/mediachain/contents/{+path}","compare_url":"https://api.github.com/repos/mediachain/mediachain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mediachain/mediachain/merges","archive_url":"https://api.github.com/repos/mediachain/mediachain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mediachain/mediachain/downloads","issues_url":"https://api.github.com/repos/mediachain/mediachain/issues{/number}","pulls_url":"https://api.github.com/repos/mediachain/mediachain/pulls{/number}","milestones_url":"https://api.github.com/repos/mediachain/mediachain/milestones{/number}","notifications_url":"https://api.github.com/repos/mediachain/mediachain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mediachain/mediachain/labels{/name}","releases_url":"https://api.github.com/repos/mediachain/mediachain/releases{/id}","deployments_url":"https://api.github.com/repos/mediachain/mediachain/deployments","created_at":"2016-01-12T17:29:52Z","updated_at":"2016-04-30T09:08:49Z","pushed_at":"2016-05-04T17:35:26Z","git_url":"git://github.com/mediachain/mediachain.git","ssh_url":"git@github.com:mediachain/mediachain.git","clone_url":"https://github.com/mediachain/mediachain.git","svn_url":"https://github.com/mediachain/mediachain","homepage":"https://medium.com/mine-labs/mediachain-483f49cbe37a","size":568,"stargazers_count":33,"watchers_count":33,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":33,"default_branch":"master"}},"base":{"label":"mediachain:master","ref":"master","sha":"8444dee9a1576613dc9220b8ddcb632ebe49a40f","user":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"repo":{"id":49516983,"name":"mediachain","full_name":"mediachain/mediachain","owner":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mediachain/mediachain","description":"A distributed metadata protocol","fork":false,"url":"https://api.github.com/repos/mediachain/mediachain","forks_url":"https://api.github.com/repos/mediachain/mediachain/forks","keys_url":"https://api.github.com/repos/mediachain/mediachain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mediachain/mediachain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mediachain/mediachain/teams","hooks_url":"https://api.github.com/repos/mediachain/mediachain/hooks","issue_events_url":"https://api.github.com/repos/mediachain/mediachain/issues/events{/number}","events_url":"https://api.github.com/repos/mediachain/mediachain/events","assignees_url":"https://api.github.com/repos/mediachain/mediachain/assignees{/user}","branches_url":"https://api.github.com/repos/mediachain/mediachain/branches{/branch}","tags_url":"https://api.github.com/repos/mediachain/mediachain/tags","blobs_url":"https://api.github.com/repos/mediachain/mediachain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mediachain/mediachain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mediachain/mediachain/git/refs{/sha}","trees_url":"https://api.github.com/repos/mediachain/mediachain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mediachain/mediachain/statuses/{sha}","languages_url":"https://api.github.com/repos/mediachain/mediachain/languages","stargazers_url":"https://api.github.com/repos/mediachain/mediachain/stargazers","contributors_url":"https://api.github.com/repos/mediachain/mediachain/contributors","subscribers_url":"https://api.github.com/repos/mediachain/mediachain/subscribers","subscription_url":"https://api.github.com/repos/mediachain/mediachain/subscription","commits_url":"https://api.github.com/repos/mediachain/mediachain/commits{/sha}","git_commits_url":"https://api.github.com/repos/mediachain/mediachain/git/commits{/sha}","comments_url":"https://api.github.com/repos/mediachain/mediachain/comments{/number}","issue_comment_url":"https://api.github.com/repos/mediachain/mediachain/issues/comments{/number}","contents_url":"https://api.github.com/repos/mediachain/mediachain/contents/{+path}","compare_url":"https://api.github.com/repos/mediachain/mediachain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mediachain/mediachain/merges","archive_url":"https://api.github.com/repos/mediachain/mediachain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mediachain/mediachain/downloads","issues_url":"https://api.github.com/repos/mediachain/mediachain/issues{/number}","pulls_url":"https://api.github.com/repos/mediachain/mediachain/pulls{/number}","milestones_url":"https://api.github.com/repos/mediachain/mediachain/milestones{/number}","notifications_url":"https://api.github.com/repos/mediachain/mediachain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mediachain/mediachain/labels{/name}","releases_url":"https://api.github.com/repos/mediachain/mediachain/releases{/id}","deployments_url":"https://api.github.com/repos/mediachain/mediachain/deployments","created_at":"2016-01-12T17:29:52Z","updated_at":"2016-04-30T09:08:49Z","pushed_at":"2016-05-04T17:35:26Z","git_url":"git://github.com/mediachain/mediachain.git","ssh_url":"git@github.com:mediachain/mediachain.git","clone_url":"https://github.com/mediachain/mediachain.git","svn_url":"https://github.com/mediachain/mediachain","homepage":"https://medium.com/mine-labs/mediachain-483f49cbe37a","size":568,"stargazers_count":33,"watchers_count":33,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mediachain/mediachain/pulls/53"},"html":{"href":"https://github.com/mediachain/mediachain/pull/53"},"issue":{"href":"https://api.github.com/repos/mediachain/mediachain/issues/53"},"comments":{"href":"https://api.github.com/repos/mediachain/mediachain/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/mediachain/mediachain/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/mediachain/mediachain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mediachain/mediachain/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/mediachain/mediachain/statuses/834f2a74431df9ccbcb89886ec8e730b9684b4b5"}}}}