jl777 8 years ago
parent
commit
6001817aa3
  1. 1
      basilisk/basilisk.h
  2. 2
      basilisk/basilisk_swap.c

1
basilisk/basilisk.h

@ -17,6 +17,7 @@
#define H_BASILISK_H
#define BASILISK_DISABLEWAITTX
//#define BASILISK_DISABLETX
#include "../iguana/iguana777.h"

2
basilisk/basilisk_swap.c

@ -1043,7 +1043,7 @@ int32_t basilisk_verify_privkeys(struct supernet_info *myinfo,void *ptr,uint8_t
uint32_t basilisk_swapdata_rawtxsend(struct supernet_info *myinfo,struct basilisk_swap *swap,uint32_t msgbits,uint8_t *data,int32_t maxlen,struct basilisk_rawtx *rawtx,uint32_t nextbits)
{
if ( basilisk_swapdata_rawtx(myinfo,swap,data,maxlen,rawtx) != 0 )
if ( basilisk_swapdata_rawtx(myinfo,swap,data,maxlen,rawtx) != 0 && bits256_nonz(rawtx->signedtxid) != 0 && bits256_nonz(rawtx->actualtxid) == 0 )
{
rawtx->actualtxid = basilisk_swap_broadcast(rawtx->name,myinfo,swap,rawtx->coin,rawtx->txbytes,rawtx->datalen);
char str[65],str2[65]; printf("rawtxsend %s vs %s\n",bits256_str(str,rawtx->signedtxid),bits256_str(str2,rawtx->actualtxid));

Loading…
Cancel
Save