• Calin Culianu's avatar
    Remove copy & assignment for CTranscaction for type safety · 8dd5b076
    Calin Culianu authored
    This makes this type much safer to use and enforces the use of
    CTransactionRef in new code.  Copying or assigning these objects around
    is almost always a programming error.
    We also want to never put these objects directly into a vector.
    This change already detected and fixed a problem in txmempool.cpp where
    code was making heavy copies of transactions when it should have been
    taking cheap shared_ptr copies instead.
transaction.h 11.1 KB