Tweak
This commit is contained in:
@@ -416,17 +416,6 @@ int32_t NSPV_pubkeysextract(uint8_t pubkeys[64][33],CTransaction tx,uint8_t elec
|
||||
return(numsigs);
|
||||
}
|
||||
|
||||
uint256 NSPV_DBopretextract(int32_t *heightp,uint256 *blockhashp,char *symbol,std::vector<uint8_t> opret)
|
||||
{
|
||||
uint256 desttxid; int32_t i;
|
||||
iguana_rwnum(0,&opret[32],sizeof(*heightp),heightp);
|
||||
for (i=0; i<32; i++)
|
||||
((uint8_t *)blockhashp)[i] = opret[i];
|
||||
for (i=0; i<32; i++)
|
||||
((uint8_t *)&desttxid)[i] = opret[4 + 32 + i];
|
||||
return(desttxid);
|
||||
}
|
||||
|
||||
uint256 NSPV_opretextract(int32_t *heightp,uint256 *blockhashp,char *symbol,std::vector<uint8_t> opret)
|
||||
{
|
||||
uint256 desttxid; int32_t i;
|
||||
@@ -449,11 +438,11 @@ int32_t NSPV_notarizationextract(int32_t *heightp,uint256 *blockhashp,uint256 *t
|
||||
GetOpReturnData(tx.vout[1].scriptPubKey,opret);
|
||||
if ( opret.size() >= 32*2+4*2 )
|
||||
*desttxidp = NSPV_opretextract(heightp,blockhashp,symbol,opret);
|
||||
{
|
||||
/*{
|
||||
int z;
|
||||
for (z=0; z<68; z++)
|
||||
fprintf(stderr,"%02x",opret[z]);
|
||||
}
|
||||
}*/
|
||||
fprintf(stderr," ntzht.%d %s txid.%s size.%d\n",*heightp,(*blockhashp).GetHex().c_str(),(*desttxidp).GetHex().c_str(),(int32_t)opret.size());
|
||||
*txidp = tx.GetHash();
|
||||
return(0);
|
||||
|
||||
Reference in New Issue
Block a user