-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Filter
API
#295
Improve Filter
API
#295
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 081b38c
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
bip158
module. Something in theBlockFilter
type is generic overRead
, but the type itself concretely usesVec
. TheRead
implementation ofVec
doesn't do any I/O so the result is infallible. We can just add anexpect
instead of propagating this error everywhere.ref: Use of
Vec
followed by the trait hellcc @nyonson