From d65d6dd4fa5685a786e9f7b4d3db8e29a9beb7c5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 8 Oct 2016 11:19:34 -0300 Subject: [PATCH] test --- iguana/iguana_notary.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 4a6d80854..b4d0d5a77 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -435,7 +435,7 @@ int32_t dpow_signedtxgen(struct supernet_info *myinfo,struct dpow_info *dp,struc int32_t i,j,siglen,m=0; char *rawtx,*sigstr; cJSON *txobj,*sigobj,*txobj2,*vins,*item,*vin; uint8_t data[128],extraspace[8192],serialized[16384]; bits256 txid,srchash,desthash; struct iguana_msgtx msgtx; uint32_t channel; channel = 's' | ('i' << 8) | ('g' << 16) | ('s' << 24); for (j=0; jDPOW.minerkey33[j]; + srchash.bytes[j] = myinfo->DPOW.minerkey33[j+1]; if ( (txobj= dpow_createtx(coin,&vins,notaries,numnotaries,height,lastk,mask,0,hashmsg,btctxid)) != 0 ) { if ( (rawtx= bitcoin_json2hex(myinfo,coin,&txid,txobj,0)) != 0 ) @@ -507,7 +507,7 @@ int32_t dpow_mostsignedtx(struct supernet_info *myinfo,struct dpow_info *dp,stru *maskp = 0; channel = 's' | ('i' << 8) | ('g' << 16) | ('s' << 24); for (j=0; jDPOW.minerkey33[j]; + desthash.bytes[j] = myinfo->DPOW.minerkey33[j+1]; num = 0; k_masks = calloc(4096,128); for (i=0; iDPOW.minerkey33[j]; + srchash.bytes[j] = myinfo->DPOW.minerkey33[j+1]; printf("%s statemachine state.%d %s\n",coin->symbol,state,coinaddr); switch ( state ) {