{"action":"closed","issue":{"url":"https://api.github.com/repos/nimiq-network/core/issues/188","repository_url":"https://api.github.com/repos/nimiq-network/core","labels_url":"https://api.github.com/repos/nimiq-network/core/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/nimiq-network/core/issues/188/comments","events_url":"https://api.github.com/repos/nimiq-network/core/issues/188/events","html_url":"https://github.com/nimiq-network/core/issues/188","id":240157086,"number":188,"title":"Persistent acc tree storage: broken root key storage (node test only)","user":{"login":"schrnz","id":27693469,"avatar_url":"https://avatars0.githubusercontent.com/u/27693469?v=4","gravatar_id":"","url":"https://api.github.com/users/schrnz","html_url":"https://github.com/schrnz","followers_url":"https://api.github.com/users/schrnz/followers","following_url":"https://api.github.com/users/schrnz/following{/other_user}","gists_url":"https://api.github.com/users/schrnz/gists{/gist_id}","starred_url":"https://api.github.com/users/schrnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schrnz/subscriptions","organizations_url":"https://api.github.com/users/schrnz/orgs","repos_url":"https://api.github.com/users/schrnz/repos","events_url":"https://api.github.com/users/schrnz/events{/privacy}","received_events_url":"https://api.github.com/users/schrnz/received_events","type":"User","site_admin":false},"labels":[{"id":601583251,"url":"https://api.github.com/repos/nimiq-network/core/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-03T12:25:07Z","updated_at":"2017-11-11T15:39:16Z","closed_at":"2017-11-11T15:39:16Z","author_association":"COLLABORATOR","body":"## Bug report\r\n\r\nThe persistent account tree does not find its own root when tested via jasmine (node). It works, however, when tested directly in the browser (gulp test). Consequently, a crash occurs since many operations recursively start at the root node, which is undefined in this case. This might be an issue with the different implementations of the IndexDB API.\r\n\r\n#### Expected behavior\r\n\r\nFor local and browser tests, the persistent account tree storage should be able to find the root node stored under its hash. \r\n\r\n#### Actual behavior\r\n\r\nRequesting the root node using its hash yields ```undefined```. \r\n\r\n#### Steps to reproduce\r\n\r\nSee test below. Since #161 prevents us from testing persistent acc tree storage in general, you need to uncomment [line 28](https://github.com/nimiq-network/core/blob/2444a603b469c7712bc03c78541f06c66610e23c/src/test/specs/generic/consensus/accounts/AccountsTree.spec.js#L28) and restrict yourself to a single test (e.g., via ```fit```)"}}
{"actor":{"display_login":"paberr"}}