This commit is contained in:
jl777
2016-10-20 09:10:10 -03:00
parent d2a23c0350
commit 21834acb21
2 changed files with 7 additions and 6 deletions

View File

@@ -545,7 +545,8 @@ void komodo_block2pubkey33(uint8_t *pubkey33,CBlock& block)
void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex)
{
CBlock block;
if ( ReadBlockFromDisk(block,(const CBlockIndex *)pindex) != 0 )
memset(pubkey,0,33);
if ( pindex != 0 && ReadBlockFromDisk(block,(const CBlockIndex *)pindex) != 0 )
komodo_block2pubkey33(pubkey33,block);
}