-
Notifications
You must be signed in to change notification settings - Fork 37
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
Review usage of crate::receive::Error
#312
Comments
Partially addresses payjoin#312
Partially addresses payjoin#312
Partially addresses payjoin#312
Partially addresses payjoin#312
Rather than having v2 wrapping the v1 logic, might it make more sense to have some core PSBT mutation receive logic that gets wrapped by the network-specific details of either v2 and v1 protocols? The v1 module could handle encoding the errors for HTTP (as is done now, since |
Follow-up from #277 (review)
Server errors are meant to be returned as a response, but are being returned in places that don't always make sense, e.g.:
rust-payjoin/payjoin/src/receive/mod.rs
Line 486 in 4bc8fe3
rust-payjoin/payjoin-cli/src/app/v1.rs
Line 318 in 37d255e
rust-payjoin/payjoin-cli/src/app/v2.rs
Line 345 in 37d255e
It would be good to review usage of
crate::receive::Error
and improve error nesting generally.The text was updated successfully, but these errors were encountered: