Browse Source

Test

etomic
jl777 7 years ago
parent
commit
87b1cbd319
  1. 6
      iguana/exchanges/LP_remember.c

6
iguana/exchanges/LP_remember.c

@ -266,21 +266,21 @@ bits256 basilisk_swap_spendupdate(char *symbol,char *spentaddr,int32_t *sentflag
sentflags[utxoind] = 1; sentflags[utxoind] = 1;
if ( aliceaddr != 0 && strcmp(destaddr,aliceaddr) == 0 ) if ( aliceaddr != 0 && strcmp(destaddr,aliceaddr) == 0 )
{ {
//printf("ALICE spent.(%s) -> %s\n",bits256_str(str,txid),destaddr); printf("ALICE spent.(%s) -> %s\n",bits256_str(str,txid),destaddr);
sentflags[alicespent] = 1; sentflags[alicespent] = 1;
sentflags[bobspent] = 0; sentflags[bobspent] = 0;
txids[alicespent] = spendtxid; txids[alicespent] = spendtxid;
} }
else if ( bobaddr != 0 && strcmp(destaddr,bobaddr) == 0 ) else if ( bobaddr != 0 && strcmp(destaddr,bobaddr) == 0 )
{ {
//printf("BOB spent.(%s) -> %s\n",bits256_str(str,txid),destaddr); printf("BOB spent.(%s) -> %s\n",bits256_str(str,txid),destaddr);
sentflags[bobspent] = 1; sentflags[bobspent] = 1;
sentflags[alicespent] = 0; sentflags[alicespent] = 0;
txids[bobspent] = spendtxid; txids[bobspent] = spendtxid;
} }
else else
{ {
//printf("OTHER dest spent.(%s) -> %s\n",bits256_str(str,txid),destaddr); printf("OTHER dest spent.(%s) -> %s\n",bits256_str(str,txid),destaddr);
if ( aliceaddr != 0 ) if ( aliceaddr != 0 )
{ {
sentflags[bobspent] = 1; sentflags[bobspent] = 1;

Loading…
Cancel
Save