{"action":"created","issue":{"url":"https://api.github.com/repos/NebulousLabs/Sia/issues/1356","repository_url":"https://api.github.com/repos/NebulousLabs/Sia","labels_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/1356/labels{/name}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/1356/comments","events_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/1356/events","html_url":"https://github.com/NebulousLabs/Sia/pull/1356","id":165247526,"number":1356,"title":"better storage obligation safety","user":{"login":"DavidVorick","id":2316841,"avatar_url":"https://avatars.githubusercontent.com/u/2316841?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidVorick","html_url":"https://github.com/DavidVorick","followers_url":"https://api.github.com/users/DavidVorick/followers","following_url":"https://api.github.com/users/DavidVorick/following{/other_user}","gists_url":"https://api.github.com/users/DavidVorick/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidVorick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidVorick/subscriptions","organizations_url":"https://api.github.com/users/DavidVorick/orgs","repos_url":"https://api.github.com/users/DavidVorick/repos","events_url":"https://api.github.com/users/DavidVorick/events{/privacy}","received_events_url":"https://api.github.com/users/DavidVorick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NebulousLabs/Sia/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T06:34:34Z","updated_at":"2016-07-13T17:39:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/1356","html_url":"https://github.com/NebulousLabs/Sia/pull/1356","diff_url":"https://github.com/NebulousLabs/Sia/pull/1356.diff","patch_url":"https://github.com/NebulousLabs/Sia/pull/1356.patch"},"body":"The host now locks storage obligations before ever pulling them from the\r\ndatabase, and keeps the locks until the host is no longer going to be\r\nadding them to the database. This resolves some issues relating to\r\nstorage obligation corruption, which can cause errors like 'Consensus\r\nConflict' and can cause the host to report the wrong revision number, or\r\nto have the wrong sector roots, etc."},"comment":{"url":"https://api.github.com/repos/NebulousLabs/Sia/issues/comments/232430764","html_url":"https://github.com/NebulousLabs/Sia/pull/1356#issuecomment-232430764","issue_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/1356","id":232430764,"user":{"login":"lukechampine","id":3344749,"avatar_url":"https://avatars.githubusercontent.com/u/3344749?v=3","gravatar_id":"","url":"https://api.github.com/users/lukechampine","html_url":"https://github.com/lukechampine","followers_url":"https://api.github.com/users/lukechampine/followers","following_url":"https://api.github.com/users/lukechampine/following{/other_user}","gists_url":"https://api.github.com/users/lukechampine/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechampine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechampine/subscriptions","organizations_url":"https://api.github.com/users/lukechampine/orgs","repos_url":"https://api.github.com/users/lukechampine/repos","events_url":"https://api.github.com/users/lukechampine/events{/privacy}","received_events_url":"https://api.github.com/users/lukechampine/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T17:39:22Z","updated_at":"2016-07-13T17:39:22Z","body":"This causes a NDF in my contractor integration test:\r\n```\r\n--- FAIL: TestResync (2.52s)\r\n\thost_integration_test.go:652: host did not accept revision request: the requested file contract is currently locked\r\n```"}}
{"actor":{"display_login":"lukechampine"}}