diff --git a/iguana/cards777.c b/iguana/cards777.c index 4941abd59..762a1df6d 100755 --- a/iguana/cards777.c +++ b/iguana/cards777.c @@ -238,7 +238,7 @@ uint8_t *cards777_encode(bits256 *encoded,bits256 *xoverz,uint8_t *allshares,uin init_sharenrs(sharenrs,0,N,N); cards777_calcmofn(allshares,myshares,sharenrs,M,xoverz,numcards,N); memcpy(ciphers,shuffled,numcards * N * sizeof(bits256)); - if ( 1 ) + if ( 0 ) { /*{ init_hexbytes_noT(nrs,dp->hand.sharenrs,dp->N); diff --git a/iguana/pangea_hand.c b/iguana/pangea_hand.c index d3b583496..1e4f8f169 100755 --- a/iguana/pangea_hand.c +++ b/iguana/pangea_hand.c @@ -289,11 +289,11 @@ int32_t pangea_checkstart(struct supernet_info *myinfo,int32_t N,int32_t turni,i sleep(PANGEA_PAUSE); hand->encodestarted = (uint32_t)time(NULL); pangea_queuestate(tp,PANGEA_GOTDECKS,PANGEA_GOTFINAL); - PNACL_message("start encoded %llx\n",(long long)hand->checkprod.txid); - if ( destplayer == tp->priv.myind ) + PNACL_message("start encoded %llx destplayer.%d vs myind.%d\n",(long long)hand->checkprod.txid,destplayer,tp->priv.myind); + if ( pangea_slotB(tp) == tp->priv.myind ) { printf("encode to myself\n"); - pangea_encoded(myinfo,N,turni,cardi,destplayer,tp->priv.myind,tp,tp->priv.outcards[0].bytes,sizeof(bits256) * tp->G.numactive * tp->G.numcards); + pangea_encoded(myinfo,N,turni,cardi,pangea_slotB(tp),tp->priv.myind,tp,tp->priv.outcards[0].bytes,sizeof(bits256) * tp->G.numactive * tp->G.numcards); } else pangea_sendcmd(myinfo,tp,"encoded",pangea_slotB(tp),tp->priv.outcards[0].bytes,sizeof(bits256) * tp->G.numactive * tp->G.numcards,tp->G.numactive*tp->G.numcards,-1); return(matches);