Files
rippled/Transaction.h
2011-10-27 16:59:42 -07:00

27 lines
581 B
C++

#ifndef __TRANSACTION__
#define __TRANSACTION__
#include "newcoin.pb.h"
#include "uint256.h"
#include <boost/shared_ptr.hpp>
/*
We could have made something that inherited from the protobuf transaction but this seemed simpler
*/
typedef boost::shared_ptr<newcoin::Transaction> TransactionPtr;
class Transaction
{
public:
static bool isSigValid(TransactionPtr trans);
static bool isEqual(TransactionPtr t1, TransactionPtr t2);
static uint256 calcHash(TransactionPtr trans);
};
extern bool gTransactionSorter(const TransactionPtr& lhs, const TransactionPtr& rhs);
#endif