Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #659, and cleanup wallet/command-line argument handling a bit #726

Merged
merged 1 commit into from
Jan 3, 2012

Conversation

gavinandresen
Copy link
Contributor

This moves all of the "if running over Tor" logic to one place (in init.cpp).

It also fixes issues where settings made in the GUI (like fUseProxy) and stored in the wallet could not be over-ridden in the bitcoin.conf file or command-line, by moving command-line-flag-setting code to after the wallet has been loaded.

That also meant moving the "bind to listen port" to after the wallet was loaded, but that should be OK 99.99% of the time because the lock file is still checked early to protect against accidentally running bitcoin twice.

@gavinandresen
Copy link
Contributor Author

Forgot to say how I tested:

Ran bitcoind normally to get caught up on the block chain, verify that I get more than 8 connections, and verify (by looking at debug.log) that I connect to the dns seeds and IRC.

Ran Vidalia on my Mac, got connected to the Tor network.
Ran bitcoind -proxy=127.0.0.1:2050
VERIFY: I get only 8 connections, and do not connect to dns seeds or IRC.

Then removed addr.dat, and re-ran with -proxy...
VERIFY: built-in IP seeding eventually (after trying several non-listening seeds) bootstraps through Tor.

@gavinandresen gavinandresen merged commit 0fcf91e into bitcoin:master Jan 3, 2012
destenson pushed a commit to destenson/bitcoin--bitcoin that referenced this pull request Jun 26, 2016
ptschip pushed a commit to ptschip/bitcoin that referenced this pull request Aug 6, 2017
Basic wallet ui with CLTV coin freeze, watch & spend
kallewoof pushed a commit to kallewoof/bitcoin that referenced this pull request Oct 4, 2019
… in initpegoutwallet

5c76fc5 Update initpegoutwallet help to describe derivation paths properly. (Gregory Sanders)
651b28c Fix other bug in initpegoutwallet descriptor parsing (Steven Roose)
bf86c44 Temp disable pegout descriptors that are not pkh() (Steven Roose)
19c477e Support descriptors with checksums in initpegoutwallet (Steven Roose)

Pull request description:

  Backport of bitcoin#726.

Tree-SHA512: 603c6896f4407c53ef44ebbbab5064827203a1dccaaa8e7e164dfa085a914ef836dde58cfe85877c8c8bccd4aac4f405f42e820a5a8a42caa0ac24bf43e3d475
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant