aboutsummaryrefslogtreecommitdiff
path: root/src/qt/forms
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-11-23 10:22:50 -0300
committerfanquake <fanquake@gmail.com>2022-12-05 17:43:46 +0000
commit8b726bf556e05edf02946d4b1c3356df17fd0d57 (patch)
tree92603993b79dc84f3846935e5b4554dd46d534bc /src/qt/forms
parent9d73176d00a013e1383ae18cb5c0f8cbdd186cba (diff)
downloadbitcoin-8b726bf556e05edf02946d4b1c3356df17fd0d57.tar.xz
test: Coin Selection, duplicated preset inputs selection
This exercises the bug inside CoinsResult::Erase that ends up on (1) a wallet crash or (2) a created and broadcasted tx that contains a reduced recipient's amount. This is covered by making the wallet selects the preset inputs twice during the coin selection process. Making the wallet think that the selection process result covers the entire tx target when it does not. It's actually creating a tx that sends more coins than what inputs are covering for. Which, combined with the SFFO option, makes the wallet incorrectly reduce the recipient's amount by the difference between the original target and the wrongly counted inputs. Which means, a created and relayed tx sending less coins to the destination than what the user inputted. Github-Pull: #26560 Rebased-From: cf793846978a8783c23b66ba6b4f3f30e83ff3eb
Diffstat (limited to 'src/qt/forms')
0 files changed, 0 insertions, 0 deletions