More work on core ledger and transaction processing code.

This commit is contained in:
JoelKatz
2011-11-22 15:42:03 -08:00
parent 41309b6f72
commit 6c7fd5f195
10 changed files with 253 additions and 106 deletions

View File

@@ -19,6 +19,10 @@ class SHAMap;
class SHAMapNode
{ // Identifies a node in a SHA256 hash
public:
typedef boost::shared_ptr<SHAMapNode> pointer;
private:
static uint256 smMasks[11]; // AND with hash to get node id
@@ -59,7 +63,7 @@ public:
};
class SHAMapItem : public boost::enable_shared_from_this<SHAMapItem>
class SHAMapItem
{ // an item stored in a SHAMap
public:
typedef boost::shared_ptr<SHAMapItem> pointer;
@@ -98,7 +102,6 @@ public:
virtual void dump(void);
};
class SHAMapLeafNode : public SHAMapNode
{
friend class SHAMap;
@@ -166,6 +169,12 @@ public:
virtual void dump(void);
};
enum SHAMapException
{
MissingNode=1,
InvalidNode=2
};
class SHAMap
{