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

Improve cleanup tor dir at seeds #5070

Merged
merged 13 commits into from
Jan 12, 2021

Conversation

chimp1984
Copy link
Contributor

@chimp1984 chimp1984 commented Jan 10, 2021

If all connections lost at seed nodes we clean tor cache files and trigger a restart.
We set a flag to clear tor cache files at shutdown and at startup we check for that flag and clean the tor cache before tor is started. Before we did that at shutdown but that can cause problems as tor is running at that moment.

Based on #5066 (to avoid merge conflicts, as we added an entry to CookieKey there)
PR starts at 8ecfa8b

Volume was created at each access from amount and price.
To improve performance we cache the result once calculated.
Precalculate the USD average prices for tick intervals
and use that for converting the BTC volume to USD volume.
Fix incorrect removeListener call on priceColumn.textProperty()
instead of priceColumnLabel
changed or we got added new trade stats
We cannot clear it now as Tor is used and
that can cause problems.
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

@@ -116,7 +117,7 @@
final int maxTicks = 90;
private int selectedTabIndex;
final Map<TickUnit, Map<Long, Long>> usdPriceMapsPerTickUnit = new HashMap<>();

private boolean fillTradeCurrenciesOnActiavetCalled;
Copy link
Member

Choose a reason for hiding this comment

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

spelling

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.

3 participants