Complete the transaction-specific part of the ledger comparison logic.

This commit is contained in:
JoelKatz
2011-12-06 11:57:47 -08:00
parent 7375c1d22b
commit e07acea505
2 changed files with 51 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
#include "Hanko.h"
#include "Serializer.h"
#include "Account.h"
#include "SHAMap.h"
/*
We could have made something that inherited from the protobuf transaction but this seemed simpler
@@ -82,6 +83,12 @@ public:
static Transaction::pointer load(const uint256& id);
static Transaction::pointer findFrom(const uint160& fromID, uint32 seq);
// conversion function
static bool convertToTransactions(uint32 ourLedgerSeq, uint32 otherLedgerSeq,
bool checkFirstTransactions, bool checkSecondTransactions,
const std::map<uint256, std::pair<SHAMapItem::pointer,SHAMapItem::pointer> >& inMap,
std::map<uint256, std::pair<Transaction::pointer, Transaction::pointer> >& outMap);
bool operator<(const Transaction &) const;
bool operator>(const Transaction &) const;
bool operator==(const Transaction &) const;