From d8882dacaf05e27e5127ab07a0b4114ff64f5542 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 18 May 2014 22:57:00 +1000 Subject: [PATCH] Store the block height in proxy mode by extracting it from the coinbase --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index 2de87abd..a8948d73 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -504,6 +504,7 @@ static void update_notify(ckpool_t *ckp) json_strcpy(wb->coinb1, val, "coinbase1"); wb->coinb1len = strlen(wb->coinb1) / 2; hex2bin(wb->coinb1bin, wb->coinb1, wb->coinb1len); + wb->height = get_sernumber(wb->coinb1bin + 42); json_strcpy(wb->coinb2, val, "coinbase2"); wb->coinb2len = strlen(wb->coinb2) / 2; hex2bin(wb->coinb2bin, wb->coinb2, wb->coinb2len);