Commit Graph

3805 Commits

Author SHA1 Message Date
HenrikJannsen
87ea800f66
Deactivate QrCodeProcessorTest until UnsatisfiedLinkError on MacOS is resolved
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 12:23:14 +07:00
Alejandro García
a090f2aa27
Merge branch 'master' into release/v1.9.17 2024-06-25 20:33:51 +00:00
Alejandro García
01ffec9d03
Revert to SNAPSHOT version 2024-06-25 20:24:10 +00:00
Alejandro García
5a2bc54be3
Bump version number for v1.9.17 2024-06-24 00:58:28 +00:00
Devin Bileck
8e9e665cf9
Reduce bundled javacv library size
With the introduction of the javacv library when re-adding the QR code
scanner feature for mobile notification pairing in #7050, the Bisq
binary increased to nearly 1 GB from its previous size of around 300 MB.

When including the javacv-platform dependency, it pulls in binaries
for all platforms. But it is possible to limit this by utilizing
the gradle-javacpp platform plugin which by default will pull in
binaries only for the current platform.

Reference: https://github.com/bytedeco/gradle-javacpp#the-platform-plugin

With this change, the included libs went from ~980 MB down to ~366 MB.
2024-06-24 00:58:22 +00:00
Alejandro García
707349f9df
Revert to SNAPSHOT version 2024-06-24 00:41:05 +00:00
Devin Bileck
5016ad8951
Reduce bundled javacv library size
With the introduction of the javacv library when re-adding the QR code
scanner feature for mobile notification pairing in #7050, the Bisq
binary increased to nearly 1 GB from its previous size of around 300 MB.

When including the javacv-platform dependency, it pulls in binaries
for all platforms. But it is possible to limit this by utilizing
the gradle-javacpp platform plugin which by default will pull in
binaries only for the current platform.

Reference: https://github.com/bytedeco/gradle-javacpp#the-platform-plugin

