Store claims by claim_id and fileinfo by sd_hash #192

Merged
6ea86b96 merged 5 commits from claims-by-id into master 2017-06-07 17:09:39 +02:00
Showing only changes of commit 732c9c3bd3 - Show all commits

View file

@ -13,6 +13,9 @@ reducers[types.RESOLVE_URI_COMPLETED] = function(state, action) {
if (claim) {
byId[claim.claim_id] = claim;
byUri[uri] = claim.claim_id;
} else if (claim === undefined && certificate !== undefined) {
byId[certificate.claim_id] = certificate;
byUri[uri] = certificate.claim_id;
} else {
byUri[uri] = null;
}