Browse Source

Fix proxy breakage with attempting to validate btcaddress that isn't used

master
Con Kolivas 10 years ago
parent
commit
f802a7843b
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -2594,6 +2594,7 @@ int stratifier(proc_instance_t *pi)
buf = send_recv_proc(ckp->generator, "ping");
} while (!buf);
if (!ckp->proxy) {
if (!test_address(ckp, ckp->btcaddress)) {
LOGEMERG("Fatal: btcaddress invalid according to bitcoind");
goto out;
@ -2607,6 +2608,7 @@ int stratifier(proc_instance_t *pi)
ckp->donvalid = true;
address_to_pubkeytxn(donkeytxnbin, ckp->donaddress);
}
}
/* Set the initial id to time as high bits so as to not send the same
* id on restarts */

Loading…
Cancel
Save