With this change, the included libs went from ~980 MB down to ~366 MB.
2024-06-22 23:17:27 -07:00
HenrikJannsen
b0b54d3617
Add uid to Filter
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:06:43 +00:00
HenrikJannsen
f38b64b9ed
Add addedBtcNodes and addedSeedNodes fields to Filter.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:05:06 +00:00
HenrikJannsen
73a1281771
Add uid to Filter
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-08 17:07:08 +07:00
HenrikJannsen
01355fdc54
Add addedBtcNodes and addedSeedNodes fields to Filter.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 18:11:23 +07:00
HenrikJannsen
a5a852394b
Comment out failing test cases.
They fail when running from terminal but not when running in IDE

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-29 18:06:11 +02:00
HenrikJannsen
053884cad5
Fix tests
Don't use 20 BTC amount as we limit to 2 BTC
Remove 30 BTC amounts
2024-05-29 18:06:04 +02:00
HenrikJannsen
0dcd24105f
Refactor: Rename
Fix type
Add comment

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-29 18:05:48 +02:00
HenrikJannsen
f4d525cfd6
Add predicate to offer filter to check if offer amount exceeds trade limit.
Filter offers at OfferBookViewModel when the DaoState changes.
Check for offers amount exceeds trade limit at OpenOfferManager and add it to invalidOffers.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-29 18:05:14 +02:00
Alejandro García
ed91a17e56
Merge pull request #7123 from HenrikJannsen/dont-show-xmr-subaddress-recommendation-popup-if-no-xmr-accounts-available
Only show XMR subaddress recommendation if the user has a XMR account setup
2024-05-29 15:52:48 +00:00
Alejandro García
e9b1a689b6
Merge pull request #7122 from HenrikJannsen/remove-ARS-BlueMarke-warning-at-startup
Don't show ARS blue market price warning at startup
2024-05-29 15:51:02 +00:00
Alejandro García
2185bcba49
Merge pull request #7120 from HenrikJannsen/remove-survey-link-at-trade-feedback
Remove survey link and related text at trade complete feedback
2024-05-29 15:46:08 +00:00
HenrikJannsen
9defd482ef
Remove news badge from account
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 19:19:42 +07:00
HenrikJannsen
2c040ec7f5
Only show XMR subaddress recommendation if the user has a XMR account setup.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 19:02:37 +07:00
HenrikJannsen
a3acd4f7f1
Show popup warning about the ARS blue market price when saving the fiat payment account creation instead at startup.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 18:54:33 +07:00
HenrikJannsen
db3f05e121
Comment out failing test cases.
They fail when running from terminal but not when running in IDE

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 18:42:11 +07:00
HenrikJannsen
8c07c11668
Fix tests
Don't use 20 BTC amount as we limit to 2 BTC
Remove 30 BTC amounts
2024-05-26 18:30:08 +07:00
HenrikJannsen
3b7f72e3ef
Remove survey link and related text at trade complete feedback
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 18:24:22 +07:00
HenrikJannsen
58a531d6aa
Refactor: Rename
Fix type
Add comment

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 17:32:39 +07:00
HenrikJannsen
45a03db5cd
Add predicate to offer filter to check if offer amount exceeds trade limit.
Filter offers at OfferBookViewModel when the DaoState changes.
Check for offers amount exceeds trade limit at OpenOfferManager and add it to invalidOffers.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 16:02:11 +07:00
HenrikJannsen
0020f198cf
Do not navigate to open offers after user has clicked dont show again.
Another option would be to store the selection the user has made, but the automatic navigation is kind of confusing and ppl forget that they might have previously selected to prefer to go to open offers. The intent of the popup is that users learn where they can find their created offer which is achieved if the user navigates once there.
2024-05-26 10:51:39 +07:00
Alejandro García
e0b6a2cbb4
Bump version number for v1.9.16 2024-05-24 17:40:00 +02:00
HenrikJannsen
3a09024b10
Disable ImageCaptureReaderTest
If tests are run via gradle I get an error:
`Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: Can't load library: /Users/dev/.openjfx/cache/16/libprism_es2.dylib`
If run from the IDE it works.
CI on windows also fails, other OS work.
Seems that there are some platfomr specific dependency issues...

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:42:08 +07:00
Gabriel Bernard
db04961300
Merge pull request #7101 from bisq-network/release/v1.9.15
Release/v1.9.15
2024-05-12 17:17:41 +00:00
Alejandro García
0d5af748ad
Merge pull request #7095 from HenrikJannsen/fix-GuiceSetupTest
Fix GuiceSetupTest
2024-05-09 18:59:27 +00:00
Alejandro García
0b85e0615d
Merge pull request #7092 from stejbac/speed-up-vote-result-view-load
Speed up Vote Result display, cycle list item selection & JSON export
2024-05-09 18:57:53 +00:00
Alejandro García
0a5a0f316d
Merge pull request #7090 from HenrikJannsen/Improve-export-account-reputation-process-for-Bisq-2
Improve export account reputation process for bisq 2
2024-05-09 18:56:48 +00:00
Alejandro García
09ae097dc9
Merge pull request #7089 from stejbac/add-missing-space-to-log-pattern
Tidy logback files & add space back to log pattern
2024-05-09 18:55:53 +00:00
Alejandro García
dc859e2c2b
Merge pull request #7082 from stejbac/speed-up-bond-repo-update-and-remove-raw-types
Speed up bond repository update and remove some raw types
2024-05-09 18:54:56 +00:00
Alejandro García
776752c466
Revert to SNAPSHOT version 2024-05-09 20:42:56 +02:00
HenrikJannsen
ee6263c4f0
GuiceSetupTest was broken if run in gradle (in IDE it worked) due likely a JavaFX dependency issue.
As the MarketPricePresentation constructor had anyway a ugly setup code we resolve it by refactoring it to a bit less ugly solution. ;-)

Remove the btcWalletService and feeService dependencies from MarketPricePresentation.

Do the setup of static fields in TxIdTextField and GUIUtil in the applyInjector method in BisqAppMain.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-08 14:55:23 +07:00
Steven Barclay
74b5580b2c
Fix incorrect vote weights in voting history JSON
Make sure to include the BSQ stake, and not just the merit stake, when
summing to get the 'voteWeight' field of the vote on each evaluated
proposal in the exported vote results history JSON.
2024-05-06 20:42:13 +02:00
Steven Barclay
57662ae206
Sum merit in outer loop to speed up VoteResultView.getVotingHistoryJson
Avoid needlessly repetitive (once per cycle proposal) signature checking
of each 'Merit' object in the DAO state, when exporting the voting
history JSON, by moving the merit calculations to the outer loop over
each cycle, storing the sums in a map by blind vote txId. As signature
verification is expensive, taking seconds to run just once over every
'Merit' object, this is by far the biggest bottleneck when generating
the JSON.
2024-05-06 20:17:09 +02:00
Steven Barclay
34ed5e0f74
Further optimise cycle list selection in Vote Result view
Remove another hotspot in the proposals table creation for a selected
cycle, by making 'ballotByProposalTxIdMap' a field of 'VoteResultView',
recomputed at the same time the cycle list is populated upon calling
'doFillCycleListAndBallotMap()' (renamed from 'doFillCycleList'), when
the Vote Result view is activated.

