|
@ -292,6 +292,8 @@ void dpow_statemachinestart(void *ptr) |
|
|
// printf("%02x",pubkeys[i][j]);
|
|
|
// printf("%02x",pubkeys[i][j]);
|
|
|
//printf(" <= pubkey[%d]\n",i);
|
|
|
//printf(" <= pubkey[%d]\n",i);
|
|
|
memcpy(bp->notaries[i].pubkey,pubkeys[i],33); |
|
|
memcpy(bp->notaries[i].pubkey,pubkeys[i],33); |
|
|
|
|
|
if ( strcmp("KMD",src->symbol) == 0 ) |
|
|
|
|
|
memcpy(myinfo->notaries[i].pubkey,pubkeys[i],33); |
|
|
if ( memcmp(bp->notaries[i].pubkey,dp->minerkey33,33) == 0 ) |
|
|
if ( memcmp(bp->notaries[i].pubkey,dp->minerkey33,33) == 0 ) |
|
|
{ |
|
|
{ |
|
|
myind = i; |
|
|
myind = i; |
|
@ -301,6 +303,8 @@ void dpow_statemachinestart(void *ptr) |
|
|
printf(" MYIND.%d <<<<<<<<<<<<<<<<<<<<<<\n",myind); |
|
|
printf(" MYIND.%d <<<<<<<<<<<<<<<<<<<<<<\n",myind); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if ( strcmp("KMD",src->symbol) == 0 ) |
|
|
|
|
|
myinfo->numnotaries = bp->numnotaries; |
|
|
if ( myind < 0 || ep == 0 ) |
|
|
if ( myind < 0 || ep == 0 ) |
|
|
{ |
|
|
{ |
|
|
printf("minerkey33-> "); |
|
|
printf("minerkey33-> "); |
|
@ -370,11 +374,6 @@ void dpow_statemachinestart(void *ptr) |
|
|
bp->notaries[myind].ratifydestvout = ep->dest.prev_vout; |
|
|
bp->notaries[myind].ratifydestvout = ep->dest.prev_vout; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if ( strcmp(bp->srccoin->symbol,"KMD") == 0 ) |
|
|
|
|
|
{ |
|
|
|
|
|
memcpy(myinfo->notaries,bp->notaries,bp->numnotaries * sizeof(*bp->notaries)); |
|
|
|
|
|
myinfo->numnotaries = bp->numnotaries; |
|
|
|
|
|
} |
|
|
|
|
|
bp->recvmask |= (1LL << myind); |
|
|
bp->recvmask |= (1LL << myind); |
|
|
bp->notaries[myind].othermask |= (1LL << myind); |
|
|
bp->notaries[myind].othermask |= (1LL << myind); |
|
|
dp->checkpoint = checkpoint; |
|
|
dp->checkpoint = checkpoint; |
|
|