This PR removes in wallet_fundrawtransaction:
- unecessary variables/calls to
decoderawtransaction - unused
totalOutvariable and its related code (totalOutis used in some functions to test change, in other ones its value is not used)
This PR removes in wallet_fundrawtransaction:
decoderawtransactiontotalOut variable and its related code (totalOut is used in some functions to test change, in other ones its value is not used)
In `wallet_fundrawtransaction`, there are some unecessary
variables/calls to `decoderawtransaction`. They have not
been used.
In `wallet_fundrawtransaction`, `totalOut` is used in
some functions to check if the change is correct. In
other ones, it has been created but never used.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | kevkevinpal, MarcoFalke |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
utACK 108c625
I'm fine with just removing the unused variables but instead of removing the totalOut and dec_tx would it make sense to add an assertion on what that value is? Not exactly sure why the unused vars were added initially
Not exactly sure why the unused vars were added initially
Not sure if it might worth to add the asserts, it seems to be a leftover from a copy/paste since the functions (in general) are similar.
Not exactly sure why the unused vars were added initially
Not sure if it might worth to add the asserts, it seems to be a leftover from a copy/paste since the functions (in general) are similar.
Ya that makes sense, lgtm
lgtm ACK 108c6255bc670bbf2732f2b79f6c32c26e181208