scripted-diff: Wallet: Rename incorrectly named *UsedDestination #18193

pull luke-jr wants to merge 1 commits into bitcoin:master from luke-jr:rename_useddest changing 3 files +8 −8
  1. luke-jr commented at 4:42 AM on February 22, 2020: member

    These functions are used to mark/check if a key of our own has been used to spend (and only for avoid-reuse wallets), which has nothing to do with the destination/address itself. Give them more accurate names to avoid confusion.

    -BEGIN VERIFY SCRIPT- sed -i -e 's/UsedDestination/SpentKey/g' $(git grep -l 'UsedDestination' ./src) -END VERIFY SCRIPT-

  2. scripted-diff: Wallet: Rename incorrectly named *UsedDestination
    These functions are used to mark/check if a key of our own has been used to spend (and only for avoid-reuse wallets), which has nothing to do with the destination/address itself.
    Give them more accurate names to avoid confusion.
    
    -BEGIN VERIFY SCRIPT-
    sed -i -e 's/UsedDestination/SpentKey/g' $(git grep -l 'UsedDestination' ./src)
    -END VERIFY SCRIPT-
    bca8665d08
  3. fanquake added the label Wallet on Feb 22, 2020
  4. luke-jr requested review from kallewoof on Feb 22, 2020
  5. za-kk commented at 11:25 AM on February 22, 2020: contributor

    Concept ACK. This was something that caused confusion with myself (see #17355)

  6. kallewoof approved
  7. kallewoof commented at 11:57 AM on February 22, 2020: member

    ACK bca8665d0895c450e552c357a036d9e9579e3678

    This is something that bothered me as well, even though I was the one who wrote it.

  8. practicalswift commented at 9:05 AM on February 23, 2020: contributor

    ACK bca8665d0895c450e552c357a036d9e9579e3678 -- patch looks correct and rationale makes sense

  9. instagibbs commented at 2:38 PM on February 24, 2020: member
  10. instagibbs commented at 2:38 PM on February 24, 2020: member

    FWIW: originally it was destination-based, but that was a privacy leak

  11. MarcoFalke merged this on Feb 24, 2020
  12. MarcoFalke closed this on Feb 24, 2020

  13. sidhujag referenced this in commit d82d8ea169 on Feb 24, 2020
  14. MarkLTZ cross-referenced this on Apr 4, 2020 from issue Bitcoin PR tracking by MarkLTZ
  15. sidhujag referenced this in commit aa3131a28d on Nov 10, 2020
  16. Fabcien referenced this in commit f6e76d4795 on Jan 3, 2021
  17. bitcoin locked this on Feb 15, 2022

github-metadata-mirror

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-05-20 06:54 UTC