xor at freenetproject.org a ?crit : > Author: xor > Date: 2008-11-11 09:26:12 +0000 (Tue, 11 Nov 2008) > New Revision: 23480 > > Modified: > trunk/plugins/WoT/Identity.java > Log: > Add FIXME. > > Modified: trunk/plugins/WoT/Identity.java > + /* > + * FIXME: > + * I suggest before releasing we should write a getRealScore() function > which recalculates the score from all Trust objects which are stored > + * in the database. We could then assert(getScore() == getRealScore()) > for verifying that the database is consistent and watch for some time > + * whether it stays consistent, just to make sure that there are no > flaws in the code. > + */
Caution, this calculation is very expensive and difficult to do backwards. To calculate an identity's score, you need to know its trusters capacity and so on... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20081111/acc7fce7/attachment.pgp>
