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