Instead of using a default mining address, refuse to start in non-solo mode without a btcaddress configured.

This commit is contained in:
Con Kolivas 2023-05-28 12:45:23 +10:00
parent 6b9c70ea7c
commit dc7b2e17c5

View File

@ -1746,8 +1746,8 @@ int main(int argc, char **argv)
ckp.tndonaddress = "tb1q5fyv7tue73y4zxezh2c685qpwx0cfngfxlrgxh";
ckp.rtdonaddress = "bcrt1qlk935ze2fsu86zjp395uvtegztrkaezawxx0wf";
if (!ckp.btcaddress)
ckp.btcaddress = ckp.donaddress;
if (!ckp.btcaddress && !ckp.btcsolo)
quit(0, "Non solo mining must have a btcaddress in config, aborting!");
if (!ckp.blockpoll)
ckp.blockpoll = 100;
if (!ckp.nonce1length)