From 500f38a978eb1a7da9e07ab86ab886bf65768694 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 23 Jul 2018 20:19:41 -1100 Subject: [PATCH] Test --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 871da14d7..76175cc73 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1614,16 +1614,18 @@ bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlo return true; } } - return(false); fprintf(stderr,"check disk\n"); if (fTxIndex) { CDiskTxPos postx; + fprintf(stderr,"ReadTxIndex\n"); if (pblocktree->ReadTxIndex(hash, postx)) { + fprintf(stderr,"OpenBlockFile\n"); CAutoFile file(OpenBlockFile(postx, true), SER_DISK, CLIENT_VERSION); if (file.IsNull()) return error("%s: OpenBlockFile failed", __func__); CBlockHeader header; + fprintf(stderr,"seek and read\n"); try { file >> header; fseek(file.Get(), postx.nTxOffset, SEEK_CUR);