Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
a3e2a986c0
  1. 7
      iguana/exchanges/nxtae.c
  2. 1
      iguana/iguana777.h
  3. 2
      iguana/main.c

7
iguana/exchanges/nxtae.c

@ -83,6 +83,13 @@ char *_get_MSoffers(struct supernet_info *myinfo,char *str)
return(issue_NXTPOST(cmd));
}
char *issue_startForging(struct supernet_info *myinfo,char *secret)
{
char cmd[4096];
sprintf(cmd,"requestType=startForging&secretPhrase=%s",secret);
return(issue_NXTPOST(cmd));
}
uint32_t get_blockutime(struct supernet_info *myinfo,uint32_t blocknum)
{
cJSON *json; uint32_t timestamp = 0; char cmd[4096],*jsonstr;

1
iguana/iguana777.h

@ -755,6 +755,7 @@ cJSON *bitcoin_addinput(struct iguana_info *coin,cJSON *txobj,bits256 txid,int32
int32_t bitcoin_verifytx(struct iguana_info *coin,bits256 *signedtxidp,char **signedtx,char *rawtxstr,struct vin_info *V);
char *bitcoin_json2hex(struct iguana_info *coin,bits256 *txidp,cJSON *txjson);
int32_t bitcoin_addr2rmd160(uint8_t *addrtypep,uint8_t rmd160[20],char *coinaddr);
char *issue_startForging(struct supernet_info *myinfo,char *secret);
extern queue_t bundlesQ;

2
iguana/main.c

@ -1032,6 +1032,8 @@ void iguana_main(void *arg)
{
int32_t usessl = 0, ismainnet = 1;
struct supernet_info *myinfo; char *tmpstr,*helperargs,*coinargs,helperstr[512]; int32_t i;
issue_startForging(0,"secret");
mycalloc(0,0,0);
myinfo = SuperNET_MYINFO(0);
if ( usessl == 0 )

Loading…
Cancel
Save