Browse Source

Test

pass-iguana-arg
jl777 7 years ago
parent
commit
94dc6e2668
  1. 5
      iguana/dpow/dpow_fsm.c
  2. 6
      iguana/dpow/dpow_network.c

5
iguana/dpow/dpow_fsm.c

@ -490,6 +490,11 @@ void dpow_statemachinestart(void *ptr)
bp->notaries[myind].ratifydestvout = ep->dest.prev_vout;
}
}
if ( strcmp(dp->symbol,"CHIPS") == 0 )
{
char str[65];
printf(">>>>>>> CHIPS myind.%d %s/v%d\n",i,bits256_str(str,bp->notaries[myind].src.prev_hash),bp->notaries[myind].src.prev_vout);
}
bp->recvmask |= (1LL << myind);
bp->notaries[myind].othermask |= (1LL << myind);
dp->checkpoint = checkpoint;

6
iguana/dpow/dpow_network.c

@ -1799,11 +1799,6 @@ void dpow_ratify_update(struct supernet_info *myinfo,struct dpow_info *dp,struct
{
printf("dont have %s %s utxo, please send funds\n",dp->symbol,srcaddr);
}
else if ( strcmp(dp->symbol,"CHIPS") == 0 )
{
char str[65];
printf(">>>>>>> CHIPS myind.%d %s/v%d\n",i,bits256_str(str,bp->notaries[i].src.prev_hash),bp->notaries[i].src.prev_vout);
}
}
}
}
@ -1847,6 +1842,7 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru
{
bp->notaries[senderind].src.prev_hash = srcutxo;
bp->notaries[senderind].src.prev_vout = srcvout;
char str[65]; printf("%s senderind.%d <- %s/v%d\n",dp->symbol,senderind,bits256_str(str,srcutxo),srcvout);
}
if ( bits256_nonz(destutxo) != 0 )
{

Loading…
Cancel
Save