Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
92a34108e5
  1. 6
      iguana/iguana_instantdex.c

6
iguana/iguana_instantdex.c

@ -693,6 +693,12 @@ char *instantdex_swapset(struct supernet_info *myinfo,struct instantdex_accept *
insurance = (satoshis[1] * INSTANTDEX_INSURANCERATE + coinbtc->chain->txfee); // txfee prevents papercut attack insurance = (satoshis[1] * INSTANTDEX_INSURANCERATE + coinbtc->chain->txfee); // txfee prevents papercut attack
offerdir = instantdex_bidaskdir(ap); offerdir = instantdex_bidaskdir(ap);
vcalc_sha256(0,orderhash.bytes,(void *)&ap->offer,sizeof(ap->offer)); vcalc_sha256(0,orderhash.bytes,(void *)&ap->offer,sizeof(ap->offer));
{
int32_t i;
for (i=0; i<sizeof(ap->offer); i++)
printf("%02x ",((uint8_t *)&ap->offer)[i]);
printf("swapset.%llu\n",(long long)ap->orderid);
}
if ( offerdir > 0 ) if ( offerdir > 0 )
{ {
swap->bidid = ap->orderid; swap->bidid = ap->orderid;

Loading…
Cancel
Save