From 9a3917ed7018c786d813daa44ff82823bb436fe1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 5 Nov 2017 16:50:37 +0200 Subject: [PATCH] Test --- src/komodo_gateway.h | 9 +++++---- src/komodo_kv.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 8a9baee45..5655db040 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1048,8 +1048,9 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 komodo_kvupdate(opretbuf,opretlen,value); return("kv"); } - else if ( KOMODO_PAX == 0 ) - return("nopax"); + //else if ( KOMODO_PAX == 0 ) + // return("nopax"); + printf("OPRET.%c\n",opretbuf[0]); if ( opretbuf[0] == 'D' ) { tokomodo = 0; @@ -1149,7 +1150,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( baseids[i] < 0 ) { static uint32_t counter; - if ( ++counter < 1 ) + if ( counter++ < 0 ) printf("%d of %d illegal baseid.%d, this can be ignored\n",i,n,baseids[i]); continue; } @@ -1361,7 +1362,7 @@ void komodo_stateind_set(struct komodo_state *sp,uint32_t *inds,int32_t n,uint8_ lastK = lastT = lastN = lastV = -1; for (iter=0; iter<2; iter++) { - for (lastfpos=fpos=prevpos100=i=0; i opretlen ) { static uint32_t counter; - if ( counter++ < 3 ) + if ( ++counter < 1 ) printf("komodo_kvupdate: keylen.%d + 13 > opretlen.%d, this can be ignored\n",keylen,opretlen); return; }