correctly parsed ldb blocks.

This commit is contained in:
Christopher Jeffrey 2014-12-03 14:58:35 -08:00
parent 43b3439639
commit 0955056d5c
1 changed files with 14 additions and 13 deletions

View File

@ -6136,6 +6136,9 @@ read_addr(const std::string addr) {
uint256 blockhash;
ssKey >> blockhash;
//CMerkleBlock b;
//ssValue >> b;
CBlockHeader header;
ssValue >> header;
@ -6146,19 +6149,17 @@ read_addr(const std::string addr) {
unsigned int nTx;
ssValue >> nTx;
/*
class CValidationState {
enum mode_state {
MODE_VALID, // everything ok
MODE_INVALID, // network rule violation (DoS value may be set)
MODE_ERROR, // run-time error
} mode;
int nDoS;
std::string strRejectReason;
unsigned char chRejectCode;
bool corruptionPossible;
}
*/
//class CValidationState {
// enum mode_state {
// MODE_VALID, // everything ok
// MODE_INVALID, // network rule violation (DoS value may be set)
// MODE_ERROR, // run-time error
// } mode;
// int nDoS;
// std::string strRejectReason;
// unsigned char chRejectCode;
// bool corruptionPossible;
//}
// CValidationState valid;
// ssValue >> valid;