{"action":"created","comment":{"url":"https://api.github.com/repos/OmniLayer/omnicore/pulls/comments/48738743","id":48738743,"diff_hunk":"@@ -144,6 +144,65 @@ bool BalanceToJSON(const std::string& address, uint32_t property, Object& balanc\n     }\n }\n \n+// generate a list of seed blocks based on the data in LevelDB\n+Value omni_getseedblocks(const Array& params, bool fHelp)\n+{\n+    if (fHelp || params.size() < 2 || params.size() > 3)\n+        throw runtime_error(\n+            \"omni_getseedblocks startblock endblock\\n\"","path":"src/omnicore/rpc.cpp","position":9,"original_position":9,"commit_id":"4b472fdbf5ff62c4c1a06986b11ee9b276579fba","original_commit_id":"4b472fdbf5ff62c4c1a06986b11ee9b276579fba","user":{"login":"dexX7","id":5836089,"avatar_url":"https://avatars.githubusercontent.com/u/5836089?v=3","gravatar_id":"","url":"https://api.github.com/users/dexX7","html_url":"https://github.com/dexX7","followers_url":"https://api.github.com/users/dexX7/followers","following_url":"https://api.github.com/users/dexX7/following{/other_user}","gists_url":"https://api.github.com/users/dexX7/gists{/gist_id}","starred_url":"https://api.github.com/users/dexX7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexX7/subscriptions","organizations_url":"https://api.github.com/users/dexX7/orgs","repos_url":"https://api.github.com/users/dexX7/repos","events_url":"https://api.github.com/users/dexX7/events{/privacy}","received_events_url":"https://api.github.com/users/dexX7/received_events","type":"User","site_admin":false},"body":"Should be: `omni_getseedblocks startblock endblock ( stringify )`","created_at":"2016-01-04T15:06:28Z","updated_at":"2016-01-04T15:06:28Z","html_url":"https://github.com/OmniLayer/omnicore/pull/325#discussion_r48738743","pull_request_url":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325","_links":{"self":{"href":"https://api.github.com/repos/OmniLayer/omnicore/pulls/comments/48738743"},"html":{"href":"https://github.com/OmniLayer/omnicore/pull/325#discussion_r48738743"},"pull_request":{"href":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325"}}},"pull_request":{"url":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325","id":54982922,"html_url":"https://github.com/OmniLayer/omnicore/pull/325","diff_url":"https://github.com/OmniLayer/omnicore/pull/325.diff","patch_url":"https://github.com/OmniLayer/omnicore/pull/325.patch","issue_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/325","number":325,"state":"open","locked":false,"title":"Add capability to generate seed blocks over RPC","user":{"login":"zathras-crypto","id":5633351,"avatar_url":"https://avatars.githubusercontent.com/u/5633351?v=3","gravatar_id":"","url":"https://api.github.com/users/zathras-crypto","html_url":"https://github.com/zathras-crypto","followers_url":"https://api.github.com/users/zathras-crypto/followers","following_url":"https://api.github.com/users/zathras-crypto/following{/other_user}","gists_url":"https://api.github.com/users/zathras-crypto/gists{/gist_id}","starred_url":"https://api.github.com/users/zathras-crypto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zathras-crypto/subscriptions","organizations_url":"https://api.github.com/users/zathras-crypto/orgs","repos_url":"https://api.github.com/users/zathras-crypto/repos","events_url":"https://api.github.com/users/zathras-crypto/events{/privacy}","received_events_url":"https://api.github.com/users/zathras-crypto/received_events","type":"User","site_admin":false},"body":"This PR adds the capability to generate seed blocks via the RPC interface, in order to provide a repeatable process for future seed block usage.  The data is retrieved from LevelDB.\r\n\r\nPlease note due to the fact Exodus crowdsale purchases are not currently stored in LevelDB, it is only valid for generating seed blocks **after block 255365.**\r\n\r\nExample usage:\r\n```\r\n$ src/omnicore-cli omni_getseedblocks 370000 370020\r\n[\r\n    {\r\n        \"seedblock\" : 370002\r\n    },\r\n    {\r\n        \"seedblock\" : 370010\r\n    },\r\n    {\r\n        \"seedblock\" : 370014\r\n    }\r\n]\r\n```\r\nFor easier inclusion in ```seedblocks.cpp``` the output can be stringified by appending ```true``` to the request:\r\n```\r\n$ src/omnicore-cli omni_getseedblocks 370000 370020 true\r\n{\r\n    \"seedblocks\" : \"370002, 370010, 370014\"\r\n}\r\n```\r\n\r\nTested by generating seed blocks from block 370000 to 390000 via this new call and adding them into ```seedblocks.cpp```, then running a fresh parse with the upgraded consensus hashing changes which successfully passed all checkpoints.","created_at":"2016-01-04T14:58:20Z","updated_at":"2016-01-04T15:06:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09f542b55a94195ef7b3c8e906cd4efdaebd0c0c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325/commits","review_comments_url":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325/comments","review_comment_url":"https://api.github.com/repos/OmniLayer/omnicore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/325/comments","statuses_url":"https://api.github.com/repos/OmniLayer/omnicore/statuses/4b472fdbf5ff62c4c1a06986b11ee9b276579fba","head":{"label":"zathras-crypto:0.0.10.1-Z-RPCGetSeedBlocks","ref":"0.0.10.1-Z-RPCGetSeedBlocks","sha":"4b472fdbf5ff62c4c1a06986b11ee9b276579fba","user":{"login":"zathras-crypto","id":5633351,"avatar_url":"https://avatars.githubusercontent.com/u/5633351?v=3","gravatar_id":"","url":"https://api.github.com/users/zathras-crypto","html_url":"https://github.com/zathras-crypto","followers_url":"https://api.github.com/users/zathras-crypto/followers","following_url":"https://api.github.com/users/zathras-crypto/following{/other_user}","gists_url":"https://api.github.com/users/zathras-crypto/gists{/gist_id}","starred_url":"https://api.github.com/users/zathras-crypto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zathras-crypto/subscriptions","organizations_url":"https://api.github.com/users/zathras-crypto/orgs","repos_url":"https://api.github.com/users/zathras-crypto/repos","events_url":"https://api.github.com/users/zathras-crypto/events{/privacy}","received_events_url":"https://api.github.com/users/zathras-crypto/received_events","type":"User","site_admin":false},"repo":{"id":19960841,"name":"omnicore","full_name":"zathras-crypto/omnicore","owner":{"login":"zathras-crypto","id":5633351,"avatar_url":"https://avatars.githubusercontent.com/u/5633351?v=3","gravatar_id":"","url":"https://api.github.com/users/zathras-crypto","html_url":"https://github.com/zathras-crypto","followers_url":"https://api.github.com/users/zathras-crypto/followers","following_url":"https://api.github.com/users/zathras-crypto/following{/other_user}","gists_url":"https://api.github.com/users/zathras-crypto/gists{/gist_id}","starred_url":"https://api.github.com/users/zathras-crypto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zathras-crypto/subscriptions","organizations_url":"https://api.github.com/users/zathras-crypto/orgs","repos_url":"https://api.github.com/users/zathras-crypto/repos","events_url":"https://api.github.com/users/zathras-crypto/events{/privacy}","received_events_url":"https://api.github.com/users/zathras-crypto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zathras-crypto/omnicore","description":"mastercore info","fork":true,"url":"https://api.github.com/repos/zathras-crypto/omnicore","forks_url":"https://api.github.com/repos/zathras-crypto/omnicore/forks","keys_url":"https://api.github.com/repos/zathras-crypto/omnicore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zathras-crypto/omnicore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zathras-crypto/omnicore/teams","hooks_url":"https://api.github.com/repos/zathras-crypto/omnicore/hooks","issue_events_url":"https://api.github.com/repos/zathras-crypto/omnicore/issues/events{/number}","events_url":"https://api.github.com/repos/zathras-crypto/omnicore/events","assignees_url":"https://api.github.com/repos/zathras-crypto/omnicore/assignees{/user}","branches_url":"https://api.github.com/repos/zathras-crypto/omnicore/branches{/branch}","tags_url":"https://api.github.com/repos/zathras-crypto/omnicore/tags","blobs_url":"https://api.github.com/repos/zathras-crypto/omnicore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zathras-crypto/omnicore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zathras-crypto/omnicore/git/refs{/sha}","trees_url":"https://api.github.com/repos/zathras-crypto/omnicore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zathras-crypto/omnicore/statuses/{sha}","languages_url":"https://api.github.com/repos/zathras-crypto/omnicore/languages","stargazers_url":"https://api.github.com/repos/zathras-crypto/omnicore/stargazers","contributors_url":"https://api.github.com/repos/zathras-crypto/omnicore/contributors","subscribers_url":"https://api.github.com/repos/zathras-crypto/omnicore/subscribers","subscription_url":"https://api.github.com/repos/zathras-crypto/omnicore/subscription","commits_url":"https://api.github.com/repos/zathras-crypto/omnicore/commits{/sha}","git_commits_url":"https://api.github.com/repos/zathras-crypto/omnicore/git/commits{/sha}","comments_url":"https://api.github.com/repos/zathras-crypto/omnicore/comments{/number}","issue_comment_url":"https://api.github.com/repos/zathras-crypto/omnicore/issues/comments{/number}","contents_url":"https://api.github.com/repos/zathras-crypto/omnicore/contents/{+path}","compare_url":"https://api.github.com/repos/zathras-crypto/omnicore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zathras-crypto/omnicore/merges","archive_url":"https://api.github.com/repos/zathras-crypto/omnicore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zathras-crypto/omnicore/downloads","issues_url":"https://api.github.com/repos/zathras-crypto/omnicore/issues{/number}","pulls_url":"https://api.github.com/repos/zathras-crypto/omnicore/pulls{/number}","milestones_url":"https://api.github.com/repos/zathras-crypto/omnicore/milestones{/number}","notifications_url":"https://api.github.com/repos/zathras-crypto/omnicore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zathras-crypto/omnicore/labels{/name}","releases_url":"https://api.github.com/repos/zathras-crypto/omnicore/releases{/id}","created_at":"2014-05-19T23:15:09Z","updated_at":"2015-05-18T06:43:01Z","pushed_at":"2016-01-04T14:56:36Z","git_url":"git://github.com/zathras-crypto/omnicore.git","ssh_url":"git@github.com:zathras-crypto/omnicore.git","clone_url":"https://github.com/zathras-crypto/omnicore.git","svn_url":"https://github.com/zathras-crypto/omnicore","homepage":"mastercoin.org","size":53994,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"0.0.8-Z-UIAlpha"}},"base":{"label":"OmniLayer:omnicore-0.0.10","ref":"omnicore-0.0.10","sha":"4fcd4ed7465a6752bf9df5faf2baca404a6f5c0a","user":{"login":"OmniLayer","id":10849356,"avatar_url":"https://avatars.githubusercontent.com/u/10849356?v=3","gravatar_id":"","url":"https://api.github.com/users/OmniLayer","html_url":"https://github.com/OmniLayer","followers_url":"https://api.github.com/users/OmniLayer/followers","following_url":"https://api.github.com/users/OmniLayer/following{/other_user}","gists_url":"https://api.github.com/users/OmniLayer/gists{/gist_id}","starred_url":"https://api.github.com/users/OmniLayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmniLayer/subscriptions","organizations_url":"https://api.github.com/users/OmniLayer/orgs","repos_url":"https://api.github.com/users/OmniLayer/repos","events_url":"https://api.github.com/users/OmniLayer/events{/privacy}","received_events_url":"https://api.github.com/users/OmniLayer/received_events","type":"Organization","site_admin":false},"repo":{"id":32829630,"name":"omnicore","full_name":"OmniLayer/omnicore","owner":{"login":"OmniLayer","id":10849356,"avatar_url":"https://avatars.githubusercontent.com/u/10849356?v=3","gravatar_id":"","url":"https://api.github.com/users/OmniLayer","html_url":"https://github.com/OmniLayer","followers_url":"https://api.github.com/users/OmniLayer/followers","following_url":"https://api.github.com/users/OmniLayer/following{/other_user}","gists_url":"https://api.github.com/users/OmniLayer/gists{/gist_id}","starred_url":"https://api.github.com/users/OmniLayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmniLayer/subscriptions","organizations_url":"https://api.github.com/users/OmniLayer/orgs","repos_url":"https://api.github.com/users/OmniLayer/repos","events_url":"https://api.github.com/users/OmniLayer/events{/privacy}","received_events_url":"https://api.github.com/users/OmniLayer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OmniLayer/omnicore","description":"OmniCore staging tree","fork":true,"url":"https://api.github.com/repos/OmniLayer/omnicore","forks_url":"https://api.github.com/repos/OmniLayer/omnicore/forks","keys_url":"https://api.github.com/repos/OmniLayer/omnicore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OmniLayer/omnicore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OmniLayer/omnicore/teams","hooks_url":"https://api.github.com/repos/OmniLayer/omnicore/hooks","issue_events_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/events{/number}","events_url":"https://api.github.com/repos/OmniLayer/omnicore/events","assignees_url":"https://api.github.com/repos/OmniLayer/omnicore/assignees{/user}","branches_url":"https://api.github.com/repos/OmniLayer/omnicore/branches{/branch}","tags_url":"https://api.github.com/repos/OmniLayer/omnicore/tags","blobs_url":"https://api.github.com/repos/OmniLayer/omnicore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OmniLayer/omnicore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OmniLayer/omnicore/git/refs{/sha}","trees_url":"https://api.github.com/repos/OmniLayer/omnicore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OmniLayer/omnicore/statuses/{sha}","languages_url":"https://api.github.com/repos/OmniLayer/omnicore/languages","stargazers_url":"https://api.github.com/repos/OmniLayer/omnicore/stargazers","contributors_url":"https://api.github.com/repos/OmniLayer/omnicore/contributors","subscribers_url":"https://api.github.com/repos/OmniLayer/omnicore/subscribers","subscription_url":"https://api.github.com/repos/OmniLayer/omnicore/subscription","commits_url":"https://api.github.com/repos/OmniLayer/omnicore/commits{/sha}","git_commits_url":"https://api.github.com/repos/OmniLayer/omnicore/git/commits{/sha}","comments_url":"https://api.github.com/repos/OmniLayer/omnicore/comments{/number}","issue_comment_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/comments{/number}","contents_url":"https://api.github.com/repos/OmniLayer/omnicore/contents/{+path}","compare_url":"https://api.github.com/repos/OmniLayer/omnicore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OmniLayer/omnicore/merges","archive_url":"https://api.github.com/repos/OmniLayer/omnicore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OmniLayer/omnicore/downloads","issues_url":"https://api.github.com/repos/OmniLayer/omnicore/issues{/number}","pulls_url":"https://api.github.com/repos/OmniLayer/omnicore/pulls{/number}","milestones_url":"https://api.github.com/repos/OmniLayer/omnicore/milestones{/number}","notifications_url":"https://api.github.com/repos/OmniLayer/omnicore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OmniLayer/omnicore/labels{/name}","releases_url":"https://api.github.com/repos/OmniLayer/omnicore/releases{/id}","created_at":"2015-03-24T22:48:50Z","updated_at":"2015-12-29T15:10:47Z","pushed_at":"2016-01-04T14:58:21Z","git_url":"git://github.com/OmniLayer/omnicore.git","ssh_url":"git@github.com:OmniLayer/omnicore.git","clone_url":"https://github.com/OmniLayer/omnicore.git","svn_url":"https://github.com/OmniLayer/omnicore","homepage":"http://www.omnilayer.org/","size":44193,"stargazers_count":15,"watchers_count":15,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":53,"forks":1,"open_issues":53,"watchers":15,"default_branch":"omnicore-0.0.10"}},"_links":{"self":{"href":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325"},"html":{"href":"https://github.com/OmniLayer/omnicore/pull/325"},"issue":{"href":"https://api.github.com/repos/OmniLayer/omnicore/issues/325"},"comments":{"href":"https://api.github.com/repos/OmniLayer/omnicore/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/OmniLayer/omnicore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/OmniLayer/omnicore/statuses/4b472fdbf5ff62c4c1a06986b11ee9b276579fba"}}}}