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

SimpleMode: automatic public nodes discovering and switching #2370

Merged
merged 1 commit into from Sep 14, 2019

Conversation

xiphon
Copy link
Collaborator

@xiphon xiphon commented Sep 2, 2019

Split the PR into two commits, suggest to review them separately since the first one is pretty straightforward stripping https://autonode.xmr.pm/ related code.

Will squash the commits once the PR is approved

@selsta
Copy link
Collaborator

selsta commented Sep 5, 2019

function randomChoice(arr){
can be deleted too.

@xiphon
Copy link
Collaborator Author

xiphon commented Sep 5, 2019

function randomChoice(arr){

can be deleted too.

Yep, but decided to keep it cause it's pretty common helper routine.

@xiphon
Copy link
Collaborator Author

xiphon commented Sep 5, 2019

Updated. Dropped unused randomChoice routine.

main.qml Outdated Show resolved Hide resolved
@selsta
Copy link
Collaborator

selsta commented Sep 5, 2019

Closing the wallet in simple mode shows this, not sure if that’s related to this PR:

2019-09-05 20:37:25.629 W qrc:/main.qml:682: TypeError: Type error

@xiphon
Copy link
Collaborator Author

xiphon commented Sep 6, 2019

Closing the wallet in simple mode shows this, not sure if that’s related to this PR:

2019-09-05 20:37:25.629 W qrc:/main.qml:682: TypeError: Type error

Could you provide reproduction steps?

@selsta
Copy link
Collaborator

selsta commented Sep 6, 2019

I would even reduce the initial delay time from 5 to like 2 seconds.

Could you provide reproduction steps?

It shows up every time I exit the GUI in simple mode.

@xiphon xiphon force-pushed the auto-public-nodes branch 5 times, most recently from 34468b0 to 7f1538e Compare September 9, 2019 03:56
@selsta
Copy link
Collaborator

selsta commented Sep 9, 2019

Were you able to reproduce the 2019-09-09 15:16:41.017 W qrc:/main.qml:682: TypeError: Type error issue? PR looks good otherwise.

@xiphon
Copy link
Collaborator Author

xiphon commented Sep 9, 2019

Were you able to reproduce the 2019-09-09 15:16:41.017 W qrc:/main.qml:682: TypeError: Type error issue? PR looks good otherwise.

Yep, the issue is not related to the PR

@xiphon
Copy link
Collaborator Author

xiphon commented Sep 9, 2019

Squashed

middlePanel.settingsView.settingsStateViewState = "Wallet"
if (mode < 2) {
persistentSettings.useRemoteNode = false;
persistentSettings.bootstrapNodeAddress = "auto";
Copy link
Collaborator

Choose a reason for hiding this comment

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

When going back to advanced mode, persistentSettings.bootstrapNodeAddress stays at auto. Is this intended?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep

luigi1111 added a commit that referenced this pull request Sep 14, 2019
0d247a9 SimpleMode: automatic public nodes discovering and switching (xiphon)
@luigi1111 luigi1111 merged commit 0d247a9 into monero-project:master Sep 14, 2019
@xiphon xiphon deleted the auto-public-nodes branch November 4, 2019 22:07
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

3 participants