Commit Graph

18139 Commits

Author SHA1 Message Date
Alejandro García
2b06a699ee
Merge pull request #7119 from HenrikJannsen/hide-offers-which-are-over-the-trade-limit
Hide offers which are over the trade limit
2024-05-29 15:45:13 +00:00
Alejandro García
4a64adee37
Merge pull request #7115 from HenrikJannsen/fix-navigation-to-open-offers-bug
Do not navigate to open offers after user has clicked dont show again
2024-05-29 15:42:27 +00: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
bb191fa9bb
Improve code for adding exceedingOffers to invalidOffers
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 17:38:04 +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
344304034d
Remove exceptional handling of SiaFund (SF)
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 16:32:51 +07:00
HenrikJannsen
0d3aaacc38
Adjust trade limits of paymnet methods using custom trade limits by the factor of which the DAO param has changed.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 16:31:43 +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
f03c29e238
Merge pull request #7113 from HenrikJannsen/increase-max-entries-at-get-data-request-handler
Increase GetDataRequestHandler.MAX_ENTRIES to 20 000.
2024-05-25 16:41:08 +00:00
HenrikJannsen
9460dfe1ff
Increase GetDataRequestHandler.MAX_ENTRIES to 20 000.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-24 23:29:33 +07:00
Alejandro García
53e87ec795
Merge pull request #7110 from HenrikJannsen/add-new-seed-nodes
Add new seed nodes provided by jester4042
2024-05-24 15:35:32 +00:00
Alejandro García
eebb2fd21e
Merge pull request #7109 from HenrikJannsen/disable-test
Disable ImageCaptureReaderTest
2024-05-24 15:34:54 +00:00
Alejandro García
dcdb064256
Merge pull request #7108 from bisq-network/dependabot/github_actions/actions/checkout-4.1.6
build(deps): bump actions/checkout from 4.1.4 to 4.1.6
2024-05-24 15:34:02 +00:00
Alejandro García
1cc3f4fc33
Merge pull request #7099 from HenrikJannsen/update-resource-files
Update resource files
2024-05-24 15:33:00 +00:00
HenrikJannsen
29994d373f
Add new seed nodes provided by jester4042
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 13:38:34 +07: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
HenrikJannsen
2e40a8cc24
Add BsqBlocks
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:11:16 +07:00
HenrikJannsen
acbcbd2ad6
Add DAO resource files
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:11:15 +07:00
HenrikJannsen
a375f18fca
Remove TempProposalStore_BTC_MAINNET resource files
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:11:15 +07:00
HenrikJannsen
40ffea465e
Add resource files
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:11:14 +07:00
dependabot[bot]
e535536b1c
build(deps): bump actions/checkout from 4.1.4 to 4.1.6
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.4 to 4.1.6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.4...v4.1.6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-20 14:23:47 +00: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
3b428dfd61
Merge pull request #7100 from stejbac/fix-ignored-mailbox-map-data-race
Fix data race in `IgnoredMailboxMap`
2024-05-09 19:01:55 +00:00
Alejandro García
b89bb3dbde
Merge pull request #7097 from HenrikJannsen/add-check-that-price-is-not-0
Add check that price is not 0.
2024-05-09 19:01:07 +00:00
Alejandro García
f62d8d72ca
Merge pull request #7096 from HenrikJannsen/remove-seed-nodes-of-404State
Remove seed nodes of 404State
2024-05-09 19:00:20 +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
6cef856b57
Merge pull request #7094 from HenrikJannsen/improve-button-text
Improve button text
2024-05-09 18:58:46 +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
Steven Barclay
23f871a78b
Fix data race in IgnoredMailboxMap
Make the 'dataMap' field a ConcurrentHashMap instead of a HashMap, to
prevent a ConcurrentModificationException, which was recently observed
when calling 'IgnoredMailboxMap::toProtoMessage' from the persistence
manager inside the user thread during startup of bisq-desktop. Tracing
through the code, this likely happened during an iteration through the
keyset of 'dataMap' (to check for nulls, inside the proto serialisation
logic during persistence), while simultaneously adding ignored mailbox
messages to the map on a separate thread spawned from the method,
'MailboxMessageService::threadedBatchProcessMailboxEntries'. (The latter
was made asynchronous so as not to block the UI.)

(Since there is a call to 'PersistenceManager::requestPersistence' after
every addition to the ignored mailbox map, there hopefully won't be any
missed entries in the final persisted map, even though the snapshot of
ConcurrentHashMap being iterated through won't be fresh as long as new
entries are simultaneously added.)
2024-05-08 18:18:30 +02:00
Steven Barclay
437f81ff08
Remove unused imports from MailboxMessageService 2024-05-08 17:28:05 +02:00
HenrikJannsen
892db99dcb
Add check that price is not 0.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-08 17:13:33 +07:00
HenrikJannsen
c5f9eb2d9a
Remove seed nodes of 404State
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-08 16:55:25 +07: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
HenrikJannsen
1500837126
Improve button text
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-08 14:26:11 +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
3a70213d1b
Add new tx-by-id cache to speed up BsqWalletService.isWalletTransaction
Reduce a hotspot searching the BSQ wallet for the user's votes, upon
selecting a list item of the Vote Result view, by optimising the method
'BsqWalletService.isWalletTransaction(String)'. Do this by adding a
lazily initialised Map field, 'walletTransactionsById', kept in sync
with the existing 'walletTransactions' List field, similar to the tx-by-
id cache removed from the base class in the previous commit, so that a
linear scan of that list can be avoided. Don't bother to make the cache
thread safe, however, since 'isWalletTransaction' is only called from
the user thread and wasn't thread safe to begin with -- access to
'walletTransactions' isn't synchronised, and it is updated only on the
user thread, after a 100 ms delay upon any changes to the BSQ wallet.

Also remove the unused methods 'getUnverifiedBsqTransactions()' and
'getBsqWalletTransactions()' from the class.
2024-05-06 00:04:38 +02:00
Steven Barclay
d803a67d0d
Remove unnecessary tx-by-id cache from WalletService
This was added in an earlier commit (57b2b4b8) to speed up the Trade
History view, via the method 'getConfidenceFotTxId(String)', by
replacing a linear scan of the live wallet txs with a lookup into a
lazily initialised map. However, the delegating 'WalletService' method
'getTransaction(Sha256Hash)' already serves this purpose, with
'o.b.w.Wallet' itself maintaining a map of all the wallet txs. Use that
method instead, taking care to exclude dead txs from the lookups, to
exactly preserve the current behaviour.

Also do some minor cleanup of the class, mainly to remove IDE warnings.
2024-05-05 22:37:32 +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