Commit Graph

1413 Commits

Author SHA1 Message Date
HenrikJannsen
9c8e3ad6bc
Add useTorForBtcMonitor flag to Config
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-10 20:29:37 +07:00
HenrikJannsen
c573672fce
Add getSystemLoad method
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-10 19:46:40 +07:00
HenrikJannsen
b3288e3839
Improve logs
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-08 15:02:05 +07:00
HenrikJannsen
d352f1fe35
Adds ExcludeForHash annotation and ExcludeForHashAwareProto which implements the handling of the excluded fields. 2024-06-08 15:01:32 +07:00
HenrikJannsen
5661409bbc
Refactor: Replace toProtoMessage().toByteArray() calls to serialize() or serializeForHash() methods.
Currenty serializeForHash just calls serialize. This will be change in later commits
2024-06-08 13:15:42 +07:00
HenrikJannsen
ddf073a6ff
Add filterProvidedBtcNodes and filterProvidedSeedNodes fields to Config.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 18:14:51 +07:00
Alejandro García
117f282a50
Merge pull request #7035 from bisq-network/update-data-stores-for-v1.9.15
Update data stores for v1.9.15
2024-02-25 14:32:11 +00:00
Alejandro García
b03c2880d6
Update data stores for v1.9.15 2024-02-12 13:17:00 +02:00
Alejandro García
ee4bcf4328
Bump version number for v1.9.15 2024-02-12 12:52:10 +02:00
Alva Swanson
8a978a2c14
DevEnv: Add static getDevPrivilegePubKeys() method 2023-12-28 08:50:13 +01:00
Alva Swanson
e7cb152e11
DevEnv: Make DEV_PRIVILEGE_PRIV_KEY private and add getter 2023-12-28 08:50:13 +01:00
Alva Swanson
c96b7d2ade
DevEnv: Make DEV_PRIVILEGE_PUB_KEY private and add getter 2023-12-28 08:50:13 +01:00
Alva Swanson
bf98531c46
Config: Make configFile field private and add getter 2023-12-28 08:50:13 +01:00
Alejandro García
e9bdee6400
Merge branch 'master' into release/v1.9.14 2023-10-16 19:47:43 +00:00
Alejandro García
381e44ee14
Bump version number for v1.9.14 2023-10-09 20:44:41 +02:00
Alva Swanson
5ac3a10806
Support external Tor hostname 2023-10-08 23:19:32 +02:00
Alejandro García
c63015f125
Update data stores for v1.9.13 2023-09-15 14:13:05 +02:00
Alejandro García
6726399b54
Bump version number for v1.9.13 2023-09-15 13:52:58 +02:00
Alva Swanson
9c177830c0
common: Don't set Implementation-Version to commit hash 2023-08-04 13:02:10 +02:00
Alva Swanson
71c70540fb
common: Switch to 'bisq.javafx' Gradle Plugin 2023-08-04 12:58:29 +02:00
Alva Swanson
eb3a663b64
common: Move build configuration to its own build.gradle 2023-08-04 12:55:08 +02:00
Alejandro García
d95dc58a06
Bump version number for v1.9.12 2023-06-30 23:55:18 +02:00
Alejandro García
9f535bf163
Update data stores for v1.9.11 2023-06-22 15:45:34 +03:00
Alejandro García
31b427c92e
Bump version number for v1.9.11 2023-06-22 14:35:22 +03:00
Alejandro García
ac8ad24807
Merge pull request #6697 from stejbac/speed-up-burningman-and-statistics-view-loads
Speed up burningman and statistics view loads
2023-05-16 15:53:44 +00:00
Steven Barclay
a489697a54
Speed up candle data creation in getUpdateChartResult
Optimise (further) the ChartCalculations methods 'getItemsPerInterval' &
'getCandleData' by replacing HashSets in the former with sorted sets,
which avoids relatively expensive calls to 'TradeStatistics3.hashCode'
and needless subsequent re-sorting by date in 'getCandleData'. (Forming
the trade statistics into an ImmutableSortedSet, OTOH, is cheap since
they are already encountered in chronological order.)

Further optimise the latter by using a primitive array sort of the trade
prices to calculate their median, instead of needlessly boxing them and
using 'Collections.sort'.
2023-05-10 19:41:23 +01:00
Steven Barclay
1f8538f6c1
Add utilities for SortedSet ranging with mapped keys & predicates
Provide a 'RangeUtils' class for computing subsets of a navigable set
with natural element order, with each bound defined by a mathematical
filter (that is, a predicate specifying whether an element is 'big' -
true, or 'small' - false), instead of a specific element. This allows
the subset of all elements which map into a given range to be computed,
provided the mapping function is (strictly or non-strictly) increasing.
Provide a fluent interface for this in RangeUtils (with unit tests).

