wallet: Fix ReserveKeyFromKeyPool to always test key classification, even if last in the pool. #13257

pull Empact wants to merge 1 commits into bitcoin:master from Empact:fix-reserve-key-classification-check changing 1 files +3 −2
  1. Empact commented at 5:03 AM on May 17, 2018: member

    In the prior code set_pre_split_keypool's size is sampled before and after the removal, so when the last key is being reserved, it previously would not apply the "keypool entry misclassified" test.

  2. Fix CWallet::ReserveKeyFromKeyPool to always test key classification
    Even if last in the pool. In the prior code set_pre_split_keypool's size is
    sampled before and after the removal, so when the last key is being reserved,
    it previously would not apply the "keypool entry misclassified" test.
    a730bd5900
  3. Empact commented at 5:06 AM on May 17, 2018: member

    Nevermind. The set sampled is not the one modified in this case. Not a bug. :P

  4. Empact closed this on May 17, 2018

  5. Empact deleted the branch on May 17, 2018
  6. DrahtBot locked this on Sep 8, 2021
Contributors

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-04-30 00:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me