diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 8794cab01..9615da35d 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -719,6 +719,8 @@ int32_t basilisk_rawtx_gen(char *str,struct supernet_info *myinfo,struct basilis bitcoin_address(rawtx->coin->changeaddr,rawtx->coin->chain->pubtype,swap->persistent_pubkey33,33); printf("set change address.(%s)\n",rawtx->coin->changeaddr); } + //if ( strcmp(rawtx->coin->symbol,"BTC") == 0 ) + // txfee = 0; init_hexbytes_noT(scriptstr,script,scriptlen); basilisktag = (uint32_t)rand(); valsobj = cJSON_CreateObject(); @@ -1373,7 +1375,7 @@ int32_t basilisk_verify_otherstatebits(struct supernet_info *myinfo,void *ptr,ui { retval = iguana_rwnum(0,data,sizeof(swap->I.otherstatebits),&swap->I.otherstatebits); retval += iguana_rwnum(0,data,sizeof(t),&t); - //printf("got sendstate.%x\n",swap->I.otherstatebits); + printf("got sendstate.%x t.%u\n",swap->I.otherstatebits,t); return(retval); } else return(-1); } @@ -1529,7 +1531,7 @@ int32_t basilisk_checkdeck(struct supernet_info *myinfo,struct basilisk_swap *sw void basilisk_sendstate(struct supernet_info *myinfo,struct basilisk_swap *swap,uint8_t *data,int32_t maxlen) { int32_t datalen; uint32_t t = (uint32_t)time(NULL); - //printf("sendstate.%x\n",swap->I.statebits); + printf("sendstate.%x\n",swap->I.statebits); datalen = iguana_rwnum(1,data,sizeof(swap->I.statebits),&swap->I.statebits); datalen += iguana_rwnum(1,data,sizeof(t),&t); basilisk_swapsend(myinfo,swap,0x80000000,data,datalen,0,0); diff --git a/iguana/iguana_chains.c b/iguana/iguana_chains.c index 87a8ce798..b5749f8f5 100755 --- a/iguana/iguana_chains.c +++ b/iguana/iguana_chains.c @@ -486,7 +486,7 @@ void iguana_chaininit(struct supernet_info *myinfo,struct iguana_chain *chain,in if ( strcmp(chain->symbol,"BTC") == 0 ) { chain->unitval = 0x1d; - chain->txfee = 10000; + chain->txfee = 50000; chain->havecltv = 1; } else chain->txfee = 10000;