From cdc3c8779ad451e099c2a6b308ce521383735023 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 4 Nov 2012 14:58:24 +1100 Subject: [PATCH] 32 bit hex encoded variables should be in LE with GBT. --- cgminer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index ef23e63c..aedc1a50 100644 --- a/cgminer.c +++ b/cgminer.c @@ -1560,8 +1560,8 @@ static bool gbt_decode(struct pool *pool, json_t *res_val) pool->coinbasetxn = strdup(coinbasetxn); pool->longpollid = strdup(longpollid); pool->gbt_expires = expires; - pool->gbt_version = htobe32(version); - pool->curtime = htobe32(curtime); + pool->gbt_version = htole32(version); + pool->curtime = htole32(curtime); pool->gbt_submitold = submitold; pool->gbt_bits = strdup(bits); __build_gbt_txns(pool, res_val);