{"action":"created","issue":{"url":"https://api.github.com/repos/NebulousLabs/Sia/issues/657","labels_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/657/labels{/name}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/657/comments","events_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/657/events","html_url":"https://github.com/NebulousLabs/Sia/pull/657","id":92168254,"number":657,"title":"Explorer Database","user":{"login":"triazo","id":6687043,"avatar_url":"https://avatars.githubusercontent.com/u/6687043?v=3","gravatar_id":"","url":"https://api.github.com/users/triazo","html_url":"https://github.com/triazo","followers_url":"https://api.github.com/users/triazo/followers","following_url":"https://api.github.com/users/triazo/following{/other_user}","gists_url":"https://api.github.com/users/triazo/gists{/gist_id}","starred_url":"https://api.github.com/users/triazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triazo/subscriptions","organizations_url":"https://api.github.com/users/triazo/orgs","repos_url":"https://api.github.com/users/triazo/repos","events_url":"https://api.github.com/users/triazo/events{/privacy}","received_events_url":"https://api.github.com/users/triazo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-30T18:38:27Z","updated_at":"2015-07-05T15:42:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/657","html_url":"https://github.com/NebulousLabs/Sia/pull/657","diff_url":"https://github.com/NebulousLabs/Sia/pull/657.diff","patch_url":"https://github.com/NebulousLabs/Sia/pull/657.patch"},"body":"Open to suggestions on how to clean up addblock.go"},"comment":{"url":"https://api.github.com/repos/NebulousLabs/Sia/issues/comments/118634529","html_url":"https://github.com/NebulousLabs/Sia/pull/657#issuecomment-118634529","issue_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/657","id":118634529,"user":{"login":"triazo","id":6687043,"avatar_url":"https://avatars.githubusercontent.com/u/6687043?v=3","gravatar_id":"","url":"https://api.github.com/users/triazo","html_url":"https://github.com/triazo","followers_url":"https://api.github.com/users/triazo/followers","following_url":"https://api.github.com/users/triazo/following{/other_user}","gists_url":"https://api.github.com/users/triazo/gists{/gist_id}","starred_url":"https://api.github.com/users/triazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triazo/subscriptions","organizations_url":"https://api.github.com/users/triazo/orgs","repos_url":"https://api.github.com/users/triazo/repos","events_url":"https://api.github.com/users/triazo/events{/privacy}","received_events_url":"https://api.github.com/users/triazo/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T15:42:39Z","updated_at":"2015-07-05T15:42:39Z","body":"Currently, when you request a Siacoin output, it returns two ID's. As the output may be either a transaction or a block (due to miner payouts), the api user would not know which type of lookup to do, unless additional information was sent. This is also the case with address lookups. Having a single request simplified this.\r\n\r\nTo change to having separate requests, we can either do a lookup every time we request a transaction, and branch if its a block, or provide some additional information in along with the output data for the case where the output is a miner payout.\r\n\r\nThe address, ouput, and file contract lookups should always return roughly the same thing so changing them woudl be easier."}}