Browse Source

try

patch-14
blackjok3r 5 years ago
parent
commit
719b342c1c
  1. 2
      iguana/dpow/dpow_fsm.c
  2. 4
      iguana/dpow/dpow_network.c

2
iguana/dpow/dpow_fsm.c

@ -309,7 +309,7 @@ void dpow_statemachinestart(void *ptr)
bp->srccoin = src;
bp->destcoin = dest;
bp->myind = -1;
bp->destht_start = dp->DESTHEIGHT;
bp->destht_start = bp->destcoin->longestchain;
for (i=0; i<sizeof(bp->notaries)/sizeof(*bp->notaries); i++)
bp->notaries[i].bestk = -1;
bp->opret_symbol = dp->symbol;

4
iguana/dpow/dpow_network.c

@ -2000,20 +2000,18 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru
bp->bestmask = dpow_maskmin(bp->recvmask,bp,&bp->bestk);
}
// check that block has advanced by 1 on KMD before allowing bestmask to be calculated
if ( strcmp(bp->destcoin->symbol,"KMD") == 0 )
{
if ( bp->destht_start == bp->destcoin->longestchain )
return;
else fprintf(stderr, "%s->KMD: checkpoint ht.%i vs longestchain.%i\n",bp->srccoin->symbol, bp->destht_start, bp->destcoin->longestchain);
}
else
{
if ( bp->height == bp->srccoin->longestchain )
return;
else fprintf(stderr, "KMD->BTC: checkpoint ht.%i vs longestchain.%i\n", bp->height , bp->srccoin->longestchain);
}
fprintf(stderr, "[%s] checkpoint ht.%i vs longestchain.%i\n",bp->srccoin->symbol, bp->destht_start, bp->destcoin->longestchain);
dpow_bestconsensus(dp,bp);
if ( bp->bestk >= 0 )

Loading…
Cancel
Save