Syntax
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user