komodo_reconsiderblock

This commit is contained in:
jl777
2019-04-12 01:56:16 -11:00
parent b306b39550
commit 7ad01e44ed
3 changed files with 24 additions and 2 deletions

View File

@@ -448,6 +448,18 @@ int32_t komodo_verifynotarizedscript(int32_t height,uint8_t *script,int32_t len,
return(-1);
}
void komodo_reconsiderblock(uint256 blockhash)
{
char params[256],*jsonstr,*hexstr;
sprintf(params,"[\"%s\"]",blockhash.ToString().c_str());
komodo_reconsiderblock(Queued_reconsiderblock);
if ( (jsonstr= komodo_issuemethod(KMDUSERPASS,(char *)"reconsiderblock",params,KMD_PORT)) != 0 )
{
fprintf(stderr,"komodo_reconsiderblock.(%s) -> (%s)\n",params,jsonstr);
free(jsonstr);
}
}
int32_t komodo_verifynotarization(char *symbol,char *dest,int32_t height,int32_t NOTARIZED_HEIGHT,uint256 NOTARIZED_HASH,uint256 NOTARIZED_DESTTXID)
{
char params[256],*jsonstr,*hexstr; uint8_t *script,_script[8192]; int32_t n,len,retval = -1; cJSON *json,*txjson,*vouts,*vout,*skey;