Permalink
Browse files

Faster name_list (11 times) and name_scan (3 times)

  • Loading branch information...
1 parent 7d74462 commit 31750e3601fd8b14d16e913c75de7d0c69c6b2d5 @khalahan khalahan committed May 10, 2012
Showing with 178 additions and 82 deletions.
  1. +26 −0 src/main.h
  2. +146 −79 src/namecoin.cpp
  3. +6 −3 src/namecoin.h
View
@@ -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);
+ )
+};
+
Oops, something went wrong.

0 comments on commit 31750e3

Please sign in to comment.