jl777 8 years ago
parent
commit
493f976fd6
  1. 10
      iguana/dpow/dpow_network.c
  2. 1
      iguana/iguana_notary.c

10
iguana/dpow/dpow_network.c

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

1
iguana/iguana_notary.c

@ -23,6 +23,7 @@
#include "notaries.h"
int32_t dpow_datahandler(struct supernet_info *myinfo,struct dpow_info *dp,uint8_t nn_senderind,int8_t bestk,uint64_t bestmask,uint64_t recvmask,uint32_t channel,uint32_t height,uint8_t *data,int32_t datalen,bits256 nn_destutxo,uint16_t nn_destvout,bits256 nn_srcutxo,uint16_t nn_srcvout,uint8_t nn_siglens[2],uint8_t nn_sigs[2][76]);
uint64_t dpow_maskmin(uint64_t refmask,struct dpow_block *bp,int8_t *lastkp);
#include "dpow/dpow_network.c"
#include "dpow/dpow_rpc.c"

Loading…
Cancel
Save