-
Notifications
You must be signed in to change notification settings - Fork 238
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
Use Tor to get pruned node blockchain data and connect to remote Core node #383
Use Tor to get pruned node blockchain data and connect to remote Core node #383
Conversation
Co-authored-by: Stepan Snigirev <[email protected]>
src/cryptoadvance/specter/rpc.py
Outdated
if '.onion' in url: | ||
try: | ||
requests_session = requests.Session() | ||
requests_session.proxies = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is requests_session.proxies = {}
needed?
Session
object already initialize the attribute proxies
to {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, that's redundant, removed. Thanks for the review!
src/cryptoadvance/specter/wallet.py
Outdated
if explorer is not None: | ||
try: | ||
requests_session = requests.Session() | ||
requests_session.proxies = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
Fix #363
Notes:
http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/
).onion
s?Edit:
Tested connecting to myNode Bitcoin Core over Tor, works.