From 29e69b853f981f42e6b2633d11c5bf93b3294867 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 19 Oct 2016 17:43:45 -0300 Subject: [PATCH] test --- src/komodo.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index a81288585..fa1b89faa 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -364,7 +364,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) static int32_t didinit; char *scriptstr,*opreturnstr; uint64_t signedmask,voutmask; uint8_t scriptbuf[4096],pubkeys[64][33]; uint256 kmdtxid,btctxid,txhash; - int32_t i,j,k,specialtx,notarizedheight,notaryid,len,numvouts,numvins,height,txn_count,flag; + int32_t i,j,k,numvalid,specialtx,notarizedheight,notaryid,len,numvouts,numvins,height,txn_count,flag; if ( didinit == 0 ) { komodo_stateupdate(0,0); @@ -412,6 +412,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) printf("NOTARY SIGNED.%llx numvins.%d ht.%d txi.%d notaryht.%d specialtx.%d\n",(long long)signedmask,numvins,height,i,notarizedheight,specialtx); if ( specialtx != 0 && numvouts > 2 && komodo_threshold(signedmask) > 0 ) { + numvalid = 0; memset(pubkeys,0,sizeof(pubkeys)); for (j=1; j 13 ) + komodo_stateupdate(pubkeys,numvalid); printf("new notaries.%d newheight.%d from height.%d\n",numvouts-1,(((height+500)/1000)+1)*1000,height); } }