Commit Graph

17502 Commits

Author SHA1 Message Date
jmacxx
c404eb1e91
Support UI improvements (per bisq project 67). 2023-03-11 22:06:07 -06:00
Alejandro García
7319156c46
Merge pull request #6602 from jmacxx/fix_issue_6216
Fix DatePicker auto-grow problem, remove unused code.
2023-03-11 15:13:22 +00:00
Alejandro García
fe30b21643
Merge pull request #6599 from yonson2023/bm_distribution_report
Add report showing monthly BTC paid to BurningMen.
2023-03-11 15:12:40 +00:00
Alejandro García
b88cd58f24
Merge pull request #6593 from jmacxx/limit_min_max_deviation
Limit offer min/max amount deviation to 50%.
2023-03-11 15:11:12 +00:00
Alejandro García
4e4321e3a2
Merge pull request #6600 from stejbac/speed-up-bsq-tx-view-load
Speed up BSQ tx view load
2023-03-11 15:10:13 +00:00
Steven Barclay
4b2c7b15c4
Iterate over wallet keychains instead of using hard coded BIP32 paths
Add private method 'WalletInfoView.addAccountPaths', similar to the
method 'addXpubKeys', to iterate over the active wallet keychains,
formatting & displaying the derivation paths, instead of using the 4
constants defined in BisqKeyChainGroupStructure. Also simplify the code
slightly by updating the 'gridRow' field directly instead of passing it
as a method argument.
2023-03-11 15:03:24 +08:00
Steven Barclay
1672bb6e74
Add missing segwit BSQ keychain path to wallet info
Add the new account path "44'/142'/1'" for segwit BSQ to the wallet info
view, which was missed from PR #5109 making the wallet & UI changes to
implement segwit BSQ. Also format the paths from the constants defined
in 'BisqKeyChainGroupStructure', instead of using string literals, so
that they are only defined in one place. (Though it is extremely
unlikely the paths would ever change.)
2023-03-11 09:44:15 +08:00
jmacxx
a8f519299f
Fix datepicker auto-grow problem, remove unused helper. 2023-03-09 08:34:01 -06:00
Steven Barclay
fcbf96ceb9
Fix confirmation count bug in transactions CSV export
Move the 'confirmations' field from TransactionsListItem to the nested
'LazyFields' class, so that it is correctly lazily initialised when
'getNumConfirmations()' is called, instead of just returning 0 for
hidden list items with uninitialised tooltips + confidence indicators.

This makes the logic consistent with that in TxConfidenceListItem and
fixes a bug in the BTC transactions view CSV export, where only the
already rendered list items would have nonzero confirmation counts.
2023-03-08 18:12:41 +08:00
Steven Barclay
76c2781505
Short circuit confidence updates in DepositListItem
Add a 'lazyFields' volatile field to DepositListItem to detect
initialisation of the associated memoised 'LazyFields' supplier,
allowing confidence updates to be short-circuited when the corresponding
indicator has not yet been lazily loaded.

This is for consistency with the 'LazyFields' logic just added to
TxConfidenceListItem and should make the UI more responsive if a new
block arrives when the funds deposit list is in view, by avoiding the
entire list of item tooltips & confidence indicators from being force-
initialised.
2023-03-08 17:18:54 +08:00
Steven Barclay
04fae6d81e
Lazily load BsqTxListItem tooltips & confidence indicators
Add a 'LazyFields' static class and memoised supplier field to the base
class TxConfidenceListItem, similar to that added to the classes
DepositListItem & TransactionsListItem. This allows lazy loading of
tooltips & tx confidence indicators, just as for those classes.

This removes the current remaining bottleneck in the BSQ tx view load,
revealed by JProfiler. (Note that there is still a quadratic time bug
remaining due to the use of a confidence listener for each list item,
since the BSQ wallet internally uses a CopyOnWriteArrayList, whose
backing array is cloned for each listener addition or removal. However,
it isn't clear that fixing this will give a noticable speedup unless
there are an extremely large number of BSQ txs in the wallet.)

