diff --git a/src/Transaction.cpp b/src/Transaction.cpp index 2fca627427..c4dbd435c9 100644 --- a/src/Transaction.cpp +++ b/src/Transaction.cpp @@ -13,6 +13,8 @@ #include "SerializedTransaction.h" #include "Log.h" +DECLARE_INSTANCE(Transaction); + Transaction::Transaction(SerializedTransaction::ref sit, bool bValidate) : mInLedger(0), mStatus(INVALID), mResult(temUNCERTAIN), mTransaction(sit) { diff --git a/src/Transaction.h b/src/Transaction.h index 8d14654e29..ea049b5279 100644 --- a/src/Transaction.h +++ b/src/Transaction.h @@ -21,6 +21,7 @@ #include "SHAMap.h" #include "SerializedTransaction.h" #include "TransactionErr.h" +#include "InstanceCounter.h" class Database; @@ -37,8 +38,10 @@ enum TransStatus INCOMPLETE = 8 // needs more signatures }; +DEFINE_INSTANCE(Transaction); + // This class is for constructing and examining transactions. Transactions are static so manipulation functions are unnecessary. -class Transaction : public boost::enable_shared_from_this +class Transaction : public boost::enable_shared_from_this, private IS_INSTANCE(Transaction) { public: typedef boost::shared_ptr pointer;