From 156daf14759b846b1671af39c164d6fe424a6398 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 12 Sep 2018 01:49:08 -1100 Subject: [PATCH] Test --- src/cc/dapps/oraclefeed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/dapps/oraclefeed.c b/src/cc/dapps/oraclefeed.c index 19c7f140c..219f2d391 100644 --- a/src/cc/dapps/oraclefeed.c +++ b/src/cc/dapps/oraclefeed.c @@ -451,9 +451,9 @@ int32_t get_oracledata(int32_t prevheight,char *hexstr,int32_t maxsize,char *for for (i=0; i<4; i++) sprintf(&hexstr[i*2],"%02x",(uint8_t)((height >> (i*8)) & 0xff)); for (i=31; i>=0; i--) - sprintf(&hexstr[8 + i*2],"%02x",blockhash.bytes[31-i]); + sprintf(&hexstr[8 + (31-i)*2],"%02x",blockhash.bytes[i]); for (i=31; i>=0; i--) - sprintf(&hexstr[8 + 64 + i*2],"%02x",merkleroot.bytes[31-i]); + sprintf(&hexstr[8 + 64 + (31-i)*2],"%02x",merkleroot.bytes[i]); hexstr[8 + 64*2] = 0; return(height); }