Mid-level threading code.

This commit is contained in:
JoelKatz
2012-08-24 09:35:35 -07:00
parent 82c3a49e26
commit 4633aa019c
2 changed files with 105 additions and 3 deletions

View File

@@ -38,6 +38,18 @@ protected:
LedgerEntrySet(const boost::unordered_map<uint256, LedgerEntrySetEntry> &e, const TransactionMetaSet& s, int m) :
mEntries(e), mSet(s), mSeq(m) { ; }
SLE::pointer getForMod(const uint256& node, Ledger::pointer& ledger,
boost::unordered_map<uint256, SLE::pointer>& newMods);
bool threadNode(SLE::pointer& node, const NewcoinAddress& threadTo, Ledger::pointer& ledger,
boost::unordered_map<uint256, SLE::pointer>& newMods);
bool threadNode(SLE::pointer& node, SLE::pointer& threadTo, Ledger::pointer& ledger,
boost::unordered_map<uint256, SLE::pointer>& newMods);
bool threadOwners(SLE::pointer& node, Ledger::pointer& ledger,
boost::unordered_map<uint256, SLE::pointer>& newMods);
public:
LedgerEntrySet() : mSeq(0) { ; }
@@ -60,7 +72,7 @@ public:
void entryModify(const SLE::pointer&); // This entry will be modified
Json::Value getJson(int) const;
void addRawMeta(Serializer&, Ledger::pointer originalLedger);
void calcRawMeta(Serializer&, Ledger::pointer& originalLedger);
// iterator functions
bool isEmpty() const { return mEntries.empty(); }