{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8610","repository_url":"https://api.github.com/repos/bitcoin/bitcoin","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8610/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8610/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8610/events","html_url":"https://github.com/bitcoin/bitcoin/pull/8610","id":173595968,"number":8610,"title":"Share unused mempool memory with coincache","user":{"login":"sipa","id":548488,"avatar_url":"https://avatars.githubusercontent.com/u/548488?v=3","gravatar_id":"","url":"https://api.github.com/users/sipa","html_url":"https://github.com/sipa","followers_url":"https://api.github.com/users/sipa/followers","following_url":"https://api.github.com/users/sipa/following{/other_user}","gists_url":"https://api.github.com/users/sipa/gists{/gist_id}","starred_url":"https://api.github.com/users/sipa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sipa/subscriptions","organizations_url":"https://api.github.com/users/sipa/orgs","repos_url":"https://api.github.com/users/sipa/repos","events_url":"https://api.github.com/users/sipa/events{/privacy}","received_events_url":"https://api.github.com/users/sipa/received_events","type":"User","site_admin":false},"labels":[{"id":164208572,"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/Mempool","name":"Mempool","color":"fef2c0","default":false},{"id":97470796,"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/UTXO%20Db%20and%20Indexes","name":"UTXO Db and Indexes","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-08-27T13:24:11Z","updated_at":"2016-12-22T03:23:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/8610","html_url":"https://github.com/bitcoin/bitcoin/pull/8610","diff_url":"https://github.com/bitcoin/bitcoin/pull/8610.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/8610.patch"},"body":"A suggestion from IRC: allow the chainstate cache to use unused mempool memory.\r\n\r\nIf the mempool is not completely full, treat the difference between the maximum size and the actual usage as available for the coin cache.\r\n\r\nThis also changes the early flush trigger from (usage > 0.9 * space) to (usage > 0.9 * space && usage > space - 100MB). This means we're not permanently leaving 10% of the space unused when the space is large.\r\n"},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/268709078","html_url":"https://github.com/bitcoin/bitcoin/pull/8610#issuecomment-268709078","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8610","id":268709078,"user":{"login":"sipa","id":548488,"avatar_url":"https://avatars.githubusercontent.com/u/548488?v=3","gravatar_id":"","url":"https://api.github.com/users/sipa","html_url":"https://github.com/sipa","followers_url":"https://api.github.com/users/sipa/followers","following_url":"https://api.github.com/users/sipa/following{/other_user}","gists_url":"https://api.github.com/users/sipa/gists{/gist_id}","starred_url":"https://api.github.com/users/sipa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sipa/subscriptions","organizations_url":"https://api.github.com/users/sipa/orgs","repos_url":"https://api.github.com/users/sipa/repos","events_url":"https://api.github.com/users/sipa/events{/privacy}","received_events_url":"https://api.github.com/users/sipa/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T03:23:04Z","updated_at":"2016-12-22T03:23:04Z","body":"Rebased, and rewritten to take https://github.com/bitcoin/bitcoin/pull/8610#discussion_r89663403 into account."}}
{"actor":{"display_login":"sipa"}}