To support this, provide a Comparable sub-interface, 'ComparableExt', of
elements which may be compared with marks/delimiters instead of just
elements of the same type, to work round the limitation that sorted (&
navigable) Sets/Maps in Java do not support general binary searching
with a filter (predicate) on the keys instead of just a specific key.

This will make it possible to efficiently take subsets of objects within
a given date range, say, without having to scan the entire set, provided
it is sorted (w.r.t. a suitable natural order).
2023-05-10 19:41:19 +01:00
Alva Swanson
02107ad9f0
Common: Reformat MathUtilsTest 2023-05-08 17:19:35 +10:00
napoly
e19ffe2308
Upgrade JUnit4 to JUnit5 Jupiter 2023-05-04 20:04:49 +02:00
Alejandro García
31008865c3
Update data stores for v1.9.10 2023-04-03 10:39:44 +10:00
Alejandro García
4b4adbc2db
Bump version number for v1.9.10 2023-04-02 11:09:10 +10:00
Alejandro García
b1e2cb03ad
Merge pull request #6568 from alvasw/gradle_apply_central_bisq_java_conventions
Gradle apply central bisq java conventions
2023-02-05 22:43:48 +00:00
Alejandro García
c61bd70ead
Merge pull request #6562 from alvasw/move_get_single_thread_executor_to_own_utils
Move SingleThreadExecutors to its own Utils class
2023-02-05 22:42:02 +00:00
Alva Swanson
53837bf00b
Move SingleThreadExecutors to its own Utils class 2023-02-05 22:11:35 +01:00
Alva Swanson
b2870ccee3
Delagate thread pool shutdown to Guava MoreExecutors 2023-02-05 22:09:56 +01:00
Alva Swanson
c1c4caf87f
Gradle: Apply bisq.java-conventions to all projects 2023-02-05 22:02:13 +01:00
Alva Swanson
bf95af07bd
Remove unused Utilities.getScheduledThreadPoolExecutor(...) 2023-02-05 13:42:39 +01:00
Alva Swanson
1066e83a27
DaoStateStorageService: Fix shutdown data corruption bug
The DaoStateStorageService submits tasks to a daemon thread executor
service. The JVM continues to execute threads until all non-daemon
threads have terminated. So the JVM will kill the DaoStateStorageService
during write requests leading to data corruption.

This change uses a non-daemon thread executor service at waits during
shutdown until all data is written to disk.
2023-01-31 16:04:06 +02:00
Alva Swanson
6a8fb05156
Centralize all ExecutorService creations in Utilities 2023-01-27 16:15:24 +02:00
Alejandro García
fda3c45008
Merge pull request #6501 from HenrikJannsen/always_include_high_prio_payload_in_get_data_response
Always include high prio payload in get data response
2023-01-12 16:33:08 +00:00
Alejandro García
2705244e64
Merge branch 'master' into release/v1.9.9 2023-01-12 15:01:22 +00:00
Alejandro García
c55ecfa2d4
Bump version number for v1.9.9 2023-01-07 15:18:15 +02:00
HenrikJannsen
23e45a2843
Add GetDataResponsePriority enum
Add default getGetDataResponsePriority impl. to NetworkPayload

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 18:23:26 -05:00
HenrikJannsen
64db59ba53
Catch RejectedExecutionException at UncaughtExceptionHandler and log error instead calling the uncaughtExceptionHandler
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-01-04 14:05:19 +02:00
HenrikJannsen
abbee20284
Remove CompletableFutureUtil
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-27 17:54:10 -05:00
HenrikJannsen
c3acd5fb4a
Handle OutOfMemoryError to cause a shutdown at seed node 2022-12-27 17:54:01 -05:00
HenrikJannsen
e0f4aa281a
Catch RejectedExecutionException at UncaughtExceptionHandler and log error instead calling the uncaughtExceptionHandler
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-27 17:11:38 -05:00
Christoph Atteneder
cdb9fe44c1
Bump version number for v1.9.8 2022-12-22 08:44:13 +01:00
HenrikJannsen
30afccb2d6
Use ThreadPoolExecutor with custom set queueCapacity instead of CachedThreadPool
The previously used newCachedThreadPool carries higher risk for execution exceptions if exceeded.

Originally we had only one executor with a corePoolSize of 15 and a maximumPoolSize of 30 and queueCapacity was set to maximumPoolSize.
This was risky when the 15 corePool threads have been busy and new messages or connection creation threads are
queued up with potentially significant delay until getting served leading to timeouts.
Now we use (if maxConnections is 12) corePoolSize of 24, maximumPoolSize 36 and queueCapacity 10. This gives
considerable headroom. We also have split up the executors in 2 distinct ones.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 16:50:55 +01:00
Christoph Atteneder
2b77f777a3
Update data stores for v1.9.7 2022-12-14 11:13:23 +01:00