From 34a08adef3cb3c6154188abea1ebb750c0596361 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 18 Oct 2016 12:52:59 -0300 Subject: [PATCH] test --- src/komodo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 9af9dc5f1..2c8680b33 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -31,9 +31,9 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp) block.SetNull(); CAutoFile filein(OpenBlockFile(pindex->GetBlockPos(),true),SER_DISK,CLIENT_VERSION); if ( filein.IsNull() ) - return(-1); + return(0); try { filein >> block; } - catch (const std::exception& e) { return(-1); } + catch (const std::exception& e) { return(0); } height = pindex->nHeight; coinbasestr = (char *)block.vtx[0].vout[0].scriptPubKey.ToString().c_str(); printf("ht.%d (%s)\n",height,coinbasestr);