Browse Source

Test

etomic
jl777 8 years ago
parent
commit
0ba0779b36
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_transaction.c

2
iguana/exchanges/LP_nativeDEX.c

@ -369,7 +369,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
}
if ( coin->lastscanht == coin->longestchain )
continue;
else if ( coin->lastscanht > coin->longestchain )
else if ( coin->lastscanht > coin->longestchain+1 )
{
printf("detected chain rewind lastscanht.%d vs longestchain.%d, first.%d ref.%d\n",coin->lastscanht,coin->longestchain,coin->firstscanht,coin->firstrefht);
LP_undospends(coin,coin->longestchain-1);

2
iguana/exchanges/LP_transaction.c

@ -1338,7 +1338,7 @@ int32_t LP_verify_otherfee(struct basilisk_swap *swap,uint8_t *data,int32_t data
return(0);
}
}
return(0);
return(-1);
}
/* Bob deposit:

Loading…
Cancel
Save