Bugfix: Refuse to accept a template with neither coinbasetxn nor coinbasevalue

This commit is contained in:
Luke Dashjr
2016-08-11 06:57:22 +00:00
parent 51d1469cd1
commit 2cad5fdadb

View File

@@ -197,6 +197,8 @@ const char *blktmpl_add_jansson(blktemplate_t *tmpl, json_t *json, time_t time_r
tmpl->cbtxn = calloc(1, sizeof(*tmpl->cbtxn));
if ((s = parse_txn(tmpl->cbtxn, v)))
return s;
} else if (!tmpl->cbvalue) {
return "Missing either coinbasetxn or coinbasevalue";
}
// TODO: coinbaseaux