From 0955056d5cf2f6fc0a922a901c171ea5e56f360a Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 3 Dec 2014 14:58:35 -0800 Subject: [PATCH] correctly parsed ldb blocks. --- src/bitcoindjs.cc | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 7ee424eb..5b96b1cc 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -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;