|
|
@ -3499,26 +3499,24 @@ cJSON *basilisk_remember(struct supernet_info *myinfo,int64_t *KMDtotals,int64_t |
|
|
|
safecopy(bobcoin,symbol,sizeof(bobcoin)); |
|
|
|
else if ( i == BASILISK_BOBSPEND || i == BASILISK_ALICEPAYMENT || i == BASILISK_ALICERECLAIM ) |
|
|
|
safecopy(alicecoin,symbol,sizeof(alicecoin)); |
|
|
|
if ( finishedflag == 0 ) |
|
|
|
if ( (sentobj= basilisk_swapgettx(myinfo,symbol,txid)) == 0 ) |
|
|
|
{ |
|
|
|
//printf("%s %s ready to broadcast\n",symbol,bits256_str(str2,txid));
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if ( (sentobj= basilisk_swapgettx(myinfo,symbol,txid)) == 0 ) |
|
|
|
checktxid = jbits256(sentobj,"txid"); |
|
|
|
if ( bits256_nonz(checktxid) == 0 ) |
|
|
|
checktxid = jbits256(sentobj,"hash"); |
|
|
|
if ( bits256_cmp(checktxid,txid) == 0 ) |
|
|
|
{ |
|
|
|
//printf("%s %s ready to broadcast\n",symbol,bits256_str(str2,txid));
|
|
|
|
//printf(">>>>>> %s txid %s\n",jprint(sentobj,0),bits256_str(str,txid));
|
|
|
|
sentflags[i] = 1; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
checktxid = jbits256(sentobj,"txid"); |
|
|
|
if ( bits256_nonz(checktxid) == 0 ) |
|
|
|
checktxid = jbits256(sentobj,"hash"); |
|
|
|
if ( bits256_cmp(checktxid,txid) == 0 ) |
|
|
|
{ |
|
|
|
//printf(">>>>>> %s txid %s\n",jprint(sentobj,0),bits256_str(str,txid));
|
|
|
|
sentflags[i] = 1; |
|
|
|
} |
|
|
|
free_json(sentobj); |
|
|
|
} |
|
|
|
printf("%s %s %.8f\n",txnames[i],bits256_str(str,txid),dstr(value)); |
|
|
|
free_json(sentobj); |
|
|
|
} |
|
|
|
if ( finishedflag == 0 ) |
|
|
|
printf("%s %s %.8f\n",txnames[i],bits256_str(str,txid),dstr(value)); |
|
|
|
} |
|
|
|
} //else printf("no symbol\n");
|
|
|
|
free(fstr); |
|
|
|