Conversation
|
While I was at it, I changed the API signature of |
c64abb7 to
081b38c
Compare
Hm, the links you provided are the same? Not sure if intended cause I don't see the Read trait usage. But in any case, is the idea that there will definitely not be I/O errors since no I/O is actually happening? |
|
Oops, here is the line showing the |
|
Feels a little bad ignoring the API, but yea, makes sense. |
|
Yeah... the I take a lot of pride in the lack of panic conditions, even though this one should never trigger. It is a tiny amount of insurance to any changes to |
081b38c to
87a9403
Compare
|
self-ACK 87a9403 |
There is a bit of trait hell going on within the
bip158module. Something in theBlockFiltertype is generic overRead, but the type itself concretely usesVec. TheReadimplementation ofVecdoesn't do any I/O so the result is infallible. We can just add anexpectinstead of propagating this error everywhere.ref: Use of
Vecfollowed by the trait hellcc @nyonson