|
|
@ -185,7 +185,11 @@ int32_t dpow_rwcoinentrys(int32_t rwflag,uint8_t *serialized,struct dpow_entry n |
|
|
|
{ |
|
|
|
int32_t i,len = 0; |
|
|
|
for (i=0; i<numnotaries; i++) |
|
|
|
{ |
|
|
|
if ( rwflag != 0 ) |
|
|
|
notaries[i].bestk = bestk; |
|
|
|
len += dpow_rwcoinentry(rwflag,&serialized[len],¬aries[i].src,¬aries[i].dest,¬aries[i].bestk); |
|
|
|
} |
|
|
|
return(len); |
|
|
|
} |
|
|
|
|
|
|
@ -193,7 +197,7 @@ int32_t dpow_sendcoinentrys(struct supernet_info *myinfo,struct dpow_info *dp,st |
|
|
|
{ |
|
|
|
uint8_t data[sizeof(struct dpow_coinentry)*64 + 4096]; bits256 zero; int32_t len = 0; |
|
|
|
memset(zero.bytes,0,sizeof(zero)); |
|
|
|
//printf(">>>>>>>>>>>>> dpow_sendcoinentrys\n");
|
|
|
|
printf(">>>>>>>>>>>>> dpow_sendcoinentrys (%d %llx) <- %llx\n",bp->bestk,(long long)bp->bestmask,(long long)bp->recvmask); |
|
|
|
data[len++] = bp->bestk; |
|
|
|
data[len++] = bp->numnotaries; |
|
|
|
len += iguana_rwbignum(1,&data[len],sizeof(bp->hashmsg),bp->hashmsg.bytes); |
|
|
|