{"action":"created","comment":{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments/34399079","id":34399079,"diff_hunk":"@@ -0,0 +1,69 @@\n+/*\n+\tThis file is part of cpp-ethereum.\n+\n+\tcpp-ethereum is free software: you can redistribute it and/or modify\n+\tit under the terms of the GNU General Public License as published by\n+\tthe Free Software Foundation, either version 3 of the License, or\n+\t(at your option) any later version.\n+\n+\tcpp-ethereum is distributed in the hope that it will be useful,\n+\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n+\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+\tGNU General Public License for more details.\n+\n+\tYou should have received a copy of the GNU General Public License\n+\talong with cpp-ethereum.  If not, see <http://www.gnu.org/licenses/>.\n+*/\n+/** @file WhisperDB.cpp\n+* @author Vladislav Gluhovsky <vlad@ethdev.com>\n+* @date July 2015\n+ */\n+\n+#include \"WhisperDB.h\"\n+#include <boost/filesystem.hpp>\n+#include <libdevcore/FileSystem.h>\n+\n+using namespace std;\n+using namespace dev;\n+using namespace dev::shh;\n+\n+WhisperDB::WhisperDB()\n+{\n+\tstring path = dev::getDataDir();","path":"libwhisper/WhisperDB.cpp","position":32,"original_position":32,"commit_id":"e7c5191b7627b50f67ea2d32a4d4ef703e6171c4","original_commit_id":"e7c5191b7627b50f67ea2d32a4d4ef703e6171c4","user":{"login":"gavofyork","id":138296,"avatar_url":"https://avatars.githubusercontent.com/u/138296?v=3","gravatar_id":"","url":"https://api.github.com/users/gavofyork","html_url":"https://github.com/gavofyork","followers_url":"https://api.github.com/users/gavofyork/followers","following_url":"https://api.github.com/users/gavofyork/following{/other_user}","gists_url":"https://api.github.com/users/gavofyork/gists{/gist_id}","starred_url":"https://api.github.com/users/gavofyork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavofyork/subscriptions","organizations_url":"https://api.github.com/users/gavofyork/orgs","repos_url":"https://api.github.com/users/gavofyork/repos","events_url":"https://api.github.com/users/gavofyork/events{/privacy}","received_events_url":"https://api.github.com/users/gavofyork/received_events","type":"User","site_admin":false},"body":"`getDataDir(\".shh\")`, perhaps?","created_at":"2015-07-10T21:44:05Z","updated_at":"2015-07-10T21:44:05Z","html_url":"https://github.com/ethereum/cpp-ethereum/pull/2413#discussion_r34399079","pull_request_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/2413","_links":{"self":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments/34399079"},"html":{"href":"https://github.com/ethereum/cpp-ethereum/pull/2413#discussion_r34399079"},"pull_request":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/2413"}}},"pull_request":{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/2413","id":39380059,"html_url":"https://github.com/ethereum/cpp-ethereum/pull/2413","diff_url":"https://github.com/ethereum/cpp-ethereum/pull/2413.diff","patch_url":"https://github.com/ethereum/cpp-ethereum/pull/2413.patch","issue_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/2413","number":2413,"state":"open","locked":false,"title":"levelDB for whisper","user":{"login":"gluk256","id":9915581,"avatar_url":"https://avatars.githubusercontent.com/u/9915581?v=3","gravatar_id":"","url":"https://api.github.com/users/gluk256","html_url":"https://github.com/gluk256","followers_url":"https://api.github.com/users/gluk256/followers","following_url":"https://api.github.com/users/gluk256/following{/other_user}","gists_url":"https://api.github.com/users/gluk256/gists{/gist_id}","starred_url":"https://api.github.com/users/gluk256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gluk256/subscriptions","organizations_url":"https://api.github.com/users/gluk256/orgs","repos_url":"https://api.github.com/users/gluk256/repos","events_url":"https://api.github.com/users/gluk256/events{/privacy}","received_events_url":"https://api.github.com/users/gluk256/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T15:03:26Z","updated_at":"2015-07-10T21:44:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d965c1090f5f70275918eb3e81cae70214e8a5e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/2413/commits","review_comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/2413/comments","review_comment_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/2413/comments","statuses_url":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/e7c5191b7627b50f67ea2d32a4d4ef703e6171c4","head":{"label":"gluk256:_whisperDB","ref":"_whisperDB","sha":"e7c5191b7627b50f67ea2d32a4d4ef703e6171c4","user":{"login":"gluk256","id":9915581,"avatar_url":"https://avatars.githubusercontent.com/u/9915581?v=3","gravatar_id":"","url":"https://api.github.com/users/gluk256","html_url":"https://github.com/gluk256","followers_url":"https://api.github.com/users/gluk256/followers","following_url":"https://api.github.com/users/gluk256/following{/other_user}","gists_url":"https://api.github.com/users/gluk256/gists{/gist_id}","starred_url":"https://api.github.com/users/gluk256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gluk256/subscriptions","organizations_url":"https://api.github.com/users/gluk256/orgs","repos_url":"https://api.github.com/users/gluk256/repos","events_url":"https://api.github.com/users/gluk256/events{/privacy}","received_events_url":"https://api.github.com/users/gluk256/received_events","type":"User","site_admin":false},"repo":{"id":34257981,"name":"cpp-ethereum","full_name":"gluk256/cpp-ethereum","owner":{"login":"gluk256","id":9915581,"avatar_url":"https://avatars.githubusercontent.com/u/9915581?v=3","gravatar_id":"","url":"https://api.github.com/users/gluk256","html_url":"https://github.com/gluk256","followers_url":"https://api.github.com/users/gluk256/followers","following_url":"https://api.github.com/users/gluk256/following{/other_user}","gists_url":"https://api.github.com/users/gluk256/gists{/gist_id}","starred_url":"https://api.github.com/users/gluk256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gluk256/subscriptions","organizations_url":"https://api.github.com/users/gluk256/orgs","repos_url":"https://api.github.com/users/gluk256/repos","events_url":"https://api.github.com/users/gluk256/events{/privacy}","received_events_url":"https://api.github.com/users/gluk256/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gluk256/cpp-ethereum","description":"Gavin Wood's C++ implementation of the Ethereum yellowpaper.","fork":true,"url":"https://api.github.com/repos/gluk256/cpp-ethereum","forks_url":"https://api.github.com/repos/gluk256/cpp-ethereum/forks","keys_url":"https://api.github.com/repos/gluk256/cpp-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gluk256/cpp-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gluk256/cpp-ethereum/teams","hooks_url":"https://api.github.com/repos/gluk256/cpp-ethereum/hooks","issue_events_url":"https://api.github.com/repos/gluk256/cpp-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/gluk256/cpp-ethereum/events","assignees_url":"https://api.github.com/repos/gluk256/cpp-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/gluk256/cpp-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/gluk256/cpp-ethereum/tags","blobs_url":"https://api.github.com/repos/gluk256/cpp-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gluk256/cpp-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gluk256/cpp-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/gluk256/cpp-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gluk256/cpp-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/gluk256/cpp-ethereum/languages","stargazers_url":"https://api.github.com/repos/gluk256/cpp-ethereum/stargazers","contributors_url":"https://api.github.com/repos/gluk256/cpp-ethereum/contributors","subscribers_url":"https://api.github.com/repos/gluk256/cpp-ethereum/subscribers","subscription_url":"https://api.github.com/repos/gluk256/cpp-ethereum/subscription","commits_url":"https://api.github.com/repos/gluk256/cpp-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/gluk256/cpp-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/gluk256/cpp-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/gluk256/cpp-ethereum/issues/comments{/number}","contents_url":"https://api.github.com/repos/gluk256/cpp-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/gluk256/cpp-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gluk256/cpp-ethereum/merges","archive_url":"https://api.github.com/repos/gluk256/cpp-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gluk256/cpp-ethereum/downloads","issues_url":"https://api.github.com/repos/gluk256/cpp-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/gluk256/cpp-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/gluk256/cpp-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/gluk256/cpp-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gluk256/cpp-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/gluk256/cpp-ethereum/releases{/id}","created_at":"2015-04-20T12:05:28Z","updated_at":"2015-05-05T10:47:19Z","pushed_at":"2015-07-10T17:09:34Z","git_url":"git://github.com/gluk256/cpp-ethereum.git","ssh_url":"git@github.com:gluk256/cpp-ethereum.git","clone_url":"https://github.com/gluk256/cpp-ethereum.git","svn_url":"https://github.com/gluk256/cpp-ethereum","homepage":"www.gavwood.com/Paper.pdf","size":26879,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ethereum:develop","ref":"develop","sha":"43cc42ef40d0d641fc5c43ae335d5f26122f6fb2","user":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":15460666,"name":"cpp-ethereum","full_name":"ethereum/cpp-ethereum","owner":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/cpp-ethereum","description":"Gavin Wood's C++ implementation of the Ethereum yellowpaper.","fork":false,"url":"https://api.github.com/repos/ethereum/cpp-ethereum","forks_url":"https://api.github.com/repos/ethereum/cpp-ethereum/forks","keys_url":"https://api.github.com/repos/ethereum/cpp-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/cpp-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/cpp-ethereum/teams","hooks_url":"https://api.github.com/repos/ethereum/cpp-ethereum/hooks","issue_events_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/cpp-ethereum/events","assignees_url":"https://api.github.com/repos/ethereum/cpp-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/cpp-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/cpp-ethereum/tags","blobs_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/cpp-ethereum/languages","stargazers_url":"https://api.github.com/repos/ethereum/cpp-ethereum/stargazers","contributors_url":"https://api.github.com/repos/ethereum/cpp-ethereum/contributors","subscribers_url":"https://api.github.com/repos/ethereum/cpp-ethereum/subscribers","subscription_url":"https://api.github.com/repos/ethereum/cpp-ethereum/subscription","commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethereum/cpp-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/cpp-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/cpp-ethereum/merges","archive_url":"https://api.github.com/repos/ethereum/cpp-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/cpp-ethereum/downloads","issues_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/cpp-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/cpp-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/cpp-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/cpp-ethereum/releases{/id}","created_at":"2013-12-26T21:26:06Z","updated_at":"2015-07-08T23:07:18Z","pushed_at":"2015-07-10T21:35:52Z","git_url":"git://github.com/ethereum/cpp-ethereum.git","ssh_url":"git@github.com:ethereum/cpp-ethereum.git","clone_url":"https://github.com/ethereum/cpp-ethereum.git","svn_url":"https://github.com/ethereum/cpp-ethereum","homepage":"www.gavwood.com/Paper.pdf","size":102412,"stargazers_count":492,"watchers_count":492,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":187,"mirror_url":null,"open_issues_count":186,"forks":187,"open_issues":186,"watchers":492,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/2413"},"html":{"href":"https://github.com/ethereum/cpp-ethereum/pull/2413"},"issue":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/2413"},"comments":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/2413/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/2413/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/2413/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/e7c5191b7627b50f67ea2d32a4d4ef703e6171c4"}}}}