Skip to content

Commit

Permalink
Merge pull request bitcoin#2 from khalahan/fastindex
Browse files Browse the repository at this point in the history
Fastindex and new rpc commands
  • Loading branch information
khalahan committed May 26, 2012
2 parents 7d74462 + c8e8d04 commit e6b2f1b
Show file tree
Hide file tree
Showing 4 changed files with 419 additions and 84 deletions.
26 changes: 26 additions & 0 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,32 @@ class CDiskTxPos
}
};

class CNameIndex
{
public:
CDiskTxPos txPos;
unsigned int nHeight;
std::vector<unsigned char> vValue;

CNameIndex()
{
}

CNameIndex(CDiskTxPos txPosIn, unsigned int nHeightIn, std::vector<unsigned char> vValueIn)
{
txPos = txPosIn;
nHeight = nHeightIn;
vValue = vValueIn;
}

IMPLEMENT_SERIALIZE
(
READWRITE(txPos);
READWRITE(nHeight);
READWRITE(vValue);
)
};




Expand Down

0 comments on commit e6b2f1b

Please sign in to comment.