test
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
void komodo_stateupdate(int32_t height,uint8_t notarypubs[][33],uint8_t numnotaries,uint8_t notaryid,uint256 txhash,uint64_t voutmask,uint8_t numvouts,uint32_t *pvals,uint8_t numpvals);
|
void komodo_stateupdate(int32_t height,uint8_t notarypubs[][33],uint8_t numnotaries,uint8_t notaryid,uint256 txhash,uint64_t voutmask,uint8_t numvouts,uint32_t *pvals,uint8_t numpvals);
|
||||||
void komodo_init();
|
void komodo_init();
|
||||||
int32_t komodo_notarizeddata(int32_t nHeight,uint256 *notarized_hashp,uint256 *notarized_desttxidp);
|
int32_t komodo_notarizeddata(int32_t nHeight,uint256 *notarized_hashp,uint256 *notarized_desttxidp);
|
||||||
|
char *komodo_issuemethod(char *method,char *params);
|
||||||
|
|
||||||
int32_t NOTARIZED_HEIGHT,Num_nutxos;
|
int32_t NOTARIZED_HEIGHT,Num_nutxos;
|
||||||
uint256 NOTARIZED_HASH,NOTARIZED_DESTTXID;
|
uint256 NOTARIZED_HASH,NOTARIZED_DESTTXID;
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ char *curl_post(CURL **cHandlep,char *url,char *userpass,char *postfields,char *
|
|||||||
|
|
||||||
char *komodo_issuemethod(char *method,char *params)
|
char *komodo_issuemethod(char *method,char *params)
|
||||||
{
|
{
|
||||||
static void *cHandle; extern char USERPASS[]; extern uint16_t BITCOIND_PORT;
|
static void *cHandle; extern char USERPASS[1024]; extern uint16_t BITCOIND_PORT;
|
||||||
char url[512],*retstr=0,postdata[8192];
|
char url[512],*retstr=0,postdata[8192];
|
||||||
if ( strlen(params) < sizeof(postdata)-128 )
|
if ( strlen(params) < sizeof(postdata)-128 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -953,7 +953,8 @@ char *parse_conf_line(char *line,char *field)
|
|||||||
|
|
||||||
void komodo_configfile(char *symbol,uint16_t port)
|
void komodo_configfile(char *symbol,uint16_t port)
|
||||||
{
|
{
|
||||||
FILE *fp; char fname[512],buf[128],line[4096],*rpcuser,*rpcpassword,*rpcport,*retstr;
|
extern uint16_t BITCOIND_PORT;
|
||||||
|
FILE *fp; char fname[512],buf[128],line[4096],*str,*rpcuser,*rpcpassword,*rpcport,*retstr;
|
||||||
srand((uint32_t)time(NULL));
|
srand((uint32_t)time(NULL));
|
||||||
sprintf(buf,"%s.conf",symbol);
|
sprintf(buf,"%s.conf",symbol);
|
||||||
BITCOIND_PORT = port;
|
BITCOIND_PORT = port;
|
||||||
|
|||||||
Reference in New Issue
Block a user