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: