doc: Use bitcoind in Tor documentation #12877

pull knoxcard wants to merge 1 commits into bitcoin:master from knoxcard:patch-1 changing 1 files +2 −2
  1. knoxcard commented at 5:33 AM on April 4, 2018: contributor

    No description provided.

  2. fanquake added the label Docs on Apr 4, 2018
  3. sipa commented at 5:54 AM on April 4, 2018: member

    What does -daemon have to do with Tor?

  4. knoxcard commented at 5:59 AM on April 4, 2018: contributor

    bitcoind -proxy=127.0.0.1:9050 -externalip=57qr3yd1nyntf5k.onion -listen That starts the bitcoin server, but not as a background process. You are now stuck and do not return to the console, it hangs because it is running. Once you exit the terminal or hit ctrl+C, the process terminates.

    ./bitcoind -daemon -proxy=127.0.0.1:9050 -externalip=57qr3yd1nyntf5k.onion -listen Now the Bitcoin server starts, forks as a background process, then properly (exits), returns to the console.

  5. sipa commented at 6:03 AM on April 4, 2018: member

    Sure, but there are many other options people may want to combine with the Tor specific ones (for example -logtimestamps or -dbcache or -txindex or -maxconnections). Some of these may be necessary in your particular setup; others may be personal preference.

    But this document isn't trying to give a comprehensive overview of all options; just the Tor specific ones. There are probably dozens of others that could be listed.

  6. knoxcard commented at 6:05 AM on April 4, 2018: contributor

    Hmmm, can't imagine someone not using -daemon. The others options mentioned, -logtimestamps or -dbcache or -txindex or -maxconnections are definitely not required. In my Debian environment, I would never have a persistent process without it.

    How about the first correction I made, where it states bitcoin instead of bitcoind?

    	./bitcoin -proxy=127.0.0.1:9050
    	./bitcoind -daemon -proxy=127.0.0.1:9050
    

    or exclude -daemon

    	./bitcoin -proxy=127.0.0.1:9050
    	./bitcoind -proxy=127.0.0.1:9050
    
  7. knoxcard commented at 6:08 AM on April 4, 2018: contributor

    My apologies, daemon=1 can be configured in bitcoin.conf...gotchya Gonna resubmit pull request...

  8. sipa commented at 6:10 AM on April 4, 2018: member

    All options can be configured in bitcoin.conf or on the command line.

    Yes, the first fix (bitcoind instead of bitcoin) is great. There is another instance of that at the bottom of the file, btw.

    Which options you run with depend on your setup. For high performance systems, running without dbcache may be unacceptably slow for example. If you think nobody would want to run without daemon (I personally always do as well), perhaps that would be a good reason to discuss changing the default (but do so in a separate PR).

  9. knoxcard commented at 6:12 AM on April 4, 2018: contributor

    Updated Pull Request...

  10. knoxcard renamed this:
    Show correct bitcoin daemon bash commands
    Update Tor.md
    on Apr 4, 2018
  11. knoxcard renamed this:
    Update Tor.md
    Update Tor.md Doc
    on Apr 4, 2018
  12. knoxcard commented at 6:26 AM on April 4, 2018: contributor

    Nice catch, fixed both instances of bitcoin replaced with bitcoind, other previous changes including -daemon were discarded, pull request ready.

  13. fanquake commented at 6:59 AM on April 4, 2018: member
  14. practicalswift commented at 11:15 AM on April 4, 2018: contributor

    utACK on the bitcoin to bitcoind changes assuming squash into one commit

  15. fanquake renamed this:
    Update Tor.md Doc
    doc: Use bitcoind in Tor documentation
    on Apr 5, 2018
  16. laanwj commented at 6:30 AM on April 5, 2018: member

    ACK after squash

  17. knoxcard commented at 6:35 AM on April 5, 2018: contributor

    My apologies for not responding sooner. I've never squashed a commit, but I am committed to trying it. lol, lil Git humor for you there. I'll try to get around to this first thing tomorrow.

    ***Would be wonderful it GitHub could automate these kind of tasks or just create a "squash commit" button

  18. practicalswift commented at 6:38 AM on April 5, 2018: contributor

    @knoxcard

    $ git checkout patch-1
    $ git rebase -i HEAD~3 # mark the two last commits as fixups.
    $ git push -f
    
  19. doc: Use bitcoind in Tor documentation a5263fb511
  20. laanwj force-pushed on Apr 5, 2018
  21. laanwj commented at 7:42 AM on April 5, 2018: member

    Looks like you have enabled maintainers pushing to your branch - pushed a squashed version. (though if you can, read up on git so you can do this yourself next time)

  22. knoxcard commented at 7:47 AM on April 5, 2018: contributor

    Thank You I am a super technical guy and use git all time. Getting super late over here, gonna head to sleep, but I need to know how to squash by tomorrow.

    I submitted these changes using the Github web interface. Where would I have executed those commands?

    If I open a new console window in Windows, then something like.. mkdir myproject git init git fetch what? Am I missing something?

  23. laanwj merged this on Apr 5, 2018
  24. laanwj closed this on Apr 5, 2018

  25. laanwj referenced this in commit 2b54155a45 on Apr 5, 2018
  26. knoxcard deleted the branch on Apr 5, 2018
  27. knoxcard commented at 7:58 AM on April 5, 2018: contributor

    Nice work gentlemen, may your Bitcoin be plentiful as the years pass.

  28. ghost commented at 4:21 PM on April 5, 2018: none

    Where would I have executed those commands? If I open a new console window in Windows, then something like.. mkdir myproject git init git fetch what?

    No, you'd git clone your own fork:

    $ git clone https://github.com/knoxcard/bitcoin
    $ cd bitcoin
    

    and then do the steps as practicalswift pointed out: #12877 (comment)

  29. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me