From c6c5c4f486949a45b5444017cfd52b81c3747cf0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 16 Jun 2014 23:01:16 +1000 Subject: [PATCH] Add reward to the workinfo database dump --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 30c270b0..cd3d0eb3 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -406,7 +406,7 @@ static void send_workinfo(ckpool_t *ckp, workbase_t *wb) sprintf(cdfield, "%lu,%lu", wb->gentime.tv_sec, wb->gentime.tv_nsec); - val = json_pack("{ss,si,ss,ss,ss,ss,ss,ss,ss,ss,so,ss,ss,ss,ss}", + val = json_pack("{ss,si,ss,ss,ss,ss,ss,ss,ss,ss,si,so,ss,ss,ss,ss}", "method", "workinfo", "workinfoid", wb->id, "poolinstance", ckp->name, @@ -417,6 +417,7 @@ static void send_workinfo(ckpool_t *ckp, workbase_t *wb) "version", wb->bbversion, "ntime", wb->ntime, "bits", wb->nbit, + "reward", wb->coinbasevalue, "merklehash", json_deep_copy(wb->merkle_array), "createdate", cdfield, "createby", "code",