This commit is contained in:
jl777
2019-07-06 03:05:04 -11:00
parent 64915ad6d2
commit 6db0b511b9
2 changed files with 3 additions and 3 deletions

View File

@@ -365,7 +365,7 @@ void NSPV_broadcast_purge(struct NSPV_broadcastresp *ptr)
uint256 NSPV_doublesha256(uint8_t *data,int32_t datalen)
{
bits256 _hash; uint256 hash;
bits256 _hash; uint256 hash; int32_t i;
_hash = bits256_doublesha256(0,data,datalen);
for (i=0; i<32; i++)
((uint8_t *)&hash)[i] = _hash.bytes[31 - i];

View File

@@ -40,12 +40,12 @@ struct NSPV_ntzsproofresp
uint8_t *prevntz,*nextntz;
};*/
int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresult *ptr)
int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresp *ptr)
{
int32_t i;
// verify nextntz is valid notarization
// validate blockhash of lasthdr with nextntz value, and height
for (i=numhdrs-1; i>0; i--)
for (i=ptr->common.numhdrs-1; i>0; i--)
{
// make sure the hash of i-1 matches the prevBlockhash of i
}