{"action":"created","comment":{"url":"https://api.github.com/repos/solana-labs/solana/pulls/comments/245447760","pull_request_review_id":189562891,"id":245447760,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTQ0Nzc2MA==","diff_hunk":"@@ -1,6 +1,6 @@\n use clap::{crate_version, App, Arg, SubCommand};\n use solana::bank::Bank;\n-use solana::ledger::{read_ledger, verify_ledger};\n+use solana::ledger::{read_ledger, tail_ledger, verify_ledger};","path":"ledger-tool/src/main.rs","position":4,"original_position":4,"commit_id":"247e9ef7ab0114a5982c03d8b425a68d15ed82d4","original_commit_id":"247e9ef7ab0114a5982c03d8b425a68d15ed82d4","user":{"login":"sunnygleason","id":153621,"node_id":"MDQ6VXNlcjE1MzYyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/153621?v=4","gravatar_id":"","url":"https://api.github.com/users/sunnygleason","html_url":"https://github.com/sunnygleason","followers_url":"https://api.github.com/users/sunnygleason/followers","following_url":"https://api.github.com/users/sunnygleason/following{/other_user}","gists_url":"https://api.github.com/users/sunnygleason/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnygleason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnygleason/subscriptions","organizations_url":"https://api.github.com/users/sunnygleason/orgs","repos_url":"https://api.github.com/users/sunnygleason/repos","events_url":"https://api.github.com/users/sunnygleason/events{/privacy}","received_events_url":"https://api.github.com/users/sunnygleason/received_events","type":"User","site_admin":false},"body":"@mvines / @garious what's the best alternative for real-time streaming a ledger, would it be replicator API? (haven't dug into that part of the code... yet)","created_at":"2019-01-04T23:20:25Z","updated_at":"2019-01-04T23:20:25Z","html_url":"https://github.com/solana-labs/solana/pull/2296#discussion_r245447760","pull_request_url":"https://api.github.com/repos/solana-labs/solana/pulls/2296","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/solana-labs/solana/pulls/comments/245447760"},"html":{"href":"https://github.com/solana-labs/solana/pull/2296#discussion_r245447760"},"pull_request":{"href":"https://api.github.com/repos/solana-labs/solana/pulls/2296"}},"in_reply_to_id":245210816},"pull_request":{"url":"https://api.github.com/repos/solana-labs/solana/pulls/2296","id":242143843,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTQzODQz","html_url":"https://github.com/solana-labs/solana/pull/2296","diff_url":"https://github.com/solana-labs/solana/pull/2296.diff","patch_url":"https://github.com/solana-labs/solana/pull/2296.patch","issue_url":"https://api.github.com/repos/solana-labs/solana/issues/2296","number":2296,"state":"open","locked":false,"title":"RFC / work in progress : ledger-tool json-tail & ledger-bridge","user":{"login":"sunnygleason","id":153621,"node_id":"MDQ6VXNlcjE1MzYyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/153621?v=4","gravatar_id":"","url":"https://api.github.com/users/sunnygleason","html_url":"https://github.com/sunnygleason","followers_url":"https://api.github.com/users/sunnygleason/followers","following_url":"https://api.github.com/users/sunnygleason/following{/other_user}","gists_url":"https://api.github.com/users/sunnygleason/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnygleason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnygleason/subscriptions","organizations_url":"https://api.github.com/users/sunnygleason/orgs","repos_url":"https://api.github.com/users/sunnygleason/repos","events_url":"https://api.github.com/users/sunnygleason/events{/privacy}","received_events_url":"https://api.github.com/users/sunnygleason/received_events","type":"User","site_admin":false},"body":"#### Problem\r\n\r\n* to create UIs based on streaming data, we need a convenient way to tail the ledger file\r\n* (or otherwise see the ledger data stream)\r\n* to avoid massive changes to the websocket API while we're still working out what we need, it could be useful to bridge to a data stream service like PubNub\r\n\r\n#### Summary of Changes\r\n\r\n* extend ledger-tool to have a json-tail subcommand that produces continuous flat file json output\r\n* create a small nodejs app \"ledger-bridge\" that can bridge the json to the data stream API\r\n\r\nFixes #\r\n\r\nN/A\r\n","created_at":"2019-01-03T23:57:55Z","updated_at":"2019-01-04T23:20:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c246348fec43e73a8a7b9c0f9fde3fcf3bf1615a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rob-solana","id":40183961,"node_id":"MDQ6VXNlcjQwMTgzOTYx","avatar_url":"https://avatars0.githubusercontent.com/u/40183961?v=4","gravatar_id":"","url":"https://api.github.com/users/rob-solana","html_url":"https://github.com/rob-solana","followers_url":"https://api.github.com/users/rob-solana/followers","following_url":"https://api.github.com/users/rob-solana/following{/other_user}","gists_url":"https://api.github.com/users/rob-solana/gists{/gist_id}","starred_url":"https://api.github.com/users/rob-solana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob-solana/subscriptions","organizations_url":"https://api.github.com/users/rob-solana/orgs","repos_url":"https://api.github.com/users/rob-solana/repos","events_url":"https://api.github.com/users/rob-solana/events{/privacy}","received_events_url":"https://api.github.com/users/rob-solana/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":934588962,"node_id":"MDU6TGFiZWw5MzQ1ODg5NjI=","url":"https://api.github.com/repos/solana-labs/solana/labels/work%20in%20progress","name":"work in progress","color":"bf722a","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/solana-labs/solana/pulls/2296/commits","review_comments_url":"https://api.github.com/repos/solana-labs/solana/pulls/2296/comments","review_comment_url":"https://api.github.com/repos/solana-labs/solana/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solana-labs/solana/issues/2296/comments","statuses_url":"https://api.github.com/repos/solana-labs/solana/statuses/247e9ef7ab0114a5982c03d8b425a68d15ed82d4","head":{"label":"sunnygleason:ledger-tool-json-tail","ref":"ledger-tool-json-tail","sha":"247e9ef7ab0114a5982c03d8b425a68d15ed82d4","user":{"login":"sunnygleason","id":153621,"node_id":"MDQ6VXNlcjE1MzYyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/153621?v=4","gravatar_id":"","url":"https://api.github.com/users/sunnygleason","html_url":"https://github.com/sunnygleason","followers_url":"https://api.github.com/users/sunnygleason/followers","following_url":"https://api.github.com/users/sunnygleason/following{/other_user}","gists_url":"https://api.github.com/users/sunnygleason/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnygleason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnygleason/subscriptions","organizations_url":"https://api.github.com/users/sunnygleason/orgs","repos_url":"https://api.github.com/users/sunnygleason/repos","events_url":"https://api.github.com/users/sunnygleason/events{/privacy}","received_events_url":"https://api.github.com/users/sunnygleason/received_events","type":"User","site_admin":false},"repo":{"id":163195069,"node_id":"MDEwOlJlcG9zaXRvcnkxNjMxOTUwNjk=","name":"solana","full_name":"sunnygleason/solana","private":false,"owner":{"login":"sunnygleason","id":153621,"node_id":"MDQ6VXNlcjE1MzYyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/153621?v=4","gravatar_id":"","url":"https://api.github.com/users/sunnygleason","html_url":"https://github.com/sunnygleason","followers_url":"https://api.github.com/users/sunnygleason/followers","following_url":"https://api.github.com/users/sunnygleason/following{/other_user}","gists_url":"https://api.github.com/users/sunnygleason/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnygleason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnygleason/subscriptions","organizations_url":"https://api.github.com/users/sunnygleason/orgs","repos_url":"https://api.github.com/users/sunnygleason/repos","events_url":"https://api.github.com/users/sunnygleason/events{/privacy}","received_events_url":"https://api.github.com/users/sunnygleason/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sunnygleason/solana","description":"Blockchain Rebuilt for Scale","fork":true,"url":"https://api.github.com/repos/sunnygleason/solana","forks_url":"https://api.github.com/repos/sunnygleason/solana/forks","keys_url":"https://api.github.com/repos/sunnygleason/solana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunnygleason/solana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunnygleason/solana/teams","hooks_url":"https://api.github.com/repos/sunnygleason/solana/hooks","issue_events_url":"https://api.github.com/repos/sunnygleason/solana/issues/events{/number}","events_url":"https://api.github.com/repos/sunnygleason/solana/events","assignees_url":"https://api.github.com/repos/sunnygleason/solana/assignees{/user}","branches_url":"https://api.github.com/repos/sunnygleason/solana/branches{/branch}","tags_url":"https://api.github.com/repos/sunnygleason/solana/tags","blobs_url":"https://api.github.com/repos/sunnygleason/solana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunnygleason/solana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunnygleason/solana/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunnygleason/solana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunnygleason/solana/statuses/{sha}","languages_url":"https://api.github.com/repos/sunnygleason/solana/languages","stargazers_url":"https://api.github.com/repos/sunnygleason/solana/stargazers","contributors_url":"https://api.github.com/repos/sunnygleason/solana/contributors","subscribers_url":"https://api.github.com/repos/sunnygleason/solana/subscribers","subscription_url":"https://api.github.com/repos/sunnygleason/solana/subscription","commits_url":"https://api.github.com/repos/sunnygleason/solana/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunnygleason/solana/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunnygleason/solana/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunnygleason/solana/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunnygleason/solana/contents/{+path}","compare_url":"https://api.github.com/repos/sunnygleason/solana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunnygleason/solana/merges","archive_url":"https://api.github.com/repos/sunnygleason/solana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunnygleason/solana/downloads","issues_url":"https://api.github.com/repos/sunnygleason/solana/issues{/number}","pulls_url":"https://api.github.com/repos/sunnygleason/solana/pulls{/number}","milestones_url":"https://api.github.com/repos/sunnygleason/solana/milestones{/number}","notifications_url":"https://api.github.com/repos/sunnygleason/solana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunnygleason/solana/labels{/name}","releases_url":"https://api.github.com/repos/sunnygleason/solana/releases{/id}","deployments_url":"https://api.github.com/repos/sunnygleason/solana/deployments","created_at":"2018-12-26T15:48:26Z","updated_at":"2018-12-26T15:48:29Z","pushed_at":"2019-01-04T01:29:20Z","git_url":"git://github.com/sunnygleason/solana.git","ssh_url":"git@github.com:sunnygleason/solana.git","clone_url":"https://github.com/sunnygleason/solana.git","svn_url":"https://github.com/sunnygleason/solana","homepage":"https://solana.com","size":15344,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"solana-labs:master","ref":"master","sha":"a448c0b81e24a6d4e9bc3456fa6ecfb0f73a7383","user":{"login":"solana-labs","id":35608259,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NjA4MjU5","avatar_url":"https://avatars3.githubusercontent.com/u/35608259?v=4","gravatar_id":"","url":"https://api.github.com/users/solana-labs","html_url":"https://github.com/solana-labs","followers_url":"https://api.github.com/users/solana-labs/followers","following_url":"https://api.github.com/users/solana-labs/following{/other_user}","gists_url":"https://api.github.com/users/solana-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/solana-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solana-labs/subscriptions","organizations_url":"https://api.github.com/users/solana-labs/orgs","repos_url":"https://api.github.com/users/solana-labs/repos","events_url":"https://api.github.com/users/solana-labs/events{/privacy}","received_events_url":"https://api.github.com/users/solana-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":121470383,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE0NzAzODM=","name":"solana","full_name":"solana-labs/solana","private":false,"owner":{"login":"solana-labs","id":35608259,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NjA4MjU5","avatar_url":"https://avatars3.githubusercontent.com/u/35608259?v=4","gravatar_id":"","url":"https://api.github.com/users/solana-labs","html_url":"https://github.com/solana-labs","followers_url":"https://api.github.com/users/solana-labs/followers","following_url":"https://api.github.com/users/solana-labs/following{/other_user}","gists_url":"https://api.github.com/users/solana-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/solana-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solana-labs/subscriptions","organizations_url":"https://api.github.com/users/solana-labs/orgs","repos_url":"https://api.github.com/users/solana-labs/repos","events_url":"https://api.github.com/users/solana-labs/events{/privacy}","received_events_url":"https://api.github.com/users/solana-labs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/solana-labs/solana","description":"Blockchain Rebuilt for Scale","fork":false,"url":"https://api.github.com/repos/solana-labs/solana","forks_url":"https://api.github.com/repos/solana-labs/solana/forks","keys_url":"https://api.github.com/repos/solana-labs/solana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solana-labs/solana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solana-labs/solana/teams","hooks_url":"https://api.github.com/repos/solana-labs/solana/hooks","issue_events_url":"https://api.github.com/repos/solana-labs/solana/issues/events{/number}","events_url":"https://api.github.com/repos/solana-labs/solana/events","assignees_url":"https://api.github.com/repos/solana-labs/solana/assignees{/user}","branches_url":"https://api.github.com/repos/solana-labs/solana/branches{/branch}","tags_url":"https://api.github.com/repos/solana-labs/solana/tags","blobs_url":"https://api.github.com/repos/solana-labs/solana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solana-labs/solana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solana-labs/solana/git/refs{/sha}","trees_url":"https://api.github.com/repos/solana-labs/solana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solana-labs/solana/statuses/{sha}","languages_url":"https://api.github.com/repos/solana-labs/solana/languages","stargazers_url":"https://api.github.com/repos/solana-labs/solana/stargazers","contributors_url":"https://api.github.com/repos/solana-labs/solana/contributors","subscribers_url":"https://api.github.com/repos/solana-labs/solana/subscribers","subscription_url":"https://api.github.com/repos/solana-labs/solana/subscription","commits_url":"https://api.github.com/repos/solana-labs/solana/commits{/sha}","git_commits_url":"https://api.github.com/repos/solana-labs/solana/git/commits{/sha}","comments_url":"https://api.github.com/repos/solana-labs/solana/comments{/number}","issue_comment_url":"https://api.github.com/repos/solana-labs/solana/issues/comments{/number}","contents_url":"https://api.github.com/repos/solana-labs/solana/contents/{+path}","compare_url":"https://api.github.com/repos/solana-labs/solana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solana-labs/solana/merges","archive_url":"https://api.github.com/repos/solana-labs/solana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solana-labs/solana/downloads","issues_url":"https://api.github.com/repos/solana-labs/solana/issues{/number}","pulls_url":"https://api.github.com/repos/solana-labs/solana/pulls{/number}","milestones_url":"https://api.github.com/repos/solana-labs/solana/milestones{/number}","notifications_url":"https://api.github.com/repos/solana-labs/solana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solana-labs/solana/labels{/name}","releases_url":"https://api.github.com/repos/solana-labs/solana/releases{/id}","deployments_url":"https://api.github.com/repos/solana-labs/solana/deployments","created_at":"2018-02-14T04:26:27Z","updated_at":"2019-01-04T21:35:13Z","pushed_at":"2019-01-04T21:35:10Z","git_url":"git://github.com/solana-labs/solana.git","ssh_url":"git@github.com:solana-labs/solana.git","clone_url":"https://github.com/solana-labs/solana.git","svn_url":"https://github.com/solana-labs/solana","homepage":"https://solana.com","size":15358,"stargazers_count":401,"watchers_count":401,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":188,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":73,"open_issues":188,"watchers":401,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solana-labs/solana/pulls/2296"},"html":{"href":"https://github.com/solana-labs/solana/pull/2296"},"issue":{"href":"https://api.github.com/repos/solana-labs/solana/issues/2296"},"comments":{"href":"https://api.github.com/repos/solana-labs/solana/issues/2296/comments"},"review_comments":{"href":"https://api.github.com/repos/solana-labs/solana/pulls/2296/comments"},"review_comment":{"href":"https://api.github.com/repos/solana-labs/solana/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solana-labs/solana/pulls/2296/commits"},"statuses":{"href":"https://api.github.com/repos/solana-labs/solana/statuses/247e9ef7ab0114a5982c03d8b425a68d15ed82d4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sunnygleason"}}