Add transactions to the tracked class list.

This commit is contained in:
JoelKatz
2012-10-31 16:02:21 -07:00
parent a37c5d6314
commit ca65e5ad8f
2 changed files with 6 additions and 1 deletions

View File

@@ -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)
{

View File

@@ -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<Transaction>
class Transaction : public boost::enable_shared_from_this<Transaction>, private IS_INSTANCE(Transaction)
{
public:
typedef boost::shared_ptr<Transaction> pointer;