printf("MISMATCHED required confirms me.(%d %d) vs (%d %d)\n",swap->I.aliceconfirms,swap->I.bobconfirms,aliceconfirms,bobconfirms);
if(swap->I.aliceconfirms<aliceconfirms)
swap->I.aliceconfirms=aliceconfirms;
if(swap->I.bobconfirms<bobconfirms)
swap->I.bobconfirms=bobconfirms;
}
if((swap->I.otherstrust=data[len++])!=0)
{
if(swap->I.otheristrusted!=0)
{
swap->I.aliceconfirms=swap->I.bobconfirms=0;
printf("Otherside trusts us, adjust required confirms to: alice.%d bob.%d\n",swap->I.aliceconfirms,swap->I.bobconfirms);
}
}
printf("NUMCONFIRMS for SWAP alice.%d bob.%d, otheristrusted.%d othertrusts.%d\n",swap->I.aliceconfirms,swap->I.bobconfirms,swap->I.otheristrusted,swap->I.otherstrust);
for(i=0;i<33;i++)
if((other33[i]=data[len++])!=0)
nonz++;
@ -746,7 +768,7 @@ void LP_bobloop(void *_swap)
{
if(strcmp(swap->alicecoin.symbol,"BTC")==0)
m=0;
elsem=1;
elsem=swap->I.aliceconfirms;
while((n=LP_numconfirms(swap->alicecoin.symbol,swap->alicepayment.I.destaddr,swap->alicepayment.I.signedtxid,0,1))<m)// sync with alice
{
charstr[65];printf("%d waiting for alicepayment %s to be confirmed.%d %s %s\n",n,swap->alicepayment.I.destaddr,1,swap->alicecoin.symbol,bits256_str(str,swap->alicepayment.I.signedtxid));
charstr[65];printf("%d waiting for alicepayment %s to be confirmed.%d %s %s\n",n,swap->alicepayment.I.destaddr,1,swap->alicecoin.symbol,bits256_str(str,swap->alicepayment.I.signedtxid));