Advertisement
Guest User

Untitled

a guest
Apr 13th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. You should start bchd with a least the following options:
  2. `bchd -u yourUsername -P yourPassword --rpclisten=0.0.0.0 --externalip=your_ip_here`
  3.  
  4. Alternatively you can put these options in the config file found at `~/.bchd/bchd.conf` so you don't need to enter them at start.
  5.  
  6. ```
  7. rpcuser=your_username
  8. rpcpass=your_loooooonnng_password
  9. rpclisten=0.0.0.0
  10. externalip=your_ip_here
  11. ```
  12.  
  13. On the very first start bchd generates a `rpc.key` and `rpc.cert` file and puts them in the data directory. `~/.bchd/rpc.cert`, etc.
  14. The cert file MUST have your external IP in it or it wont connect. This is why you pass the `--externalip=` option in at start. It will
  15. put the IP you pass in into the `rpc.cert` file when it creates it.
  16.  
  17. If you already started bchd once without the `--externalip=` flag it likely created the cert file without your IP in it. This is OK, however,
  18. as you can just delete the `rpc.key` and `rpc.cert` files and restart bchd with the `--externalip=` option and it will create
  19. a new key and cert.
  20.  
  21. From the Neutrino Android Wallet side I recommend letting the wallet sync to the tip in SPV mode before entering your bchd credentials. You technically
  22. can sync to the tip after entering your credentials but it is much slower than just syncing in SPV mode *then* entering your credentials and connecting to bchd.
  23.  
  24. This should not be considered a security reduction because the wallet will detect if the previous chain tip (from syncing SPV) doesn't match the current chain tip (reported
  25. by your full node) and will rollback and rescan from any fork point if one is detected.
  26.  
  27. To enter the credentials in the wallet you will need:
  28. - The IP address of your full node
  29. - Your `rpcuser` username
  30. - Your `rpcpassword` password
  31. - The text of the `rpc.cert` file
  32.  
  33. The connection to your full node will be encrypted and authenticated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement