{"action":"created","issue":{"url":"https://api.github.com/repos/OmniLayer/omnicore/issues/325","labels_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/325/comments","events_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/325/events","html_url":"https://github.com/OmniLayer/omnicore/pull/325","id":124773677,"number":325,"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},"labels":[{"url":"https://api.github.com/repos/OmniLayer/omnicore/labels/api","name":"api","color":"0052cc"},{"url":"https://api.github.com/repos/OmniLayer/omnicore/labels/status:%20in%20progress","name":"status: in progress","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OmniLayer/omnicore/milestones/2","html_url":"https://github.com/OmniLayer/omnicore/milestones/0.0.10.1","labels_url":"https://api.github.com/repos/OmniLayer/omnicore/milestones/2/labels","id":1464009,"number":2,"title":"0.0.10.1","description":"Issues that need to be solved for release of v0.0.10.1.","creator":{"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},"open_issues":17,"closed_issues":6,"state":"open","created_at":"2015-12-16T22:12:47Z","updated_at":"2016-01-04T15:17:10Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-01-04T14:58:20Z","updated_at":"2016-01-04T17:39:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OmniLayer/omnicore/pulls/325","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"},"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."},"comment":{"url":"https://api.github.com/repos/OmniLayer/omnicore/issues/comments/168747760","html_url":"https://github.com/OmniLayer/omnicore/pull/325#issuecomment-168747760","issue_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/325","id":168747760,"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},"created_at":"2016-01-04T17:39:21Z","updated_at":"2016-01-04T17:39:21Z","body":"> However with that said it's also pretty easy to strip line breaks in the shell (eg tr -d '\\n' < input) and we can do the same with the extra padding - I guess I saw it as being a little easier without these steps but it's not exactly a hardship hehe so I'm happy either way mate :)\r\n\r\nIf there are some ninja tricks to do the formatting via the console, then I'd prefer to use plain arrays with numbers, because the effort seems somewhat similar, and blocks are indeed numbers.\r\n\r\n> Digging in now...\r\n\r\nHmm.. interesting. In this case, should I hold #324 back?"}}