Test
This commit is contained in:
@@ -358,7 +358,7 @@ uint256 NSPV_getnotarization_txid(int32_t *ntzheightp,int32_t height)
|
||||
uint256 txid; Notarisation nota; char *symbol = (ASSETCHAINS_SYMBOL[0] == 0) ? (char *)"KMD" : ASSETCHAINS_SYMBOL;
|
||||
memset(&txid,0,sizeof(txid));
|
||||
*ntzheightp = 0;
|
||||
int32_t matchedHeight = ScanNotarisationsDB2(height+1,symbol,1440,nota);
|
||||
int32_t matchedHeight = ScanNotarisationsDB2(height,symbol,1440,nota);
|
||||
if ( matchedHeight != 0 )
|
||||
{
|
||||
*ntzheightp = matchedHeight;
|
||||
@@ -370,8 +370,11 @@ uint256 NSPV_getnotarization_txid(int32_t *ntzheightp,int32_t height)
|
||||
uint256 NSPV_extract_desttxid(char *symbol,std::vector<uint8_t> opret)
|
||||
{
|
||||
uint256 desttxid; int32_t i;
|
||||
for (i=0; i<opret.size(); i++)
|
||||
fprintf(stderr,"%02x",opret[i]);
|
||||
fprintf(stderr," opret\n");
|
||||
for (i=0; i<32; i++)
|
||||
((uint8_t *)&desttxid)[i] = opret[2 + 4 + 32 + 31 - i];
|
||||
((uint8_t *)&desttxid)[i] = opret[2 + 4 + 32 + i];
|
||||
return(desttxid);
|
||||
}
|
||||
|
||||
@@ -394,7 +397,7 @@ int32_t komodo_notarized_bracket(uint256 txids[2],uint256 desttxids[2],int32_t n
|
||||
desttxids[1] = desttxids[0];
|
||||
return(0);
|
||||
}
|
||||
if ( (ntzht= ScanNotarisationsDB(height,symbol,1440,nota)) != 0 )
|
||||
if ( (ntzht= ScanNotarisationsDB2(height+1,symbol,1440,nota)) != 0 )
|
||||
{
|
||||
txids[1] = nota.first;
|
||||
ntzheights[1] = ntzht;
|
||||
|
||||
Reference in New Issue
Block a user