chimp1984
97e356c79f
Add check that height of last block matches chainHeight from daoState
2021-11-09 13:01:21 +01:00
chimp1984
80e7c452ca
Add BsqBlocks resources and update DaoState
...
Add BsqBlocks resources
2021-11-09 13:01:20 +01:00
chimp1984
62b3e51b22
Cleanups, change log levels
2021-11-09 13:01:19 +01:00
chimp1984
3487932f6e
Remove unnecessary sorting
...
Blocks are always sorted by block height
2021-11-09 13:01:19 +01:00
chimp1984
a3fbdf48d2
Improve log
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
699048634b
Avoid unnecessary serialisation/deserialisation cycle
...
For the snapshot we create a deep clone by protobuf serialisation.
We do not need the deserialisation back to the java object as it is
only kept in memory for later persistence where we need to do protobuf
serialisation again. So we can skip that cycle and safe a bit of
time at creating and persisting snapshots.
2021-11-09 13:01:19 +01:00
chimp1984
b619afa83d
Remove unused field
2021-11-09 13:01:18 +01:00
chimp1984
4d2d0717b5
Add getBlockTimeAtBlockHeight method
...
Improve getBlockStartDateByCycleIndex method
2021-11-09 13:01:18 +01:00
chimp1984
779bd0cf1e
Remove blockHashes set from daoState
...
Was only used from one use case which can be done differently.
2021-11-09 13:01:18 +01:00
Christoph Atteneder
65c308f5ed
Merge pull request #5782 from chimp1984/redesign-dao-state-monitoring
...
Redesign dao state monitoring [4]
2021-11-09 12:12:22 +01:00
chimp1984
7e1696b095
Fix typos, cleanups
2021-11-08 21:49:08 +01:00
Christoph Atteneder
00d7913bc6
Merge pull request #5055 from Jakub-CZ/button-buy-bsq
...
Add "Buy BSQ" button next to trade fee selector
2021-11-08 11:13:52 +01:00
Christoph Atteneder
07e224e40a
Simplify containers and improve truncation behavior
2021-11-08 11:06:00 +01:00
Christoph Atteneder
2b90633263
Improve naming of helper method
2021-11-08 11:05:27 +01:00
jmacxx
cea4fb30a2
Fix calculation & display of Locked Funds
2021-11-07 21:24:59 -06:00
ghubstan
3f61375622
Remove white space
2021-11-07 14:19:38 -03:00
ghubstan
eb57b7e75e
Merge branch '01-use-default-bsq-swap-acct' into 02-cli-console-formatting-api
2021-11-07 14:04:13 -03:00
ghubstan
1d403e7a42
Add CLI test dependency to check console output diffs, and tests
2021-11-07 14:01:36 -03:00
ghubstan
ec09d39832
Adjust apitest cases to new CLI console output api
2021-11-07 14:00:52 -03:00
ghubstan
0341104823
Adjust CLI classes to new console output api
2021-11-07 13:59:58 -03:00
ghubstan
08d16e6040
Deprecate old CLI console output formatters
...
A minor refactoring of some deprecated classes is included.
2021-11-07 13:51:27 -03:00
ghubstan
19436c3e2f
Add new bisq.cli.table classes
2021-11-07 13:47:32 -03:00
ghubstan
edd01418ca
Remove fields/methods/logic for creating redundant bsq-swap accounts
...
The user's default bsq-swap account is used instead.
2021-11-07 10:36:40 -03:00
ghubstan
531db1eac4
Do not publish altcoin acct age witness data
2021-11-07 10:14:19 -03:00
ghubstan
eb234bf93a
Remove apitest's create bsq-swap account method
...
If not present, a default BSQ swap account is saved when a User object
is initialized. Use the existing default account in API bsq-swap test
cases, and rename the legacy BSQ payment account fixtures to distinguish
them from the new default 'BSQ Swap' payment account.
2021-11-05 13:59:41 -03:00
jmacxx
c1381e4657
Seller confirm button to be disabled during mediation
2021-11-04 09:34:07 -05:00
Christoph Atteneder
12cd88ce32
Fix translations
2021-11-04 13:23:00 +01:00
Christoph Atteneder
fac4b3c5c3
Fix combobox BSQ selection error
2021-11-04 13:22:32 +01:00
chimp1984
84ff332aeb
Implement new behaviour for dao state monitoring and snapshotting
...
See https://github.com/bisq-network/bisq/issues/5779 for spec
2021-11-04 12:48:10 +01:00
chimp1984
5ccef962d0
Add pruneStore method
...
We set both data to null and call GC after persistence is done.
2021-11-04 12:48:09 +01:00
chimp1984
5a8a9e9be8
Delete DaoEventCoordinator (we will handle coordination in
...
DaoStateSnapshotService instead in next commits)
Let DaoStateSnapshotService implement DaoSetupService (impl in next commits)
2021-11-04 12:48:09 +01:00
chimp1984
8e3f95383e
Add daoStateBlockChainNotConnecting property (impl. will come in other commits)
...
Add Preferences to service classes
2021-11-04 12:48:09 +01:00
chimp1984
1f929926cc
Remove prevHash from StateHash classes (the prevHash was only used for display.
...
For creating the hash we take the hash from the previous element. By removing it
we safe about 3 MB on data)
Add isSelfCreated field to DaoStateHash (indicates if we have created
the hash by ourself or if we have received it from a peer -> will be
part of later commits)
2021-11-04 12:48:09 +01:00
chimp1984
1abe68637d
Add useFullModeDaoMonitor field to PreferencesPayload
...
Add toggle to PreferencesView
Set useFullModeDaoMonitor default to true for headless nodes
2021-11-04 12:48:08 +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
c559e6e044
Fix getCycleIndex method
...
The recursive version is very slow with more cycles.
2021-11-04 12:48:08 +01:00
chimp1984
d73bc55edf
Add method. Inline var
2021-11-04 12:48:08 +01:00
chimp1984
cd3e8217ae
Rename onChangeAfterBatchProcessing to onDaoStateHashesChanged
...
at DaoStateMonitoringService.Listener
2021-11-04 12:48:07 +01:00
chimp1984
3ac61c59f1
Cleanups, improve logs
2021-11-04 12:48:07 +01:00
chimp1984
aad658fc94
Add api test, Cleanup
2021-11-04 12:48:07 +01:00
Christoph Atteneder
851bdcf9ff
Merge pull request #5797 from jmacxx/fix_exception_opening_mediation
...
Prevent NPE in case delayedPayoutTx is not present (failed trade)
2021-11-04 11:47:17 +01:00
Christoph Atteneder
0e4933f8d1
Fix rebase merge errors
2021-11-04 10:55:51 +01:00
Christoph Atteneder
928208c200
Merge pull request #5791 from jmacxx/fix_monese_satispay
...
Include holder name field for Monese & Satispay accounts
2021-11-04 10:54:12 +01:00
Christoph Atteneder
e17fd9ef54
Add informational popup after account creation
2021-11-04 10:46:37 +01:00
Christoph Atteneder
55826cb4a2
Fix failing tests
2021-11-04 10:46:37 +01:00
Christoph Atteneder
b7c4e5ed17
Create BSQ account and take offer if not existing
...
Conflicts:
desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java
desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookViewModel.java
desktop/src/main/java/bisq/desktop/util/DisplayUtils.java
2021-11-04 10:46:27 +01:00
Christoph Atteneder
a5b2859d7e
Simplify and clean up data models
...
Conflicts:
desktop/src/main/java/bisq/desktop/main/account/content/altcoinaccounts/AltCoinAccountsDataModel.java
2021-11-04 10:41:46 +01:00
Christoph Atteneder
60a0d875fc
Refactor account name generation
2021-11-04 10:40:41 +01:00
Christoph Atteneder
4063b72b7d
Add tooltip for disabled create offer button
...
Conflicts:
desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java
2021-11-04 10:40:16 +01:00