Also remove an unnecessary outer loop when determining if the user's
vote is included in the result, upon selecting a cycle list item, to
avoid searching the BSQ wallet repeatedly for the same vote reveal tx.
2024-05-06 16:09:51 +02:00
Steven Barclay
6780d35716
Remove unused tableRow field from ProposalListItem
The 'tableRow' field of each (voted upon) proposal list item is reset
upon selection of a cycle list item in the Vote Result view, but not set
anywhere, so remove the field along with its set/reset methods.
2024-05-06 15:24:51 +02:00
Steven Barclay
6ae9831818
Parallelise signature checking in VoteResultView.doFillCycleList()
Run through the 'DecryptedBallotsWithMerits' list of each cycle in
parallel, when filling the cycle list of the Vote Result view, to speed
up the signature verification of all the 'Merit' objects found in the
DAO state. Checking all the signatures is necessary to correctly compute
the total merit stake and hence the vote weight of each ballot list, and
profiling shows that it is by far the biggest bottleneck during the
initial view load (with all subsequent activations of the view skipping
'doFillCycleList()', when outside of the Vote Result DAO phase).

(Since each signature is checked only once from 'doFillCycleList()' and
skipping the checks could potentially affect the computed vote weights,
we cannot obviously do any better than parallelise the checks, to speed
up this method.)

(Even though it may be a little more efficient to parallelise the outer
loop of the method, over the cycles instead of the decrypted votes of
each cycle, each individual signature check is expensive enough that it
probably wouldn't give much improvement over this one-line change.)
2024-05-05 00:20:09 +02:00
HenrikJannsen
efdd9c68c4
Change button text
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-02 16:10:45 +07:00
HenrikJannsen
13f124566c
Apply patch from @jmacxx (https://github.com/bisq-network/bisq/issues/7066#issuecomment-2087336098)
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-02 16:04:20 +07:00
Steven Barclay
92da7956e6
Tidy logback files & add space back to log pattern
Uniformise the log patterns somewhat, by making the 'Logger' classname
field width either 15 for the seednode & statsnode, or 40 for the other
applications (lengthened from 30 in a few cases).

Also clean up the logback XML files somewhat, in particular removing
references to the old Thali (thaliproject/Tor_Onion_Proxy_Library) Tor
library, which was replaced years ago with our own fork of NetLayer
(https://github.com/cd2357/netlayer).

Finally, add a missing space back to the log pattern for bisq-desktop,
to prevent DEBUG, ERROR or TRACE lines appearing as follows:

  ... [JavaFX Application Thread] ERRORb.c.s.CommonSetup: ...

(It isn't clear whether this recently introduced behaviour was really
intentional, though it did prevent two consecutive spaces appearing in
the majority INFO log lines.)
2024-05-02 01:56:32 +02:00
Devin Bileck
5f3f692b2f
Fix SIGSEGV encountered on macOS
When attempting to close the frame grabber from a separate thread,
the application would crash due to a SIGSEGV.
2024-04-01 21:52:40 -07:00
Devin Bileck
e6e9608473
Fix image loading from resources on Windows
This should hopefully resolve images failing to load from resources
on Windows due to problems with imread encountering "can't open/read
file: check file path/integrity".
2024-04-01 21:52:40 -07:00
Devin Bileck
0f373cee43
Restore QR code scanner feature for mobile notification pairing
This restores the functionality that was removed in b5beea58. However,
this implementation utilizes the JavaCV library rather than the
webcam-capture library as discussed in #4940. As a result, this should
now provide macOS support.
2024-04-01 21:52:40 -07:00
Alejandro García
ee987bef1c
Merge pull request #7005 from jmacxx/sepa_qr_code
Add SEPA QR Code for buyer payment
2024-03-27 09:09:23 +00:00
Steven Barclay
c94fa98417
Generify remaining raw types used by the DAO packages
Fix raw usage of the following types, all of which (apart from
Comparator) touch the DAO packages somewhere:

  Comparable, Comparator, GetStateHashesResponse, NewStateHashMessage,
  RequestStateHashesHandler, PersistenceManager

(Also replace 'Integer.valueOf' with the non-boxing but otherwise
identical method 'Integer.parseInt', in the class 'TxOutputKey'.)
2024-03-09 01:26:36 +08:00