promag
commented at 1:20 AM on February 13, 2018:
member
Check that all transaction destinations, including change address if specified, are distinct.
The error is also raised in the UI:
<img width="922" alt="screen shot 2018-02-13 at 01 17 49" src="https://user-images.githubusercontent.com/3534524/36128715-c25a7720-105b-11e8-8b07-4cc4836c0b52.png">
promag renamed this: wallet: Force distinct destinations in CWallet::CreateTransaction Force distinct destinations in CWallet::CreateTransaction on Feb 13, 2018
fanquake added the label Wallet on Feb 13, 2018
promag
commented at 1:21 AM on February 13, 2018:
member
A similar check exists in sendmany but at the moment the errors are different. Not sure it should change there or try to make this equal (the problem is that the errors in CWallet are translated and RPC errors aren't).
laanwj
commented at 10:23 AM on February 13, 2018:
member
Concept ACK. I think this should be enforced consistently.
promag
commented at 11:19 AM on February 13, 2018:
member
Empact
commented at 6:44 AM on May 21, 2018:
member
Concept ACK, agree the original warning is more clear.
DrahtBot closed this on Jul 20, 2018
DrahtBot
commented at 8:29 PM on July 20, 2018:
member
<!--5d09a71f8925f3f132321140b44b946d-->The last travis run for this pull request was 157 days ago and is thus outdated. To trigger a fresh travis build, this pull request should be closed and re-opened.
DrahtBot reopened this on Jul 20, 2018
ken2812221
commented at 1:44 PM on September 18, 2018:
contributor
Concept ACK
meshcollider
commented at 1:48 AM on November 11, 2018:
contributor
This looks good but the comments above need addressing (feel free to cherry-pick from my 201811_duplicate_dest_check branch)
EDIT: This will also prevent fundrawtransaction from funding a transaction with duplicate outputs, correct? Is that what we want? If someone has gone to the effort of creating a transaction with duplicate outputs manually, maybe we should allow it there?
DrahtBot added the label Needs rebase on Apr 27, 2019
promag force-pushed on May 21, 2019
wallet: Force distinct destinations in CWallet::CreateTransaction
Check that all transaction destinations, including change address
if specified, are distinct.
04f45ea52c
promag force-pushed on May 21, 2019
DrahtBot removed the label Needs rebase on May 21, 2019
promag
commented at 10:59 AM on June 27, 2019:
member
Closing for now, as @meshcollider mentions, this approach breaks the following case:
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-29 21:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me