{"action":"closed","number":347,"pull_request":{"url":"https://api.github.com/repos/dcrdata/dcrdata/pulls/347","id":168681942,"html_url":"https://github.com/dcrdata/dcrdata/pull/347","diff_url":"https://github.com/dcrdata/dcrdata/pull/347.diff","patch_url":"https://github.com/dcrdata/dcrdata/pull/347.patch","issue_url":"https://api.github.com/repos/dcrdata/dcrdata/issues/347","number":347,"state":"closed","locked":false,"title":"try to recover from crash where ticket DB can get ahead of stake DB","user":{"login":"chappjc","id":9373513,"avatar_url":"https://avatars1.githubusercontent.com/u/9373513?v=4","gravatar_id":"","url":"https://api.github.com/users/chappjc","html_url":"https://github.com/chappjc","followers_url":"https://api.github.com/users/chappjc/followers","following_url":"https://api.github.com/users/chappjc/following{/other_user}","gists_url":"https://api.github.com/users/chappjc/gists{/gist_id}","starred_url":"https://api.github.com/users/chappjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chappjc/subscriptions","organizations_url":"https://api.github.com/users/chappjc/orgs","repos_url":"https://api.github.com/users/chappjc/repos","events_url":"https://api.github.com/users/chappjc/events{/privacy}","received_events_url":"https://api.github.com/users/chappjc/received_events","type":"User","site_admin":false},"body":"Address startup errors like this, which often happen after an unclean shutdown and would require a rebuild:\r\n\r\n    [ERR] SQLT: Unable to create stake DB: StakeDB height (238105) and TicketPool (238106) height not equal.Delete both and try again\r\n\r\nNow it backs up the \"TicketPool\" to match the height of the StakeDB.","created_at":"2018-02-12T20:38:15Z","updated_at":"2018-02-13T19:53:58Z","closed_at":"2018-02-13T19:53:58Z","merged_at":"2018-02-13T19:53:58Z","merge_commit_sha":"26423d2d0d7d3ae84d46d0f61e4af5deef42356f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"RogueElement","id":24304808,"avatar_url":"https://avatars2.githubusercontent.com/u/24304808?v=4","gravatar_id":"","url":"https://api.github.com/users/RogueElement","html_url":"https://github.com/RogueElement","followers_url":"https://api.github.com/users/RogueElement/followers","following_url":"https://api.github.com/users/RogueElement/following{/other_user}","gists_url":"https://api.github.com/users/RogueElement/gists{/gist_id}","starred_url":"https://api.github.com/users/RogueElement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RogueElement/subscriptions","organizations_url":"https://api.github.com/users/RogueElement/orgs","repos_url":"https://api.github.com/users/RogueElement/repos","events_url":"https://api.github.com/users/RogueElement/events{/privacy}","received_events_url":"https://api.github.com/users/RogueElement/received_events","type":"User","site_admin":false},{"login":"gozart1","id":25571523,"avatar_url":"https://avatars2.githubusercontent.com/u/25571523?v=4","gravatar_id":"","url":"https://api.github.com/users/gozart1","html_url":"https://github.com/gozart1","followers_url":"https://api.github.com/users/gozart1/followers","following_url":"https://api.github.com/users/gozart1/following{/other_user}","gists_url":"https://api.github.com/users/gozart1/gists{/gist_id}","starred_url":"https://api.github.com/users/gozart1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gozart1/subscriptions","organizations_url":"https://api.github.com/users/gozart1/orgs","repos_url":"https://api.github.com/users/gozart1/repos","events_url":"https://api.github.com/users/gozart1/events{/privacy}","received_events_url":"https://api.github.com/users/gozart1/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dcrdata/dcrdata/pulls/347/commits","review_comments_url":"https://api.github.com/repos/dcrdata/dcrdata/pulls/347/comments","review_comment_url":"https://api.github.com/repos/dcrdata/dcrdata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dcrdata/dcrdata/issues/347/comments","statuses_url":"https://api.github.com/repos/dcrdata/dcrdata/statuses/1132a9f40b7f4fbe22947495e0dfad768a7360bb","head":{"label":"dcrdata:recover-ticket-db-ahead","ref":"recover-ticket-db-ahead","sha":"1132a9f40b7f4fbe22947495e0dfad768a7360bb","user":{"login":"dcrdata","id":25960339,"avatar_url":"https://avatars3.githubusercontent.com/u/25960339?v=4","gravatar_id":"","url":"https://api.github.com/users/dcrdata","html_url":"https://github.com/dcrdata","followers_url":"https://api.github.com/users/dcrdata/followers","following_url":"https://api.github.com/users/dcrdata/following{/other_user}","gists_url":"https://api.github.com/users/dcrdata/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrdata/subscriptions","organizations_url":"https://api.github.com/users/dcrdata/orgs","repos_url":"https://api.github.com/users/dcrdata/repos","events_url":"https://api.github.com/users/dcrdata/events{/privacy}","received_events_url":"https://api.github.com/users/dcrdata/received_events","type":"Organization","site_admin":false},"repo":{"id":82826361,"name":"dcrdata","full_name":"dcrdata/dcrdata","owner":{"login":"dcrdata","id":25960339,"avatar_url":"https://avatars3.githubusercontent.com/u/25960339?v=4","gravatar_id":"","url":"https://api.github.com/users/dcrdata","html_url":"https://github.com/dcrdata","followers_url":"https://api.github.com/users/dcrdata/followers","following_url":"https://api.github.com/users/dcrdata/following{/other_user}","gists_url":"https://api.github.com/users/dcrdata/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrdata/subscriptions","organizations_url":"https://api.github.com/users/dcrdata/orgs","repos_url":"https://api.github.com/users/dcrdata/repos","events_url":"https://api.github.com/users/dcrdata/events{/privacy}","received_events_url":"https://api.github.com/users/dcrdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dcrdata/dcrdata","description":"Decred block explorer, with packages and apps for data collection and storage. Written in Go.","fork":false,"url":"https://api.github.com/repos/dcrdata/dcrdata","forks_url":"https://api.github.com/repos/dcrdata/dcrdata/forks","keys_url":"https://api.github.com/repos/dcrdata/dcrdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcrdata/dcrdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcrdata/dcrdata/teams","hooks_url":"https://api.github.com/repos/dcrdata/dcrdata/hooks","issue_events_url":"https://api.github.com/repos/dcrdata/dcrdata/issues/events{/number}","events_url":"https://api.github.com/repos/dcrdata/dcrdata/events","assignees_url":"https://api.github.com/repos/dcrdata/dcrdata/assignees{/user}","branches_url":"https://api.github.com/repos/dcrdata/dcrdata/branches{/branch}","tags_url":"https://api.github.com/repos/dcrdata/dcrdata/tags","blobs_url":"https://api.github.com/repos/dcrdata/dcrdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcrdata/dcrdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcrdata/dcrdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcrdata/dcrdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcrdata/dcrdata/statuses/{sha}","languages_url":"https://api.github.com/repos/dcrdata/dcrdata/languages","stargazers_url":"https://api.github.com/repos/dcrdata/dcrdata/stargazers","contributors_url":"https://api.github.com/repos/dcrdata/dcrdata/contributors","subscribers_url":"https://api.github.com/repos/dcrdata/dcrdata/subscribers","subscription_url":"https://api.github.com/repos/dcrdata/dcrdata/subscription","commits_url":"https://api.github.com/repos/dcrdata/dcrdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcrdata/dcrdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcrdata/dcrdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcrdata/dcrdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcrdata/dcrdata/contents/{+path}","compare_url":"https://api.github.com/repos/dcrdata/dcrdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcrdata/dcrdata/merges","archive_url":"https://api.github.com/repos/dcrdata/dcrdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcrdata/dcrdata/downloads","issues_url":"https://api.github.com/repos/dcrdata/dcrdata/issues{/number}","pulls_url":"https://api.github.com/repos/dcrdata/dcrdata/pulls{/number}","milestones_url":"https://api.github.com/repos/dcrdata/dcrdata/milestones{/number}","notifications_url":"https://api.github.com/repos/dcrdata/dcrdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcrdata/dcrdata/labels{/name}","releases_url":"https://api.github.com/repos/dcrdata/dcrdata/releases{/id}","deployments_url":"https://api.github.com/repos/dcrdata/dcrdata/deployments","created_at":"2017-02-22T16:24:53Z","updated_at":"2018-02-06T05:36:06Z","pushed_at":"2018-02-13T19:53:58Z","git_url":"git://github.com/dcrdata/dcrdata.git","ssh_url":"git@github.com:dcrdata/dcrdata.git","clone_url":"https://github.com/dcrdata/dcrdata.git","svn_url":"https://github.com/dcrdata/dcrdata","homepage":"https://explorer.dcrdata.org/","size":6157,"stargazers_count":19,"watchers_count":19,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":65,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc"},"forks":22,"open_issues":65,"watchers":19,"default_branch":"master"}},"base":{"label":"dcrdata:1.3","ref":"1.3","sha":"8dabc1e748ff4e6f9e03850a933a832b12ede9bb","user":{"login":"dcrdata","id":25960339,"avatar_url":"https://avatars3.githubusercontent.com/u/25960339?v=4","gravatar_id":"","url":"https://api.github.com/users/dcrdata","html_url":"https://github.com/dcrdata","followers_url":"https://api.github.com/users/dcrdata/followers","following_url":"https://api.github.com/users/dcrdata/following{/other_user}","gists_url":"https://api.github.com/users/dcrdata/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrdata/subscriptions","organizations_url":"https://api.github.com/users/dcrdata/orgs","repos_url":"https://api.github.com/users/dcrdata/repos","events_url":"https://api.github.com/users/dcrdata/events{/privacy}","received_events_url":"https://api.github.com/users/dcrdata/received_events","type":"Organization","site_admin":false},"repo":{"id":82826361,"name":"dcrdata","full_name":"dcrdata/dcrdata","owner":{"login":"dcrdata","id":25960339,"avatar_url":"https://avatars3.githubusercontent.com/u/25960339?v=4","gravatar_id":"","url":"https://api.github.com/users/dcrdata","html_url":"https://github.com/dcrdata","followers_url":"https://api.github.com/users/dcrdata/followers","following_url":"https://api.github.com/users/dcrdata/following{/other_user}","gists_url":"https://api.github.com/users/dcrdata/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrdata/subscriptions","organizations_url":"https://api.github.com/users/dcrdata/orgs","repos_url":"https://api.github.com/users/dcrdata/repos","events_url":"https://api.github.com/users/dcrdata/events{/privacy}","received_events_url":"https://api.github.com/users/dcrdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dcrdata/dcrdata","description":"Decred block explorer, with packages and apps for data collection and storage. Written in Go.","fork":false,"url":"https://api.github.com/repos/dcrdata/dcrdata","forks_url":"https://api.github.com/repos/dcrdata/dcrdata/forks","keys_url":"https://api.github.com/repos/dcrdata/dcrdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcrdata/dcrdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcrdata/dcrdata/teams","hooks_url":"https://api.github.com/repos/dcrdata/dcrdata/hooks","issue_events_url":"https://api.github.com/repos/dcrdata/dcrdata/issues/events{/number}","events_url":"https://api.github.com/repos/dcrdata/dcrdata/events","assignees_url":"https://api.github.com/repos/dcrdata/dcrdata/assignees{/user}","branches_url":"https://api.github.com/repos/dcrdata/dcrdata/branches{/branch}","tags_url":"https://api.github.com/repos/dcrdata/dcrdata/tags","blobs_url":"https://api.github.com/repos/dcrdata/dcrdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcrdata/dcrdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcrdata/dcrdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcrdata/dcrdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcrdata/dcrdata/statuses/{sha}","languages_url":"https://api.github.com/repos/dcrdata/dcrdata/languages","stargazers_url":"https://api.github.com/repos/dcrdata/dcrdata/stargazers","contributors_url":"https://api.github.com/repos/dcrdata/dcrdata/contributors","subscribers_url":"https://api.github.com/repos/dcrdata/dcrdata/subscribers","subscription_url":"https://api.github.com/repos/dcrdata/dcrdata/subscription","commits_url":"https://api.github.com/repos/dcrdata/dcrdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcrdata/dcrdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcrdata/dcrdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcrdata/dcrdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcrdata/dcrdata/contents/{+path}","compare_url":"https://api.github.com/repos/dcrdata/dcrdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcrdata/dcrdata/merges","archive_url":"https://api.github.com/repos/dcrdata/dcrdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcrdata/dcrdata/downloads","issues_url":"https://api.github.com/repos/dcrdata/dcrdata/issues{/number}","pulls_url":"https://api.github.com/repos/dcrdata/dcrdata/pulls{/number}","milestones_url":"https://api.github.com/repos/dcrdata/dcrdata/milestones{/number}","notifications_url":"https://api.github.com/repos/dcrdata/dcrdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcrdata/dcrdata/labels{/name}","releases_url":"https://api.github.com/repos/dcrdata/dcrdata/releases{/id}","deployments_url":"https://api.github.com/repos/dcrdata/dcrdata/deployments","created_at":"2017-02-22T16:24:53Z","updated_at":"2018-02-06T05:36:06Z","pushed_at":"2018-02-13T19:53:58Z","git_url":"git://github.com/dcrdata/dcrdata.git","ssh_url":"git@github.com:dcrdata/dcrdata.git","clone_url":"https://github.com/dcrdata/dcrdata.git","svn_url":"https://github.com/dcrdata/dcrdata","homepage":"https://explorer.dcrdata.org/","size":6157,"stargazers_count":19,"watchers_count":19,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":65,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc"},"forks":22,"open_issues":65,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dcrdata/dcrdata/pulls/347"},"html":{"href":"https://github.com/dcrdata/dcrdata/pull/347"},"issue":{"href":"https://api.github.com/repos/dcrdata/dcrdata/issues/347"},"comments":{"href":"https://api.github.com/repos/dcrdata/dcrdata/issues/347/comments"},"review_comments":{"href":"https://api.github.com/repos/dcrdata/dcrdata/pulls/347/comments"},"review_comment":{"href":"https://api.github.com/repos/dcrdata/dcrdata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dcrdata/dcrdata/pulls/347/commits"},"statuses":{"href":"https://api.github.com/repos/dcrdata/dcrdata/statuses/1132a9f40b7f4fbe22947495e0dfad768a7360bb"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"chappjc","id":9373513,"avatar_url":"https://avatars1.githubusercontent.com/u/9373513?v=4","gravatar_id":"","url":"https://api.github.com/users/chappjc","html_url":"https://github.com/chappjc","followers_url":"https://api.github.com/users/chappjc/followers","following_url":"https://api.github.com/users/chappjc/following{/other_user}","gists_url":"https://api.github.com/users/chappjc/gists{/gist_id}","starred_url":"https://api.github.com/users/chappjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chappjc/subscriptions","organizations_url":"https://api.github.com/users/chappjc/orgs","repos_url":"https://api.github.com/users/chappjc/repos","events_url":"https://api.github.com/users/chappjc/events{/privacy}","received_events_url":"https://api.github.com/users/chappjc/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":22,"deletions":5,"changed_files":1}}
{"actor":{"display_login":"chappjc"}}