|
@ -532,17 +532,17 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti |
|
|
{ |
|
|
{ |
|
|
if ( (sentobj= LP_gettx(symbol,txid)) == 0 ) |
|
|
if ( (sentobj= LP_gettx(symbol,txid)) == 0 ) |
|
|
{ |
|
|
{ |
|
|
//printf("%s %s ready to broadcast\n",symbol,bits256_str(str2,txid));
|
|
|
char str2[65]; printf("%s %s ready to broadcast\n",symbol,bits256_str(str2,txid)); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
struct iguana_info *coin; int32_t ht; uint32_t locktime,blocktime; |
|
|
struct iguana_info *coin; int32_t ht = -1; uint32_t locktime,blocktime; |
|
|
checktxid = jbits256(sentobj,"txid"); |
|
|
checktxid = jbits256(sentobj,"txid"); |
|
|
if ( (coin= LP_coinfind(symbol)) != 0 && (ht= LP_txheight(&locktime,&blocktime,coin,txobj)) > 0 && ht > 0 ) |
|
|
if ( (coin= LP_coinfind(symbol)) != 0 && (ht= LP_txheight(&locktime,&blocktime,coin,txobj)) > 0 && ht > 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( coin->firstrefht == 0 || ht < coin->firstrefht ) |
|
|
if ( coin->firstrefht == 0 || ht < coin->firstrefht ) |
|
|
coin->firstrefht = ht; |
|
|
coin->firstrefht = ht; |
|
|
} |
|
|
} else printf("coin.%p ht.%d\n",coin,ht); |
|
|
if ( bits256_nonz(checktxid) == 0 ) |
|
|
if ( bits256_nonz(checktxid) == 0 ) |
|
|
checktxid = jbits256(sentobj,"hash"); |
|
|
checktxid = jbits256(sentobj,"hash"); |
|
|
if ( bits256_cmp(checktxid,txid) == 0 ) |
|
|
if ( bits256_cmp(checktxid,txid) == 0 ) |
|
|