parse ldb block index again.

This commit is contained in:
Christopher Jeffrey 2014-12-03 14:54:24 -08:00
parent 94a292cf10
commit 43b3439639

View File

@ -6140,6 +6140,7 @@ read_addr(const std::string addr) {
ssValue >> header; ssValue >> header;
int nHeight; int nHeight;
//int64_t nHeight;
ssValue >> nHeight; ssValue >> nHeight;
unsigned int nTx; unsigned int nTx;
@ -6158,8 +6159,26 @@ read_addr(const std::string addr) {
bool corruptionPossible; bool corruptionPossible;
} }
*/ */
CValidationState valid; // CValidationState valid;
ssValue >> valid; // ssValue >> valid;
//int nDoS;
//ssValue >> nDoS;
//unsigned char chRejectCode;
//ssValue >> chRejectCode;
enum foo { a, b };
if (sizeof(a) == sizeof(int)) {
int valid;
ssValue >> valid;
} else if (sizeof(a) == sizeof(char)) {
char valid;
ssValue >> valid;
}
// bool isValid;
// ssValue >> isValid;
CDiskBlockPos blockPos; CDiskBlockPos blockPos;
ssValue >> blockPos; ssValue >> blockPos;