Take care to add the tx confirmation count to LazyFields, to prevent
issues when exporting the list as a CSV. Also add a volatile
'lazyFields' field to detect lazy initialisation of the supplier and
short circuit confidence updates for uninitialised indicators.
2023-03-08 16:14:04 +08:00
Steven Barclay
e18b1e833d
Avoid repeated scanning for swap trades via BsqTxListItem ctor
Precompute and pass a map of txIds to BsqSwapTrade instances to the
BsqTxListItem constructor in 'BsqTxView.updateList()', in place of the
tradable repository, so that the tradables don't need to be repeatedly
scanned to find the optional matching BSQ swap trade for each BSQ tx.

This fixes a quadratic time bug and significantly speeds up the BSQ tx
view load for users with many past trades.
2023-03-08 14:23:15 +08:00
Steven Barclay
3fa6b25789
Avoid calling BsqTxView.updateList() twice on view load
Remove the direct call to 'updateList' in the 'BsqTxView.activate()'
method, as it is later called indirectly via 'onUpdateAnyChainHeight()'.
This nearly doubles the loading speed of the BSQ tx list (in the DAO /
BSQ Wallet tab), since 'updateList' is very slow when there are many txs
in the wallet.
2023-03-08 13:50:41 +08:00
yonson2023
289f546f7f
Add report showing monthly BTC paid to BurningMen. 2023-03-07 18:34:42 -06:00
jmacxx
8a41637b58
Limit offer min/max amount deviation to 50%. 2023-02-27 20:24:52 -06:00
Alejandro García
cfeb597cf1
Merge pull request #6591 from bisq-network/dependabot/github_actions/gradle/gradle-build-action-2.4.0
Bump gradle/gradle-build-action from 2.3.3 to 2.4.0
2023-02-27 21:24:38 +00:00
Alejandro García
cbc30f497d
Merge pull request #6590 from yonson2023/fix_issue_5725
Payout tx confidence should be after block height of deposit.
2023-02-27 21:23:50 +00:00
dependabot[bot]
df6148fafe
Bump gradle/gradle-build-action from 2.3.3 to 2.4.0
Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/gradle/gradle-build-action/releases)
- [Commits](https://github.com/gradle/gradle-build-action/compare/v2.3.3...v2.4.0)

---
updated-dependencies:
- dependency-name: gradle/gradle-build-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 14:58:42 +00:00
yonson2023
030bb3f64c
Payout tx confidence should be after block height of deposit. 2023-02-19 16:21:54 -06:00
Alejandro García
d83a205fe2
Merge pull request #6586 from alvasw/implement_network_statistics_service
Decouple NetworkStatistics from UI thread [1/2]
2023-02-18 18:13:06 +00:00
Alejandro García
71615824a8
Merge pull request #6585 from yonson2023/fix_payment_started_bug
Fix NPE at trade payment started event.
2023-02-18 18:12:04 +00:00
Alva Swanson
4c6c9100b3
Implement NetworkStatisticsService
The NetworkStatisticsService is an attempt to decouple the network
statistic computation from the UI thread. Here, the
NetworkStatisticsService schedules repeating tasks on a
ScheduledExecutorService.
2023-02-15 20:35:58 +02:00
Alejandro García
bed76128b7
Merge pull request #6580 from alvasw/server_remove_redundant_is_stopped_bool
Server: Remove redundant isStopped boolean
2023-02-15 18:32:57 +00:00
Alejandro García
3dc3464114
Merge pull request #6581 from alvasw/rename_network_filter_to_ban_filter
Rename NetworkFilter to BanFilter
2023-02-15 18:24:55 +00:00
Alejandro García
9d091bea44
Merge pull request #6588 from jmacxx/fix_exception_accountingstore
Fix exception due to missing read lock.
2023-02-15 18:23:17 +00:00
jmacxx
6801ebfbd7
Fix exception due to missing read lock. 2023-02-15 10:48:59 -06:00
Christoph Atteneder
7d2e110a1d
Merge pull request #6582 from alvasw/remove_unused_connection_listener_on_error
Remove unused ConnectionListener.onError(...) method
2023-02-15 17:43:29 +01:00
Christoph Atteneder
229eeef024
Merge pull request #6583 from bisq-network/dependabot/github_actions/actions/setup-java-3.10.0
Bump actions/setup-java from 3.9.0 to 3.10.0
2023-02-15 16:38:13 +01:00
Christoph Atteneder
4f2a68acc4
Merge pull request #6584 from ghubstan/adjust-to-removed-daoactivated-opt
Adjust to removed --daoActivated opt
2023-02-15 16:34:37 +01:00
Christoph Atteneder
91f77ec722
Merge pull request #6587 from HenrikJannsen/reduce_height_of_bm_table
Reduce burningman table height to 5 rows
2023-02-15 16:30:13 +01:00
HenrikJannsen
c74319c969
Reduce burningman table height to 5 rows
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-02-15 17:34:25 +07:00
yonson2023
9d4d575739
Fix NPE at trade payment started event. 2023-02-13 21:29:41 -06:00
ghubstan
ade885e205
Ignore v1 protocol bsq offer test 2023-02-13 19:14:08 -03:00
ghubstan
e26955bf60
Adjust to removal of --daoActivated opt 2023-02-13 19:09:54 -03:00
ghubstan
f69fb3a959
Update for bticoind v23 + IDE format 2023-02-13 19:09:01 -03:00
dependabot[bot]
0507ce46b0
Bump actions/setup-java from 3.9.0 to 3.10.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3.9.0...v3.10.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 14:59:39 +00:00
Alva Swanson
d411ae1252
Remove unused ConnectionListener.onError(...) method 2023-02-12 20:44:38 +02:00
Alva Swanson
f9a0e5d6d0
Rename NetworkFilter to BanFilter 2023-02-12 20:30:58 +02:00
Alva Swanson
81a224bfea
Server: Remove redundant isStopped boolean
We can track the server status with the interrupted status of the
server thread. The isStopped boolean is not needed.
2023-02-12 20:23:25 +02:00
Alejandro García
b4822761a8
Merge pull request #6578 from alvasw/server_extract_running_check_to_is_active_method
Server: Extract isStopped check to method
2023-02-12 18:13:49 +00:00
Alejandro García
f00152d42f
Merge pull request #6577 from alvasw/server_switch_to_atomic_is_stopped_bool
Server: Switch to atomic isStopped boolean
2023-02-12 18:13:05 +00:00
Alejandro García
4a4e13c5da
Merge pull request #6576 from alvasw/move_server_thread_to_server_class
NetworkNode: Move server threading logic to server
2023-02-12 18:12:13 +00:00
Alejandro García
581fbd1d2d
Merge pull request #6579 from stejbac/further-speed-up-transactions-view-load
Further speed up transactions view load
2023-02-12 14:05:36 +00:00
Alejandro García
3b1a5f0337
Merge pull request #6575 from yonson2023/fix_exception_governance
[1.9.10] Fix unhandled exception in DAO Governance view.
2023-02-12 14:04:39 +00:00
Alejandro García
0bdebb59e8
Merge pull request #6569 from alvasw/pass_connection_uid_to_executor_service_name
Connection: Pass uid to executor service name
2023-02-12 14:04:05 +00:00
Steven Barclay
6a84500710
Cache txo addresses to speed up isRefundPayoutTx in some cases
In the (hopefully rare) case that the user has multiple past trades that
end in arbitration, the entire wallet tx output set was scanned once for
every such trade (via 'TransactionAwareTrade.isRefundPayoutTx' calls),
to look for any outputs matching the payout address. This potentially
causes a slowdown of the Transaction view load for each new arbitration
case added. To avoid this problem, cache the last set of recipient
address strings of the provided tx, as the next call to
'isRefundPayoutTx' is likely to be for the same tx.

Also check that there is exactly one input (the multisig input) for any
candidate delayed payout tx, to speed up 'isDelayedPayoutTx' in case the
wallet contains many unusual txs with nonzero locktime.
2023-02-12 12:35:05 +08:00
Alva Swanson
2127e0745c
Server: Extract isStopped check to method 2023-02-11 22:19:43 +02:00
Alva Swanson
3cd24d67ed
Server: Switch to atomic isStopped boolean 2023-02-11 21:41:50 +02:00
Alva Swanson
ee2157aa24
NetworkNode: Move server threading logic to server 2023-02-11 21:40:55 +02:00
yonson2023
baad09bfc8
Fix unhandled exception when empty txId passed. 2023-02-11 08:55:08 -06:00