From 6347910195c55d389f4fffa58215282d5374f305 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 8 Dec 2014 10:21:50 -0800 Subject: [PATCH] do not use LDB_TX. --- src/bitcoindjs.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 46708cc1..47f6a32c 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -188,7 +188,7 @@ using namespace v8; // LevelDB options #define USE_LDB_ADDR 0 -#define USE_LDB_TX 1 +#define USE_LDB_TX 0 /** * Node.js Exposed Function Templates @@ -605,8 +605,10 @@ static ctx_list * read_addr(const std::string addr, const int64_t blockheight, const int64_t blocktime); #endif +#if USE_LDB_TX static bool get_block_by_tx(const std::string itxhash, CBlock& rcblock, CBlockIndex **rcblock_index); +#endif #if 0 static bool @@ -6520,6 +6522,7 @@ error: DB: blocks/blk/revXXXXX.dat */ +#if USE_LDB_TX static bool get_block_by_tx(const std::string itxhash, CBlock& rcblock, CBlockIndex **rcblock_index) { leveldb::Iterator* pcursor = pblocktree->pdb->NewIterator(pblocktree->iteroptions); @@ -6607,6 +6610,7 @@ error: delete pcursor; return false; } +#endif #if 0 /**