|
@ -19,7 +19,7 @@ |
|
|
struct dpow_nanomsghdr |
|
|
struct dpow_nanomsghdr |
|
|
{ |
|
|
{ |
|
|
bits256 srchash,desthash,srcutxo,destutxo; |
|
|
bits256 srchash,desthash,srcutxo,destutxo; |
|
|
uint64_t bestmask,recvbits; |
|
|
uint64_t bestmask,recvmask; |
|
|
uint32_t channel,height,size,datalen,crc32,numipbits,ipbits[64]; |
|
|
uint32_t channel,height,size,datalen,crc32,numipbits,ipbits[64]; |
|
|
uint16_t srcvout,destvout; |
|
|
uint16_t srcvout,destvout; |
|
|
char symbol[16]; |
|
|
char symbol[16]; |
|
@ -131,10 +131,10 @@ void dpow_send(struct supernet_info *myinfo,struct dpow_info *dp,struct dpow_blo |
|
|
np->senderind = bp->myind; |
|
|
np->senderind = bp->myind; |
|
|
memcpy(np->ipbits,myinfo->dpowipbits,myinfo->numdpowipbits * sizeof(*myinfo->dpowipbits)); |
|
|
memcpy(np->ipbits,myinfo->dpowipbits,myinfo->numdpowipbits * sizeof(*myinfo->dpowipbits)); |
|
|
//printf("dpow_send.(%d) size.%d numipbits.%d\n",datalen,size,np->numipbits);
|
|
|
//printf("dpow_send.(%d) size.%d numipbits.%d\n",datalen,size,np->numipbits);
|
|
|
np->srcutxo = bp->ratifysrcutxos[bp->myind]; |
|
|
np->srcutxo = bp->notaries[bp->myind].ratifysrcutxo; |
|
|
np->srcvout = bp->ratifysrcvouts[bp->myind]; |
|
|
np->srcvout = bp->notaries[bp->myind].ratifysrcvout; |
|
|
np->destutxo = bp->ratifydestutxos[bp->myind]; |
|
|
np->destutxo = bp->notaries[bp->myind].ratifydestutxo; |
|
|
np->destvout = bp->ratifydestvouts[bp->myind]; |
|
|
np->destvout = bp->notaries[bp->myind].ratifydestvout; |
|
|
for (i=0; i<2; i++) |
|
|
for (i=0; i<2; i++) |
|
|
{ |
|
|
{ |
|
|
np->ratifysiglens[i] = bp->ratifysiglens[i]; |
|
|
np->ratifysiglens[i] = bp->ratifysiglens[i]; |
|
|