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

58/On switch network restart geth service is necessary #127

Closed
wants to merge 1 commit into from

Conversation

friedger
Copy link
Contributor

@friedger friedger commented Nov 29, 2017

if geth service should run then stop it and restart it

see #58

While stopping an alert is shown:
screenshot_1511992665

The notifications now shows the network name:
screenshot_1511992671

@friedger friedger changed the title On switch network restart geth service is necessary 58/On switch network restart geth service is necessary Nov 29, 2017
@ligi
Copy link
Member

ligi commented Dec 2, 2017

Unfortunately we cannot do it that way - the node has to listen on changes to the current network definition and restart then - otherwise we get in real trouble here: #99

@@ -48,7 +57,30 @@ open class SwitchNetworkActivity : AppCompatActivity() {

private fun getAdapter() = NetworkAdapter(AllNetworkDefinitions) {
networkDefinitionProvider.setCurrent(it)
finish()
if (GethLightEthereumService.shouldRun) {
Copy link
Member

Choose a reason for hiding this comment

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

Unfortunately we cannot do it that way - the node has to listen on changes to the current network definition and restart then - otherwise we get in real trouble here: #99
Also if we would switch the network e.g. after scanning erc-681 with a different network-id this would not work - should listen on the effect and not one cause

Copy link
Member

@ligi ligi left a comment

Choose a reason for hiding this comment

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

Unfortunately we cannot do it that way - the node has to listen on changes to the current network definition and restart then - otherwise we get in real trouble here: #99
Also if we would switch the network e.g. after scanning erc-681 with a different network-id this would not work - should listen on the effect and not one cause

@ligi
Copy link
Member

ligi commented Dec 15, 2017

Solved this a bit differently with #99 in mind: 697acfc

@ligi ligi closed this Dec 15, 2017
@friedger friedger deleted the 58/restart_geth branch December 16, 2017 21:39
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.

None yet

2 participants