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

Add hint to upgrade to tor v3 #5573

Merged
merged 9 commits into from
Jun 23, 2021

Conversation

ripcurlx
Copy link
Contributor

@ripcurlx ripcurlx commented Jun 14, 2021

If the node is in a state where an upgrade to a Tor v3 address can be done it displays a informational prompt.

Bildschirmfoto 2021-06-14 um 17 18 33

@m52go ☝️ This needs some native speaker love.

I'll check this state on application start and when the last open trade is completed. I wanted to do this for closed disputes as well, but the data structure in place would force me to scatter check codes on multiple places which would make it burdensome to remove after the transition is complete.

To have a graceful upgrade proces nodes with a Tor v2 address won't be able to take offers anymore starting with August 15, 2020 (2 months before the Tor v2 support is dropped). Also their offers won't be visible to anyone else at that point.

I also added some unrelated checks to this upgrade process, that you can only reopen trades and disputes if you have the same local onion address to prevent communication issues that would go by without notice.

This fixes #5558.

ripcurlx added 7 commits June 9, 2021 11:32
whenever the client is in a state to do so without any problems.
After the date specified take offer requests by nodes with Tor v2 addresses will be rejected and their offers will be invisible to everyone else.
Local dev environment normally uses localhost:PORT addresses not connecting through Tor.
@ripcurlx
Copy link
Contributor Author

To test this on Regtest you have to modify the OfferRestrictions.REQUIRE_TOR_NODE_ADDRESS_V3_DATE and set --useLocalhostForP2P=false

@ripcurlx
Copy link
Contributor Author

@pazza83 Does the timeline sounds reasonable to you?

@m52go
Copy link
Contributor

m52go commented Jun 16, 2021

Suggestion:

popup.info.torMigration.msg=Your Bisq node is currently using a Tor v2 address. Tor v2 is being deprecated soon \ [HYPERLINK:https://blog.torproject.org/v2-deprecation-timeline], and \
Bisq nodes with Tor v2 addresses will no longer be able to trade on August 15th, 2021.\n\n\
  Please switch your Bisq node to a Tor v3 address. It's quick and simple -- see details in this doc \
  [HYPERLINK:https://bisq.wiki/Changing_your_onion_address] or in this video [HYPERLINK:https://bitcointv.com/videos/watch/f96adc20-4092-4253-84c0-1b18088b4b95]. \n\n\
  Make sure to back up your data directory beforehand.

I think it makes sense to leave out some of the details since they're already mentioned in the link.

@ripcurlx ripcurlx marked this pull request as ready for review June 17, 2021 13:26
@ripcurlx ripcurlx added this to the v1.6.6 milestone Jun 17, 2021
@ripcurlx ripcurlx requested a review from sqrrm June 17, 2021 13:26
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments but looks mostly good. I haven't tested and looks somewhat annoying to test on regtest, have you tested it?

@ripcurlx
Copy link
Contributor Author

Some comments but looks mostly good. I haven't tested and looks somewhat annoying to test on regtest, have you tested it?

Yes, I did test it on Regtest.

@ripcurlx ripcurlx requested a review from sqrrm June 23, 2021 10:26
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@sqrrm sqrrm merged commit 8bc60d0 into bisq-network:master Jun 23, 2021
@Giszmo
Copy link

Giszmo commented Jul 5, 2021

The hint is great but after going to backup, it's gone and I have a hard time finding the advertised video on how to switch to v3.

@m52go
Copy link
Contributor

m52go commented Jul 5, 2021

@Giszmo
Copy link

Giszmo commented Jul 5, 2021

I found the links by searching for this PR ;D

Just wonder how non-developers are supposed to find them cause I took the non-developer route, first and googled for 10 minutes. The video did come up quickly but I had dismissed it, as it doesn't have "TORv3" in the title and was 45min long.

@m52go
Copy link
Contributor

m52go commented Jul 5, 2021

"Tor v3" is in the title on both YouTube and BitcoinTV but I guess it doesn't matter if neither shows up.

Maybe we should put the links and some copy on the backup screen that the primary call-to-action (green button) leads to in the next release? This might allow for reducing text in the modal and putting details in a less ephemeral place users can refer back to (i.e. the backup screen).

@ripcurlx
Copy link
Contributor Author

ripcurlx commented Jul 6, 2021

True - I missed that people might not click on the links in the popups first before doing the backup.

@ripcurlx ripcurlx deleted the add-hint-to-upgrade-to-tor-v3 branch July 16, 2021 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add hint to upgrade to Tor v3 address
4 participants