From 3cd82a5dd1cb59adf8373194b7947200f4dde652 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 22 Apr 2014 13:12:53 +1000 Subject: [PATCH] Validate pool address on starting generator --- src/generator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generator.c b/src/generator.c index fd7a4de1..2c3ba43b 100644 --- a/src/generator.c +++ b/src/generator.c @@ -115,6 +115,10 @@ int generator(proc_instance_t *pi) goto out; } clear_gbtbase(&gbt); + if (!validate_address(&cs, ckp->btcaddress)) { + LOGWARNING("Invalid btcaddress: %s, unable to start!", ckp->btcaddress); + goto out; + } ret = gen_loop(pi, &cs); out: