This commit is contained in:
jl777
2018-04-13 16:12:19 +03:00
parent 010f741c1f
commit 5368f298cd

View File

@@ -724,7 +724,7 @@ uint32_t komodo_heightstamp(int32_t height)
void komodo_pindex_init(CBlockIndex *pindex)
{
int32_t i,num; uint8_t pubkeys[64][33];
int32_t i,num; uint8_t pubkeys[64][33]; CBlock block;
pindex->notaryid = -1;
memset(pindex->pubkey33,0,33);
if ( komodo_blockload(block,pindex) == 0 )
@@ -761,14 +761,6 @@ void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex,int32_t height)
}
}
/*void komodo_connectpindex(CBlockIndex *pindex)
{
CBlock block;
if ( komodo_blockload(block,pindex) == 0 )
komodo_connectblock(pindex,block);
}*/
int8_t komodo_minerid(int32_t height,uint8_t *pubkey33)
{
int32_t num,i,numnotaries; CBlockIndex *pindex; uint32_t timestamp=0; uint8_t _pubkey33[33],pubkeys[64][33];