xor a ?crit : > >> 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... > > I know. But we will have to test whether the plugin's database > stays consistent over a long time. Threading issues etc. might > break it. > > Aand this is one of the only ways of testing. > The getScore()==getRealScore() check should be run in debug mode > only (i.e. assert()) of course. Or maybe once a day in the first > few releases of WoT.
After further thinking, I can't figure a way to do this calculation backwards. If the goal is to check consistency, our best option is simply to build a new trust tree from scratch, and compare each identity's score to the new one. Maybe we should even do it regularily (rebuild the entire trust tree), or at least, give an option to do it when needed. -------------- 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/20081112/fd2b299e/attachment.pgp>
