chimp1984
5c2199ff49
Add freeMemory to log
...
Cleanup
2021-11-10 12:32:18 +01:00
chimp1984
faa8bd2ab2
Extract code in CommonSetup which uses a timer
...
to startPeriodicTasks.
Call that from BisqExecutable.onApplicationLaunched
We have created a non-UI timer before for the
printSystemLoadPeriodically as that was called
before the configUserThread was called (where we
define the UI timer for desktop)
2021-11-10 12:26:54 +01:00
chimp1984
67741f0d0e
Add DEFAULT_LOG_LEVEL field
2021-11-09 20:00:34 +01:00
chimp1984
cf9e49134a
Add shutDown method to ClockWatcher and shut it down at shutdown
2021-11-09 20:00:34 +01:00
chimp1984
c209da7c66
Fix package statement
2021-11-09 19:32:44 +01:00
chimp1984
603e9fde17
Add CompletableFutureUtils
...
Convenience util for CompletableFuture.allOf method
2021-11-09 19:20:34 +01:00
chimp1984
62b3e51b22
Cleanups, change log levels
2021-11-09 13:01:19 +01:00
chimp1984
7c32587453
Persist bsq blocks as buckets of 1000 blocks
...
Improve logging
Add BsqBlockStore to protobuf
Remove DaoStateMonitoringService field
Do not persist the blocks in daoState anymore.
This improves persistence performance and reduces memory
requirements for snapshots.
2021-11-09 13:01:19 +01:00
chimp1984
7b68686b28
Improve GcUtil
...
Increase duration for autoReleaseMemory from 60 to 120 sec.
Improve logging.
Add print stack trace when in dev mode to show caller for debugging/tuning.
Remove inefficient GC calls (based on test runs when no reduction occurred at those calls).
2021-11-04 12:48:08 +01:00
chimp1984
bcf54d4eb7
Add log
2021-11-02 16:18:50 +01:00
chimp1984
74789b1cc5
Move Utilities.objectToJson to JsonUtil.objectToJson
...
Move inner class AnnotationExclusionStrategy to JsonUtil
Next commit includes changes why that move to core is needed.
2021-11-02 16:18:50 +01:00
chimp1984
f7fcaa915e
Add BSQ swap code
2021-11-02 16:18:50 +01:00
chimp1984
82c1be1d97
Change log level
2021-10-20 22:51:44 +02:00
Christoph Atteneder
8fbccb7547
Bump version number for v1.7.5
2021-10-19 11:32:09 +02:00
sqrrm
5e84713520
Merge pull request #5730 from bisq-network/release/v1.7.4
...
Release/v1.7.4
2021-09-28 15:05:42 +02:00
chimp1984
3b97f96515
Disable GC calls if fullDaoNode is set (like in case of seed nodes)
...
Seed nodes have 4 GB allocated so the attempt to reduce memory
footprint is not needed for those cases. We use the fullDaoNode
prog arg as its expected that any full node will have allocated
sufficient memory and thus the intended reduction of memory by
calling the GC is not required and counter productive.
2021-09-27 13:18:44 +02:00
Christoph Atteneder
29ede5f3c4
Update data stores for v1.7.4
2021-09-23 10:01:04 +02:00
Christoph Atteneder
64274cf82e
Bump version number for v1.7.4
2021-09-21 09:24:26 +02:00
chimp1984
2419e1dae5
Add dao activated toggle to preferences
...
We write the value to the properties file not to
the preferences as we need the value early at startup
before the preferences are loaded.
2021-09-21 01:31:13 +02:00
sqrrm
fae1852220
Merge pull request #5685 from ghubstan/1-fix-api-payacct-ccy-support
...
Let API user set currencies in some payment account json forms
2021-09-17 14:07:09 +02:00
jmacxx
3430055144
add SWIFT payment method
...
rebased to master
2021-09-08 14:57:08 -05:00
ghubstan
f39e611150
Wrap long i18n strings for use in API
...
Some i18n property values can be used by the API if long strings are
wrapped before written as commments to json payment account forms, or
written to the CLI console.
This change anticipates the addition of the more complex Swift payment
method (PR 5672). PR 5672's i18n property value for key "payment.swift.info"
will be wrapped and appended to the comments of the Swift payment account's
json form.
2021-09-06 12:12:09 -03:00
Christoph Atteneder
ad95e5b3be
Bump version number for v1.7.3
2021-08-23 11:20:09 +02:00
Christoph Atteneder
b92d1c25ac
Update data stores for v1.7.2
2021-07-19 20:06:02 +02:00
Christoph Atteneder
12b0a5bf80
Bump version number for v1.7.2
2021-07-16 20:37:10 +02:00
Christoph Atteneder
ef5ff1249b
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.7.1
...
# Conflicts:
# build.gradle
# desktop/package/linux/Dockerfile
# desktop/package/macosx/finalize.sh
# desktop/package/macosx/insert_snapshot_version.sh
# relay/src/main/resources/version.txt
2021-07-16 13:02:18 +02:00
Christoph Atteneder
dfb97ca05f
Bump version number for v1.7.1
2021-07-12 14:52:38 +02:00
chimp1984
28a8116997
Add gc calls at areas where memory usage spikes are expected
2021-07-08 01:06:20 +02:00
Christoph Atteneder
e5765aeef2
Delay sending of payment account information during trade by @chimp1984
...
It also removes the op return from the multisig transaction
2021-06-28 09:47:52 +02:00
Christoph Atteneder
9f42035108
Bump version number for v1.7.0
2021-06-23 14:27:22 +02:00
jmacxx
e901e398ea
add mempool fees to the getAllMarketPrices endpoint
2021-06-07 18:14:50 -05:00
Christoph Atteneder
3be0795eea
Update data stores for v1.6.5
2021-05-25 10:40:45 +02:00
Christoph Atteneder
59de78c332
Bump version number for v1.6.5
2021-05-21 20:00:49 +02:00
Christoph Atteneder
33aba27e97
Rename the BTC default value for the provided nodes option
2021-05-21 19:58:18 +02:00
Christoph Atteneder
2fd5f40239
Reduce the number of connected BTC nodes from 9 to 7
2021-05-21 19:58:09 +02:00
Christoph Atteneder
9c4137bc11
Not update the historical resource file
2021-05-05 14:29:52 +02:00
Christoph Atteneder
dba59138df
Bump version number for v1.6.4
2021-05-05 10:27:42 +02:00
Christoph Atteneder
b5d772bc48
Update data stores for v1.6.3
2021-04-26 11:11:29 +02:00
Christoph Atteneder
2c5e785a1e
Bump version number for v1.6.3
2021-04-22 10:36:37 +02:00
Christoph Atteneder
e516992173
Merge pull request #5374 from cd2357/mathutils-test
...
Handle rounding of infinite Doubles
2021-04-13 09:37:09 +02:00
cd2357
5e7377479e
Handle rounding of infinite Doubles
...
In certain situations we deal with infinite (or NaN) doubles. This causes issues when trying to instantiate a BigDecimal from it, which is an intermediary step in the process of rounding the double.
This commit checks for such non-finite doubles and throws a specific exception if their rounding is attempted.
2021-04-03 09:18:32 +02:00
Christoph Atteneder
8623b7b546
Bump version number for v1.6.2
2021-04-01 09:41:07 +02:00
Christoph Atteneder
b7524270dd
Bump version number for v1.6.1
2021-03-28 20:11:26 +02:00
Christoph Atteneder
d3233bac7a
Update data stores for v1.6.0
2021-03-24 10:53:24 +01:00
Steven Barclay
f21379160b
Merge branch 'release/v1.6.0' into implement-segwit-for-bsq
2021-03-20 23:18:49 +00:00
Christoph Atteneder
378fd026bf
Bump version number for v1.6.0
2021-03-18 19:19:26 +01:00
jmacxx
47ad4219e2
Merge branch 'master' into mempool_check_maker_tx
2021-03-17 16:26:38 -05:00
jmacxx
9fcd65f320
Validate maker/taker fees using mempool lookup
...
apply @chimp1984 patch.txt code review suggestions
taker tx check moved to trade step 2, after confirmation
solve issue with calculating expected fees for unconfirmed tx
resolve conflict with PR5207 (Disputes UI)
check new offers after 1 block; check Json string not null; warn -> info
remove unused parameter
remove debugging log.warn message
2021-03-17 16:23:18 -05:00
Christoph Atteneder
38a9bf0277
Merge branch 'master' of github.com:bisq-network/bisq into hotfix/v1.5.9
...
# Conflicts:
# build.gradle
# desktop/package/linux/Dockerfile
# desktop/package/linux/package.sh
# desktop/package/linux/release.sh
# desktop/package/macosx/create_app.sh
# desktop/package/macosx/finalize.sh
# desktop/package/macosx/insert_snapshot_version.sh
# desktop/package/windows/package.bat
# desktop/package/windows/release.bat
# relay/src/main/resources/version.txt
2021-03-11 16:26:50 +01:00
sqrrm
463f87b39e
Merge pull request #5284 from ghubstan/07-validate-paymentacct-n-new-offer
...
Validate offer <-> payment-acct in createoffer
2021-03-09 16:51:56 +01:00
Christoph Atteneder
11964e5ed8
Merge pull request #5280 from chimp1984/prevent-persist-at-startup
...
Prevent persist at startup, flush at backup
2021-03-09 11:40:27 +01:00
ghubstan
b4f4d90e05
Add tradeCurrencies field to Transferwise acct form
...
These changes make tradeCurrencies a required twise acct form field.
Addresses issue https://github.com/bisq-network/bisq/issues/5281
- Added comment to PaymentAccountForm about special 'tradeCurrencies' field handling.
- Added support for Transferwise 'tradeCurrencies' to PaymentAccountTypeAdapter.
- Added instance of isTransferwiseAccount check to PaymentAccount.
- Added methods to CurrencyUtil to convert comma delimited code list to TradeCurrency list.
- Added methods to ReflectionUtil for getting fields and methods on class.
- Added required field check to CorePaymentAccountsService.
- Added CreatePaymentAccount test cases.
2021-03-08 14:47:30 -03:00
chimp1984
f43dc2032f
Handle flush at shutdown differently to flush at backup
2021-03-06 12:02:17 -05:00
chimp1984
6fac9b17f1
Trigger persistence at onAllServicesInitialized in case
...
we got a requestPersistence called before initialized
2021-03-06 10:59:55 -05:00
chimp1984
2f814fae47
Make allServicesInitialized final
2021-03-06 10:35:49 -05:00
chimp1984
ab5b29cd15
Refactor: Rename field
2021-03-06 10:24:58 -05:00
chimp1984
569a2de641
Call onAllServicesInitialized on PersistenceManager and
...
prevent write to disk before it is called.
In case the user started Bisq 2 times, the second process
would have called the flushAllDataToDisk at shutdown and
overwrote data from the running app.
2021-03-06 10:24:25 -05:00
Christoph Atteneder
c1d6ea93bb
Bump version number for v1.5.9
2021-03-02 18:53:37 +01:00
BtcContributor
e28843dd41
fix opening windows dao links
2021-03-02 13:14:25 +01:00
jmacxx
7c80934a17
Field id strings for FeeService extracted to Config.java
2021-03-01 11:25:04 +01:00
Christoph Atteneder
5288d0840b
Bump version number for v1.5.8
2021-03-01 11:24:04 +01:00
jmacxx
cb5cc3525d
Increase min withdrawal tx fee to 15 sats/vB
2021-02-24 09:10:49 +01:00
Christoph Atteneder
8e78cfa2b7
Update data stores for v1.5.7
2021-02-22 15:52:18 +01:00
Christoph Atteneder
2dc34dce48
Bump version number for v1.5.7
2021-02-18 21:50:32 +01:00
Christoph Atteneder
d2825c317c
Merge branch 'master' of github.com:bisq-network/bisq into hotfix/v1.5.6
...
# Conflicts:
# build.gradle
# desktop/package/linux/Dockerfile
# desktop/package/linux/package.sh
# desktop/package/linux/release.sh
# desktop/package/macosx/create_app.sh
# desktop/package/macosx/finalize.sh
# desktop/package/macosx/insert_snapshot_version.sh
# desktop/package/windows/package.bat
# desktop/package/windows/release.bat
# relay/src/main/resources/version.txt
2021-02-16 21:27:15 +01:00
Christoph Atteneder
1507b58e26
Bump version number for v1.5.6
2021-02-16 09:04:10 +01:00
sqrrm
570ed0e032
Merge pull request #5148 from bisq-network/release/v1.5.5
...
Release/v1.5.5
2021-02-10 10:35:35 +01:00
Christoph Atteneder
60fc17be2c
Update data stores for v1.5.5
2021-01-25 14:18:21 +01:00
jmacxx
2533a52120
Fix log message when opening browser link
2021-01-23 23:15:25 -06:00
Christoph Atteneder
b9e889050a
Bump version number for v1.5.5
2021-01-21 16:01:45 +01:00
Steven Barclay
f34231abb6
Factor out failure callback logic into new Utilities method
2021-01-21 10:08:23 +00:00
Steven Barclay
863392bc74
Factor out executor shutdown logic into new Utilities method
2021-01-21 10:08:22 +00:00
Steven Barclay
b7c7eaf1f2
Add replacement bitcoind block notification daemon
...
Provide a new 'BitcoindDaemon' block notification socket server, to
replace 'com.neemre.btcdcli4j.daemon.BtcdDaemonImpl'. This starts a
single service thread to listen for raw block hashes on localhost port
512*, sent by the specified 'blocknotify' shell/batch script, delegating
to a pool of worker threads to run the supplied BlockListener handler.
Unlike the original BtcdDaemonImpl class, a call to the 'getblock' RPC
method is not made automatically to supply a complete block to the
handler, instead requiring a separate, manual BitcoindClient.getBlock
invocation from within RpcService.
Also provide unit tests using a mock ServerSocket + Socket.
TODO: Use the new Bitcoind(Client|Daemon) implementations in RpcService,
in place of btcdcli4j Btcd(Client|Daemon)Impl & remove the old library.
2021-01-21 10:08:22 +00:00
chimp1984
337ea89ce6
Add program argument flag republishMailboxEntries
...
Only republish if that flag is set, not depending if its a seedNode
2021-01-12 12:42:50 -05:00
sqrrm
fea52f07a3
Merge pull request #5057 from chimp1984/fix-premature-disconnections-from-seeds
...
Fix premature disconnections from seeds
2021-01-12 12:52:41 +01:00
James Cox
e50a182883
Merge branch 'master' into remove_awt_dependencies
2021-01-07 17:54:40 -06:00
chimp1984
a1cb6d5619
If duration is 0 we return "0.000 seconds" instead of empty string
2021-01-06 16:03:55 -05:00
chimp1984
1dc71c9b3a
Increase delay for reset
...
Improve statistic logging
2021-01-06 11:14:47 -05:00
chimp1984
14008a670a
Add formatDurationAsWords to Utilities in common
...
to be accessible to the statistics log.
2021-01-06 01:49:38 -05:00
sqrrm
5ae2a0f5a9
Merge pull request #5039 from chimp1984/add-option-for-seeds-doShutdownSeedOnInterval
...
Add option to prevent periodic shutdown for seed nodes
2021-01-04 10:38:34 +01:00
sqrrm
14d5600107
Merge pull request #5038 from chimp1984/add-filter-support-on-network-level
...
Add filter support on network level
2021-01-04 10:36:54 +01:00
chimp1984
d5ef7e66d1
Add option to prevent periodic shutdown for seed nodes
2021-01-01 17:17:29 -05:00
chimp1984
c8bf1d469e
Add support to filter manager for network wide banned nodes
2021-01-01 16:51:24 -05:00
Christoph Atteneder
3914e5c198
Bump version number for v1.5.4
2020-12-31 06:55:20 +01:00
Christoph Atteneder
e92be14a57
Bump version number for v1.5.3
2020-12-30 13:34:08 +01:00
jmacxx
64d0926db3
remove awt dependencies
2020-12-26 23:18:45 -06:00
chimp1984
a9f9e989a4
Use OS seperators so it works also on windows
2020-12-19 15:08:01 -05:00
Christoph Atteneder
6384753332
Update data stores for v1.5.2
2020-12-17 15:48:05 +01:00
Christoph Atteneder
a6bee1116a
Bump version number for v1.5.2
2020-12-16 14:19:41 +01:00
chimp1984
02d163f5dc
Only log in case the operation took longer than 100 ms
2020-12-15 00:56:06 -05:00
Christoph Atteneder
29c2e0002d
Merge branch 'master' of github.com:bisq-network/bisq into hotfix/v1.5.1
...
# Conflicts:
# build.gradle
# core/src/main/java/bisq/core/btc/setup/WalletConfig.java
# desktop/package/linux/Dockerfile
# desktop/package/linux/package.sh
# desktop/package/linux/release.sh
# desktop/package/macosx/create_app.sh
# desktop/package/macosx/finalize.sh
# desktop/package/macosx/insert_snapshot_version.sh
# desktop/package/windows/package.bat
# desktop/package/windows/release.bat
# relay/src/main/resources/version.txt
# seednode/src/main/java/bisq/seednode/SeedNodeMain.java
2020-12-08 22:19:11 +01:00
chimp1984
b5e19312c5
Remove logs logging absolute path to data directory
2020-12-07 19:35:01 -05:00
chimp1984
15ed165cdd
Move readCalled.set(true); to getPersisted(String fileName) method.
...
Note: It must be before the null check as no existing file must not prevent write.
2020-12-07 12:05:28 -05:00
chimp1984
0520942a4c
Prevent that we write data at shutdown before we have read the data.
...
Fixes https://github.com/bisq-network/bisq/issues/4844
2020-12-07 11:42:19 -05:00
Christoph Atteneder
c782f22fe8
Merge pull request #4874 from jmacxx/fix_systray_error
...
Prevent annoying popup errors for unhandled systray exception.
2020-12-03 21:21:47 +01:00
chimp1984
546c7546ac
Increase max number of log files to 20.
...
Requested here: https://github.com/bisq-network/bisq/issues/4856
2020-12-03 14:57:33 -05:00
Christoph Atteneder
4ab75b656d
Bump version number for v1.5.1
2020-12-03 12:57:43 +01:00
jmacxx
06c0211f1f
Prevent annoying popup errors for unhandled systray exception.
2020-12-02 09:43:41 -06:00
ghubstan
8f13b85e19
Merge branch 'master' into 20-pr-change-requests-A
2020-11-26 17:19:00 -03:00
Christoph Atteneder
11b0a466ce
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.5.0
...
# Conflicts:
# core/src/main/java/bisq/core/provider/fee/FeeService.java
# core/src/main/resources/i18n/displayStrings.properties
# seednode/src/main/java/bisq/seednode/SeedNodeMain.java
2020-11-25 14:05:37 +01:00
ghubstan
32ed7ac406
Add ReflectionUtils to common.util pkg
...
This class will aid the api's (create) PaymentAccount json form
serialization/de-serialization.
2020-11-18 16:11:10 -03:00
chimp1984
6fc36d48db
Reduce interval for persistence
...
Seems the persistence at shutdown is too unsafe and we got bug reports where data was missing.
https://github.com/bisq-network/bisq/issues/4806
Use millisec instead of sec for delay
Rename delayInSec to delay
2020-11-17 19:15:59 -05:00
sqrrm
c1287ac43a
Merge pull request #4804 from chimp1984/improve-persistence-manager
...
Improve persistence manager
2020-11-14 22:30:09 +01:00
chimp1984
755ea4d792
Add missing initCalled.set(true);
2020-11-14 15:51:51 -05:00
chimp1984
a64c11ebe4
Add additional guards to ensure that the shut down routine is not called multiple times
...
(which can happen in rare cases) and add guards that we never create multiple instances
for a given file as well not call initialize or other API methods after shutdown was started.
2020-11-13 14:08:01 -05:00
Christoph Atteneder
19432e4a1e
Update data stores for v1.5.0
2020-11-13 13:00:46 +01:00
chimp1984
012c54cf02
Fix log at startup
2020-11-12 15:58:56 -05:00
Oscar Guindzberg
c4131c7398
Rename "tx size" to "tx vsize"
2020-11-05 19:28:45 -03:00
Oscar Guindzberg
a3d7c71410
Set TRADE_PROTOCOL_VERSION to 3
2020-11-05 11:47:41 -03:00
Christoph Atteneder
66fcde11bf
Bump version number for v1.5.0
2020-11-05 11:34:40 +01:00
chimp1984
185d812185
Add logs for sig int
2020-11-03 11:46:41 -05:00
sqrrm
f03be6ad3d
Merge pull request #4628 from chimp1984/improve-read-file-handling
...
Use a thread in PersistenceManager for reading persisted files instead of using threads in client code
2020-11-02 17:36:21 +01:00
chimp1984
1b83083ade
Add nodes from mike
...
Various improvements...
2020-10-23 01:17:33 -05:00
chimp1984
088f539fec
Add readableFileSize
2020-10-23 01:17:32 -05:00
chimp1984
5943845891
Map shutdown call from sig int handler to userThread
2020-10-23 00:13:52 -05:00
chimp1984
dd7f40d5bf
Map result handler call to user thread
2020-10-21 14:40:33 -05:00
chimp1984
997c3a0932
Fix thread name
2020-10-21 13:56:52 -05:00
chimp1984
3f4d6e6f23
Use a thread in PersistenceManager for reading persisted files instead of using thread in client code
...
Before we use a thread in readFromResources and readAllPersisted. To avoid that client code need to deal with
threading we moved that to the PersistenceManager and changed the API accordingly so it will not return the persisted object but calls a consumer once it is completed with reading.
2020-10-21 13:41:50 -05:00
Christoph Atteneder
062b58b65d
Bump version number for v1.4.2
2020-10-21 09:23:51 +02:00
chimp1984
108ca75097
Rename HISTORY to HISTORICAL_RESOURCE_FILE_VERSION_TAGS to make its usage more clear
2020-10-21 09:21:53 +02:00
chimp1984
8bb1c61c76
Fix wrong HISTORY version entry.
...
This fields contains the versions where we have tagged a resource file.
It does not need to be the latest version in case we have not added a new resource file.
2020-10-21 09:21:46 +02:00
chimp1984
927004b4be
Rename HISTORY to HISTORICAL_RESOURCE_FILE_VERSION_TAGS to make its usage more clear
2020-10-20 22:08:18 -05:00
chimp1984
fd00048b47
Fix wrong HISTORY version entry.
...
This fields contains the versions where we have tagged a resource file.
It does not need to be the latest version in case we have not added a new resource file.
2020-10-20 22:06:30 -05:00
Christoph Atteneder
7ae6e84e02
Bump version number for v1.4.1
2020-10-18 19:22:53 +02:00
chimp1984
0b38fccfd2
Add file name to temp file at write to disk
2020-10-16 13:27:21 -05:00
chimp1984
0d469066ce
Change write json files to disk strategy
...
We have written all files each time at each new block which accumulated to about
1 GB of data, this led to stability issues and very high disk IO for the explorer nodes.
Now we write only the data of the new block. We also remove the deletion of all
files at startup.
The dao state is still written in a monolithic file so that cannot be optimized
but we added a new directly where we add each block named by block height.
Looking up the latest written file tells us our last persisted block.
So all that data is equivalent to the monolithic daoState data which should
be removed once the webapp devs have implemented the change to use the blocks directory.
2020-10-12 23:51:15 -05:00
chimp1984
39c8ade5ef
Cleanups: Remove outdated TODOs, fix typos
2020-10-08 22:00:57 -05:00
chimp1984
fa374b99fb
Do conversion in a thread to not block UI thread. takes about 4 seconds on my machine.
...
Add shutdown method to TradeStatisticsConverter and call it via TradeStatisticsManager. Now as we have a reference to TradeStatisticsConverter in we don't need the hack anymore in applyInjector.
Set log level for com.neemre.btcdcli4j.core.client.ClientConfigurator to error as there is an expected warn log because of the outdated version.
2020-10-08 18:49:14 -05:00
chimp1984
00bed02839
Add TradeStatistics3 and related classes
...
Add TRADE_STATISTICS_3 Capability
Add TradeStatistics3 to proto resolvers
Make message TradeStatistics2 deprecated
2020-10-08 18:48:17 -05:00
chimp1984
6e3fdbc96a
Apply codacy suggestions
2020-10-08 18:23:04 -05:00
chimp1984
4f685f8f4b
When updating the capability from a reported peer we check if the reported one has higher capabilities, otherwise we ignore it.
2020-10-08 18:23:04 -05:00
chimp1984
cf0693098f
Update common/src/main/java/bisq/common/app/Capability.java
...
Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
2020-10-08 18:23:02 -05:00
chimp1984
9404e8fa87
Add NO_ADDRESS_PRE_FIX capability.
...
Add `boolean contains(Capability capability)` method
2020-10-08 18:23:00 -05:00
Christoph Atteneder
5294820eb6
Bump version number for v1.4.0
2020-10-08 09:39:01 +02:00
chimp1984
e179ee4e32
Use Collection for constructor which is called from the fromProto methods.
...
We do not set the collection as list but we fill the list created via the createList method.
2020-10-04 16:13:45 -05:00
chimp1984
c797317c0d
Fix typo
2020-10-04 16:05:43 -05:00
chimp1984
f9f33aa16d
Add PersistableListAsObservable
...
Remove ObservableList methods from PersistableList
Let DisputeList and TradableList extend PersistableListAsObservable
Fix param names
2020-10-04 13:18:25 -05:00
chimp1984
0cc0cfc9a5
Use runAfter instead of runPeriodically
2020-10-04 12:54:27 -05:00
chimp1984
3b31dc9ff3
Fix typo
2020-10-04 12:53:20 -05:00
chimp1984
a612405d9d
Update common/src/main/java/bisq/common/persistence/PersistenceManager.java
...
Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
2020-10-04 12:49:02 -05:00
chimp1984
c9cd58a378
Fix rename mistakes
2020-10-03 12:48:23 -05:00
chimp1984
e9db7c6808
Rename Priority to Source. This should make it more clear what is the intention of the usage.
...
Rename:
LOW to NETWORK
MID to PRIVATE_LOW_PRIO
HIGH to PRIVATE
Change delay of MID/PRIVATE_LOW_PRIO from 30 min to 2 hours (we had different datastores before using it, now its only real low prio stores)
Add comment to each enum
2020-10-03 12:48:23 -05:00
chimp1984
137b5e81d1
Enforce that clients set the priority. Remove the initialize methods which did not have priority as a param.
...
Make initializePersistenceManager in StorageService abstract to enforce in concrete class to define priority.
Change priorities for future renaming to a different meaning. instead of priority we want to describe the category: private data, public data,.... will come in next commit
2020-10-03 12:48:22 -05:00
chimp1984
18f64d53ca
Persist all Priority.HIGH stores at shutdown to be more safe that we did not miss any state update.
...
Priority.HIGH stores are all those which contain private data. Others can be rebuilt from network data or are not critical like navigationPath.
2020-10-03 12:48:22 -05:00
chimp1984
10e9b054a0
Rename writeCompleted to onWriteCompleted
...
Add comment
Use decrementAndGet instead of getAndDecrement
Tested cases when there is an exception at write to disk, but as we call the result handler in the finally clause we get always called onWriteCompleted, so it cannot happen that we get stuck.
2020-10-03 12:48:22 -05:00
chimp1984
232fa8ddee
Execute result handler on userThread
2020-10-03 12:48:22 -05:00
chimp1984
c789650d0b
Move methods to base class
2020-10-03 12:48:22 -05:00
chimp1984
ccfda5b043
Cleanups, add generics, add final, remove unused code/comments/todos,
2020-10-03 12:48:21 -05:00
chimp1984
fa0d261397
Fix remaining issues, cleanups, add persit calls, remove unused code,...
...
Sorry too tired to create another 20 commits...
2020-10-03 12:48:21 -05:00
chimp1984
197e871a7b
Remove FileManager ans Storage. All is replaces not by PersistenceManager
2020-10-03 12:48:20 -05:00