Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0d22733c66
  1. 1
      iguana/pangea_api.c
  2. 3
      iguana/pangea_hand.c

1
iguana/pangea_api.c

@ -188,6 +188,7 @@ char *pangea_jsondatacmd(struct supernet_info *myinfo,bits256 tablehash,struct p
jaddstr(argjson,"playeripaddr",ipaddr);
jaddbits256(argjson,"categoryhash",pangeahash);
jaddbits256(argjson,"subhash",tablehash);
jaddbits256(argjson,"mypub",myinfo->myaddr.pubkey);
jaddbits256(argjson,"playerpub",myinfo->myaddr.persistent);
jaddstr(argjson,"handle",jstr(json,"handle"));
nxt64bits = acct777_nxt64bits(myinfo->myaddr.persistent);

3
iguana/pangea_hand.c

@ -258,7 +258,8 @@ void pangea_newhand(PANGEA_HANDARGS)
hand->summaries = hand->mismatches = tp->summarysize = 0;
handid = tp->numhands++;
pangea_summaryadd(myinfo,tp,CARDS777_START,&handid,sizeof(handid),hand->cardpubs[0].bytes,sizeof(bits256) * (numcards + 1));
pangea_sendcmd(myinfo,tp,"gotdeck",-1,hand->checkprod.bytes,sizeof(bits256),hand->cardi,hand->button);
pangea_sendcmd(myinfo,tp,"gothand",-1,hand->checkprod.bytes,sizeof(bits256),hand->cardi,hand->button);
printf("sent gotdeck\n");
}
}

Loading…
Cancel
Save