From acb3f1d8f4ed0df2585c5143342111f69d6f1965 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 19 Oct 2016 10:35:54 -0300 Subject: [PATCH] test --- src/komodo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index fd3d011b8..9fc0d2ffa 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -306,7 +306,7 @@ int32_t komodo_voutupdate(int32_t notaryid,uint8_t *scriptbuf,int32_t scriptlen, void komodo_connectblock(CBlockIndex *pindex,CBlock& block) { - char *scriptstr,*opreturnstr; uint64_t signedmask,voutmask; uint32_t notarizedheight; + char *scriptstr,*opreturnstr; uint64_t signedmask,voutmask; uint8_t scriptbuf[4096]; uint256 kmdtxid,btctxid,txhash; int32_t i,j,k,specialtx,notarizedheight,notaryid,len,numvouts,numvins,height,txn_count,flag; // update voting results and official (height, notaries[]) @@ -326,7 +326,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) if ( len <= sizeof(scriptbuf) ) { memcpy(scriptbuf,block.vtx[i].vout[j].scriptPubKey.data(),len); - notaryid = komodo_voutupdate(notaryid,scriptbuf,scriptlen,height,txhash,i,j,&voutmask,&specialtx,¬arizedheight); + notaryid = komodo_voutupdate(notaryid,scriptbuf,len,height,txhash,i,j,&voutmask,&specialtx,¬arizedheight); } } if ( notaryid >= 0 && voutmask != 0 )