Re: HELP!ZFEC ERROR!

Ramakrishnan Muthukrishnan ram at rkrishnan.org
Sun Jan 24 05:18:08 UTC 2016


On Sun, Jan 24, 2016, at 01:09 AM, Zooko Wilcox-O'Hearn wrote:
> Maybe the zfec C code could do a precondition check as early as
> possible and cause an assertion failure that clearly communicates to
> the programmer what the legal range of the inputs is.
> 
> The Python wrapper already does this:
> 
> https://github.com/vu3rdd/zfec/blob/master/zfec/_fecmodule.c#L66

Thanks! I added some asserts into the fec_new() and hopefully that will
give enough hints to the programmers using the fec.c directly (outside
the python module) to use valid inputs.

-- 
  Ramakrishnan


More information about the tahoe-dev mailing list