Skip to content

Let ETH nodes choose Tor or clearnet - #1494

Merged
julian-CStack merged 1 commit into
pr1479/fixfrom
pr1479/eth-transport-controls
Nov 3, 2026
Merged

julian-CStack merged 1 commit into
pr1479/fixfrom
pr1479/eth-transport-controls

Conversation

@sneurlax

@sneurlax sneurlax commented Nov 1, 2026

Copy link
Copy Markdown
Member

Summary

Stacked on #1493. Set the base branch to pr1479/fix so the diff shows only this commit; once #1493 merges GitHub retargets this PR to staging. Independent of the client guard PR, so the two can merge in either order.

The Tor/clearnet radios in the add/edit node view were hidden for Ethereum in d87af96, when web3dart could not be proxied and the choice would have meant nothing. #1479 changes that: getEthClient now honours the node's tor/clearnet flags and throws a mismatch error that sends the user to node settings to fix the node. For ETH that page had nothing to fix it with. A node stored as Tor-only or clearnet-only (an older node, a restored backup, a node that keeps whatever the wallet saved before) could not be changed from the UI.

This shows the radios for ETH exactly as for every other coin. One file, the six if (widget.coin is! Ethereum) guards around the radio rows removed, nothing else in the form touched. A new ETH node still defaults to "Allow both", and existing nodes keep their saved flags.

Verification

  • dart format --set-exit-if-changed clean on the changed file
  • dart analyze lib test: no new lines versus staging
  • flutter test: all passed
  • In the running Linux build the add/edit node view for ETH shows the radios with "Allow both" selected by default

@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 30 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (pr1479/fix@36d1f49). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...gs_view/manage_nodes_views/add_edit_node_view.dart 0.00% 30 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             pr1479/fix    #1494   +/-   ##
=============================================
  Coverage              ?   11.61%           
=============================================
  Files                 ?     1134           
  Lines                 ?   114182           
  Branches              ?        0           
=============================================
  Hits                  ?    13263           
  Misses                ?   100919           
  Partials              ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The Tor/clearnet radios were hidden for Ethereum in d87af96 because
web3dart could not be proxied at the time. Now that getEthClient honours
the node's tor/clearnet flags and throws on a mismatch, a node stored as
Tor-only or clearnet-only (older nodes, restored backups) could not be
fixed from the node settings the error points the user to. Show the
radios for ETH like every other coin.
@julian-CStack
julian-CStack force-pushed the pr1479/eth-transport-controls branch from 6cdb2b0 to 827a13f Compare November 3, 2026 00:36
@julian-CStack
julian-CStack merged commit 9089f30 into staging Nov 3, 2026
4 checks passed
@julian-CStack
julian-CStack deleted the pr1479/eth-transport-controls branch November 3, 2026 00:57
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.

2 participants