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

Embedded Node: Settings: Neutrino: update explainer #1883

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,9 @@
"views.Settings.EmbeddedNode.Peers.peersList": "Peers list",
"views.Settings.EmbeddedNode.NeutrinoPeers.title": "Neutrino Peers",
"views.Settings.EmbeddedNode.NeutrinoPeers.subtitle": "Set the peers you would like to download block headers from and broadcast transactions through.",
"views.Settings.EmbeddedNode.NeutrinoPeers.dontAllowOtherPeers": "Connect only to the specified peers",
"views.Settings.EmbeddedNode.NeutrinoPeers.dontAllowOtherPeers.subtitle": "Only connect to the peers specified. Enabling this may slow down block sync, but may be helpful if you're having issues broadcasting transactions.",
"views.Settings.EmbeddedNode.NeutrinoPeers.allowOtherPeers": "Connect to any available peer in p2p network",
"views.Settings.EmbeddedNode.NeutrinoPeers.allowOtherPeers.subtitle1": "Find and connect to peers other than the ones specified below. Enabling this should speed up block sync, but may case other issues.",
"views.Settings.EmbeddedNode.NeutrinoPeers.allowOtherPeers.subtitle2": "If you hit issues broadcasting and bumping transactions, consider disabling this.",
"views.Settings.EmbeddedNode.NeutrinoPeers.allowingOtherPeers": "Allowing connections to other peers.",
"views.Settings.EmbeddedNode.NeutrinoPeers.notAllowingOtherPeers": "Not allowing connections to other peers.",
"views.Settings.EmbeddedNode.ZeroConfPeers.title": "Zero conf Peers",
Expand Down
21 changes: 18 additions & 3 deletions views/Settings/EmbeddedNode/Peers/NeutrinoPeers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default class NeutrinoPeers extends React.Component<
}}
>
{localeString(
'views.Settings.EmbeddedNode.NeutrinoPeers.dontAllowOtherPeers'
'views.Settings.EmbeddedNode.NeutrinoPeers.allowOtherPeers'
)}
</ListItem.Title>
<View
Expand All @@ -122,7 +122,7 @@ export default class NeutrinoPeers extends React.Component<
}}
>
<Switch
value={dontAllowOtherPeers}
value={!dontAllowOtherPeers}
onValueChange={async () => {
this.setState({
dontAllowOtherPeers:
Expand All @@ -147,7 +147,22 @@ export default class NeutrinoPeers extends React.Component<
}}
>
{localeString(
'views.Settings.EmbeddedNode.NeutrinoPeers.dontAllowOtherPeers.subtitle'
'views.Settings.EmbeddedNode.NeutrinoPeers.allowOtherPeers.subtitle1'
)}
</Text>
</View>
<View
style={{
margin: 10
}}
>
<Text
style={{
color: themeColor('secondaryText')
}}
>
{localeString(
'views.Settings.EmbeddedNode.NeutrinoPeers.allowOtherPeers.subtitle2'
)}
</Text>
</View>
Expand Down