Merge branch 'jl777' into nSPV
This commit is contained in:
@@ -121,7 +121,7 @@ int32_t NSPV_setequihdr(struct NSPV_equihdr *hdr,int32_t height)
|
||||
|
||||
int32_t NSPV_getinfo(struct NSPV_inforesp *ptr,int32_t reqheight)
|
||||
{
|
||||
int32_t prevMoMheight,len = 0; CBlockIndex *pindex; struct NSPV_ntzsresp pair;
|
||||
int32_t prevMoMheight,len = 0; CBlockIndex *pindex, *pindex2; struct NSPV_ntzsresp pair;
|
||||
if ( (pindex= chainActive.LastTip()) != 0 )
|
||||
{
|
||||
ptr->height = pindex->GetHeight();
|
||||
@@ -130,6 +130,9 @@ int32_t NSPV_getinfo(struct NSPV_inforesp *ptr,int32_t reqheight)
|
||||
if ( NSPV_getntzsresp(&pair,ptr->height-1) < 0 )
|
||||
return(-1);
|
||||
ptr->notarization = pair.prevntz;
|
||||
if ( (pindex2= komodo_chainactive(ptr->notarization.txidheight)) != 0 )
|
||||
ptr->notarization.timestamp = pindex->nTime;
|
||||
fprintf(stderr, "timestamp.%i\n", ptr->notarization.timestamp );
|
||||
if ( reqheight == 0 )
|
||||
reqheight = ptr->height;
|
||||
ptr->hdrheight = reqheight;
|
||||
|
||||
Reference in New Issue
Block a user