On Tue, Jul 28, 2015 at 09:16:53PM +0300, Nikita Karetnikov wrote: > The last two tests here: > > https://git.gnu.io/snowdrift/snowdrift/merge_requests/61/diffs > > are very similar. However, the first one counts two patrons with zero > funds while defunding (which shouldn't happen), and the second one > doesn't (which is expected). Could you help me figure out why?
I think I figured it out. Since Sue has the highest pledge, she is processed first. However, this means that all the other patrons, being unprocessed, are considered active. It is only after Sue is processed that the other patrons are deactivated. In effect, the mechanism is not defunding pledges efficiently. I am going to work on a new algorithm for defunding underfunded pledges. See https://snowdrift.coop/p/snowdrift/w/en/mechanism/c/3351 p.s. Good catch, Nikita! Your work on the test has paid off by shedding light this situation.
signature.asc
Description: Digital signature
_______________________________________________ Dev mailing list [email protected] https://lists.snowdrift.coop/mailman/listinfo/dev
