github.com/palcoin-project/palcd@v1.0.0/docs/mining.md (about) 1 # Mining 2 3 btcd supports the `getblocktemplate` RPC. 4 The limited user cannot access this RPC. 5 6 ## Add the payment addresses with the `miningaddr` option 7 8 ```bash 9 [Application Options] 10 rpcuser=myuser 11 rpcpass=SomeDecentp4ssw0rd 12 miningaddr=12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX 13 miningaddr=1M83ju3EChKYyysmM2FXtLNftbacagd8FR 14 ``` 15 16 ## Add btcd's RPC TLS certificate to system Certificate Authority list 17 18 `cgminer` uses [curl](http://curl.haxx.se/) to fetch data from the RPC server. 19 Since curl validates the certificate by default, we must install the `btcd` RPC 20 certificate into the default system Certificate Authority list. 21 22 ## Ubuntu 23 24 1. Copy rpc.cert to /usr/share/ca-certificates: `# cp /home/user/.palcd/rpc.cert /usr/share/ca-certificates/btcd.crt` 25 2. Add btcd.crt to /etc/ca-certificates.conf: `# echo btcd.crt >> /etc/ca-certificates.conf` 26 3. Update the CA certificate list: `# update-ca-certificates` 27 28 ## Set your mining software url to use https 29 30 `cgminer -o https://127.0.0.1:8334 -u rpcuser -p rpcpassword`