Syntax
This commit is contained in:
@@ -415,7 +415,7 @@ void komodo_nSPVreq(CNode *pfrom,std::vector<uint8_t> request) // received a req
|
||||
if ( timestamp > pfrom->prevtimes[ind] )
|
||||
{
|
||||
struct NSPV_ntzsproofresp P; uint256 prevntz,nextntz;
|
||||
if ( len == 1+sizeof(prevht)+sizeof(nextht) )
|
||||
if ( len == 1+sizeof(prevntz)+sizeof(nextntz) )
|
||||
{
|
||||
iguana_rwbignum(0,&request[1],sizeof(prevntz),(uint8_t *)&prevntz);
|
||||
iguana_rwbignum(0,&request[1+sizeof(prevntz)],sizeof(nextntz),(uint8_t *)&nextntz);
|
||||
|
||||
@@ -81,7 +81,7 @@ int32_t NSPV_gettransaction(int32_t vout,uint256 txid,int32_t height,CTransactio
|
||||
offset = (height - NSPV_ntzsresult.prevntz.height);
|
||||
if ( offset >= 0 && height <= NSPV_ntzsresult.nextntz.height )
|
||||
{
|
||||
NSPV_hdrsproof(NSPV_ntzsresult.prevtxid,NSPV_ntzsresult.nexttxid);
|
||||
NSPV_hdrsproof(NSPV_ntzsresult.prevntz.txid,NSPV_ntzsresult.nextntz.txid);
|
||||
if ( (retval= NSPV_validatehdrs(&NSPV_ntzsproofresult)) == 0 )
|
||||
{
|
||||
std::vector<uint256> txids; std::vector<uint8_t> proof; uint256 proofroot;
|
||||
|
||||
Reference in New Issue
Block a user