mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
More work on core ledger and transaction processing code.
This commit is contained in:
13
SHAMap.h
13
SHAMap.h
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user