From 508b0d3c8866f23af9245f1a9fc4fac5c8ebc558 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 22 Nov 2016 16:05:15 -0300 Subject: [PATCH] test --- src/komodo.h | 6 +++--- src/komodo_gateway.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 141ca8f2d..350c2afab 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -370,7 +370,7 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr else if ( opretlen == 0x4d ) { opretlen = scriptbuf[len++]; - opretlen = (opretlen << 8) + scriptbuf[len++]; + opretlen += (scriptbuf[len++] << 8); } if ( j == 1 && opretlen >= 32*2+4 && strcmp(ASSETCHAINS_SYMBOL[0]==0?"KMD":ASSETCHAINS_SYMBOL,(char *)&scriptbuf[len+32*2+4]) == 0 ) { @@ -492,8 +492,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) } } numvalid = bitweight(signedmask); - //if ( height == 79633 ) - // notarized = 1; + if ( height == 79633 ) + notarized = 1; if ( (((height < 90000 || (signedmask & 1) != 0) && numvalid >= KOMODO_MINRATIFY) || bitweight(signedmask) > (numnotaries>>1)) ) { printf("%s ht.%d txi.%d signedmask.%llx numvins.%d numvouts.%d <<<<<<<<<<< notarized\n",ASSETCHAINS_SYMBOL,height,i,(long long)signedmask,numvins,numvouts); diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 51eb5f02e..38aeb1847 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -480,7 +480,7 @@ void komodo_passport_iteration() else refid = komodo_baseid(ASSETCHAINS_SYMBOL)+1; // illegal base -> baseid.-1 -> 0 //printf("PASSPORT %s refid.%d\n",ASSETCHAINS_SYMBOL,refid); for (baseid=0; baseid<=32; baseid++) - {break; + { sp = 0; isrealtime = 0; base = (char *)CURRENCIES[baseid];