-
Notifications
You must be signed in to change notification settings - Fork 389
fix(wallet): added the validation of previous tx outputs for get_psbt_input #1911
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
base: master
Are you sure you want to change the base?
Conversation
Note that adding the enum variant would constitute a major semver change, but there should be a way to reuse an error from rust-miniscript, for example |
hey @ValuedMammal As per your suggestion i have updated the error variant . I have found IndexOutOfBounds error variant in UtxoUpdateError i have used that. |
Hey @ValuedMammal updated as you have suggested. |
Hey @ItshMoh, this PR needs to be closed and moved to the new bdk_wallet repo. Here's how:
|
Description
It is fixing the issue bitcoindevkit/bdk_wallet#50 . This PR is adding validation of previous tx outputs. we would be checking the size of the prev_tx.output vector.
Notes to the reviewers
Here i have checked the size of the prev_tx.output vector. I have also added an error type of "InvalidVoutIndex"
Checklists
All Submissions:
cargo fmt
andcargo clippy
before committingBugfixes: