Wallet: Use typedef CoinSet in wallet.o #5446

pull jtimon wants to merge 1 commits into bitcoin:master from jtimon:coinset changing 3 files +7 −7
  1. jtimon commented at 2:08 PM on December 8, 2014: contributor

    Innocuous change in wallet. Move CoinSet typedef from wallet_tests.cpp to wallet.h and use it there and in wallet.cpp.

  2. Use typedef CoinSet in wallet.o 54f7fe5454
  3. gavinandresen commented at 3:18 PM on December 8, 2014: contributor

    I don't like these type of tidy-up changes; our bottleneck is review and testing, and this just adds to our review and testing overhead with almost no benefit.

    And personally, I prefer to see the explicit type for trivial types like this; the added indirection of a typedef isn't worth it for me.

  4. jtimon closed this on Dec 9, 2014

  5. laanwj commented at 7:03 AM on December 10, 2014: member

    Neutral on this. A typedef is useful to make it possible to change the underlying implementation. Eg we did this for CCoinsMap, to easily be able to switch between std::map, boost::unordered_map, etc.

    My comment would be on the name CCoinsSet - it is way too aspecific for a wallet-specific type and clashes with CCoinsMap in that way.

    Anyhow, as said, I'm neutral on this, I don't think it makes much difference whether to to it for a type like this that is only used in one or two places and we'll likely never change.

  6. MarcoFalke locked this on Sep 8, 2021

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-17 15:15 UTC

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