diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 5f4fb5302..7ee920089 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -713,6 +713,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 iguana_rwnum(0,&opretbuf[5],sizeof(kmdheight),&kmdheight); key = &opretbuf[9]; value = &key[keylen]; + printf("keylen.%d valuesize.%d height.%d (%02x %02x %02x) (%02x %02x %02x)\n",keylen,valuesize,kmdheight,key[0],key[1],key[2],value[0],value[1],value[2]); if ( sizeof(kmdheight)+sizeof(keylen)+sizeof(valuesize)+keylen+valuesize+1 == opretlen ) { portable_mutex_lock(&KOMODO_KV_mutex); diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 6e1f2ed7b..126a98efc 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -591,7 +591,7 @@ Value kvupdate(const Array& params, bool fHelp) opretlen = komodo_opreturnscript(opretbuf,'K',keyvalue,sizeof(height)+sizeof(uint16_t)*2+keylen+valuesize); for (i=0; i