Commit Graph

2269 Commits

Author SHA1 Message Date
Oscar Guindzberg
e8c82549a8
Use Address.fromString() for btc addresses
Use Address.fromString() instead of LegacyAddress.fromBase58() for btc addresses.
Trade protocol addresses not migrated yet.
2020-09-21 12:40:52 -03:00
Oscar Guindzberg
8a3d403bfc
Rename WalletService.emptyWallet() to emtyBtcWallet() 2020-09-21 12:40:52 -03:00
chimp1984
81bea14af2
Show popup to peer who accepted mediators suggestion once locktime is over 2020-09-21 01:16:47 -05:00
chimp1984
a9f10624c2
Move validation after adding dispute to list 2020-09-21 00:20:12 -05:00
chimp1984
c7a3f95925
Rename filterString to filterTerm 2020-09-20 23:15:20 -05:00
chimp1984
baa915f5de
Add validateNodeAddress at onOpenNewDisputeMessage
- Cleanups
2020-09-20 22:32:53 -05:00
chimp1984
9c0b40a3b9
Refactor: Move Regex test methods from GUIUtilTest to RegexValidatorTest in core 2020-09-20 22:16:22 -05:00
chimp1984
c6f2732062
Refactor: Move RegexValidator factory methods to RegexValidatorFactory in core 2020-09-20 22:14:14 -05:00
chimp1984
3675e76194
Refactor: Move egexValidator from desktop to core 2020-09-20 22:13:18 -05:00
chimp1984
987bf4953a
Add node address validation 2020-09-20 22:10:48 -05:00
chimp1984
3206c62151
Refactor: Move RegexValidator from bisq.desktop.util.validation to bisq.core.util.validation
Add RegexValidatorFactory
Move regex tests from GUIUtilTest to new RegexValidatorTest class
2020-09-20 21:58:32 -05:00
chimp1984
30e9add4dc
Refactor: rename DelayedPayoutTxValidation to TradeDataValidation 2020-09-20 21:40:21 -05:00
chimp1984
72dca0b55a
Add cylce index 2020-09-20 21:25:12 -05:00
chimp1984
c6778d6b2d
Add copy to csv data button to report screen 2020-09-20 20:20:39 -05:00
chimp1984
d31deff9c4
Remove dev log 2020-09-20 14:50:02 -05:00
chimp1984
c1850cb47b
Merge branch 'master_upstream' into dispute-agent-branch
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/PendingTradesDataModel.java
2020-09-20 13:23:13 -05:00
chimp1984
48a3f7443e
Merge branch 'master_upstream' into fix-trade-protocol-issues
# Conflicts:
#	core/src/main/java/bisq/core/offer/placeoffer/tasks/CreateMakerFeeTx.java
2020-09-19 10:23:40 -05:00
Oscar Guindzberg
fc70c11573
ok codacy, you win 2020-09-18 18:29:40 -03:00
Oscar Guindzberg
f1738f0b19
Code polishing to make Codacy happier 2020-09-18 18:29:38 -03:00
Oscar Guindzberg
f342c89c8e
Code polishing to make Codacy happy 2020-09-18 18:29:37 -03:00
Oscar Guindzberg
08cc836bab
bitcoinj 0.15: Fix TransactionAwareTradeTest 2020-09-18 18:29:34 -03:00
Oscar Guindzberg
9a9b067d70
bitcoinj 0.15: Replace deprecated Transaction.getHashAsString with Transaction.getTxId().toString(). 2020-09-18 18:29:33 -03:00
Oscar Guindzberg
87481cdbf5
bitcoinj 0.15: Replace usage of bitcoinj's removed methods with new ones. 2020-09-18 18:29:30 -03:00
Oscar Guindzberg
7356b64f59
bitcoinj 0.15: Use LegacyAddress.fromBase58() instead of Address.fromBase58(). 2020-09-18 18:29:30 -03:00
Oscar Guindzberg
46f2ba6ee0
bitcoinj 0.15: WalletEventListener was replaced by more granular listeners. 2020-09-18 18:29:29 -03:00
Oscar Guindzberg
d4ac45da21
bitcoinj 0.15: bitcoinj moved from spongycastle to bouncycastle. 2020-09-18 18:29:28 -03:00
Oscar Guindzberg
423ffa84e1
bitcoinj 0.15: Futures.addCallback() in guava 28 requires an executor. 2020-09-18 18:29:27 -03:00
chimp1984
b2a9262b93
Merge branch 'verify-donation-address-for-refund-agent' into dispute-agent-branch
# Conflicts:
#	core/src/main/java/bisq/core/support/dispute/DisputeManager.java
#	desktop/src/main/java/bisq/desktop/main/support/dispute/agent/DisputeAgentView.java
2020-09-17 19:09:26 -05:00
chimp1984
45cee2a272
Add check for disputes with duplicated trade ID or payout tx ids 2020-09-17 19:05:55 -05:00
chimp1984
3d4427cdfd
Add result of filter match. Add more filter data (tx ids, json) 2020-09-17 13:54:45 -05:00
chimp1984
48a14ee8a7
Merge branch 'master_upstream' into fix-trade-protocol-issues 2020-09-16 20:45:17 -05:00
chimp1984
1c0bef787a
Merge branch 'master_upstream' into verify-donation-address-for-refund-agent 2020-09-16 20:40:08 -05:00
chimp1984
b0b4334345
Merge branch 'master_upstream' into dispute-agents-sign-summary 2020-09-16 20:38:45 -05:00
Christoph Atteneder
81df879881
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.3.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
2020-09-16 16:52:54 +02:00
Christoph Atteneder
95dd561d91
Revert to SNAPSHOT version 2020-09-16 16:49:48 +02:00
Christoph Atteneder
06ac7a7605
Bump version number for v1.3.9 2020-09-16 15:58:58 +02:00
chimp1984
601de7890d
Add try/catch at setSuggestedSecurityDeposit code 2020-09-16 15:56:13 +02:00
Christoph Atteneder
8cb4b5016c
Merge pull request #4529 from chimp1984/make-moving-average-code-more-safe
Make moving average code more safe
2020-09-16 15:51:14 +02:00
Christoph Atteneder
98b03937d8
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.3.8
# Conflicts:
#	core/src/main/java/bisq/core/support/dispute/agent/MultipleHolderNameDetection.java
#	core/src/main/java/bisq/core/trade/txproof/xmr/XmrTxProofService.java
2020-09-15 13:24:06 +02:00
Christoph Atteneder
5f957f0a64
Revert to SNAPSHOT version 2020-09-15 09:26:08 +02:00
chimp1984
71d57298b0
Add try/catch at setSuggestedSecurityDeposit code 2020-09-14 16:05:47 -05:00
chimp1984
352e661bac
update devmode price 2020-09-13 15:35:39 -05:00
cd2357
8d793e9a83
Show info popup if Bisq started under Qubes OS
Show popup informing the user about the OS-specific setup guide.
2020-09-13 13:23:12 +02:00
chimp1984
966b22a69d
Fix line breaks 2020-09-12 20:24:32 -05:00
chimp1984
de4fb17a19
Improve summary notes 2020-09-12 20:18:04 -05:00
chimp1984
0c46e7dd52
Add more data to summary msg 2020-09-12 16:19:42 -05:00
chimp1984
48066ae124
Remove setting of pubKey as it is not needed 2020-09-12 00:49:27 -05:00
chimp1984
559028e500
Remove unused var 2020-09-12 00:46:52 -05:00
chimp1984
7ac6e715d3
Dispute agent sign summary. Add tool for verification 2020-09-12 00:35:58 -05:00
chimp1984
05e1039423
Call validatePayoutTx only after trades are initialized 2020-09-11 20:28:23 -05:00
chimp1984
08fb596629
Call validatePayoutTx only after trades are initialized 2020-09-11 20:25:48 -05:00
chimp1984
677211badf
Allow close dispute for refund agent without payout 2020-09-11 20:24:31 -05:00
chimp1984
d82631f52c
Fix some issues found during testing
Refactorings
2020-09-11 19:41:08 -05:00
chimp1984
c48abbf575
Improve address validation code 2020-09-11 17:37:03 -05:00
chimp1984
2b0433870c
Dont allow opening refudn agent dispute if delayed payout tx is invalid. 2020-09-11 17:00:24 -05:00
chimp1984
4f1cbbd00e
Add check for refund agent if donation address is valid 2020-09-11 15:35:47 -05:00
chimp1984
6821c582e9
Add check for open offers and remove them if present at restore from seed 2020-09-09 14:12:03 -05:00
wiz
8cde8ce16a
Fix codacy complaining about missing space character 2020-09-09 15:16:38 +02:00
wiz
cc7e6559ff
Use lots of regex to add http or https for XMR explorer API endpoint
* If Tor *.onion hostname, use HTTP with Tor proxy
* If 127.0.0.1 or localhost, use HTTP without Tor proxy
* If LAN address or *.local FQDN, use HTTP without Tor proxy
* If any other FQDN hostname, use HTTPS with Tor proxy
2020-09-09 15:12:09 +02:00
chimp1984
54fdb5267f
Instead of renaming the AddressEntryList to a backup file we keep it
at restore from seed and create a backup copy.
I don't know what was the motivation of removing the original file
(probably the use case that the seeds are different and thus there
is no match of existing entries with the new addresses) as
that breaks the internal association of addresses with trades/offers and
the reserved balances display.

This should be tested well though with the related use cases
(diff. offer and trade states, wallet restore with same seed of with
foreign seed -> in that case we need to recreated the AddressEntryList
but that should be handled in the related domain)

- Add copyFile method
2020-09-08 19:14:38 -05:00
chimp1984
fa0224550c
Refactoring
- Add SharedPresentation class for methods in GUIUtil which are no
utility methods.
- Move restoreSeedWords to SharedPresentation
2020-09-08 19:00:16 -05:00
wiz
245027bff4
Fix codacy complaining about missing space character 2020-09-08 20:20:30 +09:00
wiz
a2c6f279a6
Merge remote-tracking branch 'bisq/master' into use-https-for-xmr-explorer-api 2020-09-08 20:19:20 +09:00
chimp1984
062c52dd55
Resolve merge conflict in Merge conflict in desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/steps/seller/SellerStep3View.java 2020-09-08 11:57:51 +02:00
chimp1984
35cd7ac56b
Add check if trade have been dispute to protocol classes 2020-09-08 11:53:29 +02:00
chimp1984
cdf2698e29
Add comment to empty method 2020-09-08 11:53:20 +02:00
chimp1984
5ecbbf601f
Resolve merge conflict in Merge conflict in desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/steps/seller/SellerStep3View.java 2020-09-08 11:53:04 +02:00
chimp1984
a7b5cdbd03
Resolve merge conflict in Merge conflict in desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/steps/seller/SellerStep3View.java 2020-09-08 11:49:33 +02:00
m52go
67fc398f9b
Add note to SetXmrTxKeyWindow
To convey what it's about, and that it's optional.
2020-09-08 11:36:39 +02:00
m52go
2265d8f9e1
Add note to SetXmrTxKeyWindow
To convey what it's about, and that it's optional.
2020-09-07 11:36:32 -04:00
wiz
0869f9a016
Use lots of regex to add http or https for XMR explorer API endpoint
* If Tor *.onion hostname, use HTTP with Tor proxy
* If 127.0.0.1 or localhost, use HTTP without Tor proxy
* If LAN address or *.local FQDN, use HTTP without Tor proxy
* If any other FQDN hostname, use HTTPS with Tor proxy
2020-09-08 00:26:56 +09:00
Christoph Atteneder
b81e804bb1
Merge pull request #4491 from chimp1984/bugfix-xmr-tool
Bug fixes
2020-09-07 09:56:44 +02:00
chimp1984
e704d02801
Bug fixes
- useXmrTxProof was set at active but used in addContent which was
called before activate.
- Fix bug with using currencyName instead of currencyCode
- Refactor: Use methods in base class instead of repeated code
2020-09-07 09:56:13 +02:00
jmacxx
05cc29d854
Minor bug fixes for XMR tx proof feature
Fix missing CSS color code xmr-orange, was missing from dark mode.

Fix log message spelling/typo errors.

Removed 2 fixes from SellerStep3View so that chimp1984 can make
changes.

Remove address validator from XMR service address settings because
it does not support https prefix.
2020-09-07 09:55:05 +02:00
Christoph Atteneder
38cff29d97
Merge pull request #4490 from jmacxx/origin/add-xmr-tx-key-service-fix
Minor bug fixes for XMR tx proof feature
2020-09-07 09:54:38 +02:00
chimp1984
b1b3136969
Improve handling of nullable assetTxProof fields 2020-09-07 09:39:11 +02:00
chimp1984
9eb7900d51
Fix handling of username/accountId
We apply userName to accountId if it is not set (e.g. new account
created with new version). We do not use that for display or for
account signing in case both fields are the same but we need to use
accountId in case the user trades with a not updated user who expects
accountId as only field.
I improved a bit the display of account data in the trade screens.
In case accountId was set with the phone number (updated account with
phone nr used for account signing) we show both userName and phone nr.

- Show phone number if accountId was set by old account. Otherwise
show only userName
- For old users they will see the user name as phone number displayed
if they trade with new users if the new user has created a new account.
If he has updated an existing account the accountId (phone number) is
used, so it displays the phone number.
- At step 2 changed display of own account data to show account name
- Add 'Recipients' prefix to account data of peer at step 2

Step 3: Buyers account data can be
- Phone number if peer is using old version
- User name if peer is updated user with new account (we apply userName
to accountId)
- Phone number if user is on old version and peer is updated user with
updated account (we keep accountId as phone number)
- User name/Phone number if peer is updated user with updated account
2020-09-07 09:39:02 +02:00
chimp1984
a4f6d2af2e
Add check if xmrTxProof is used to avoid null pointer exception 2020-09-07 09:38:44 +02:00
chimp1984
e080b06736
Remove unused method 2020-09-07 09:34:57 +02:00
chimp1984
9cc614a790
Add alert icon to list entries
Support agent can mark a suspicious dispute as resolved so it does not
show the alert icon anymore. In the full report a [ACK] got added to
that dispute.
2020-09-07 09:34:47 +02:00
chimp1984
cc2d258915
Scan disputes for accounts where same user used diff. real names.
Might be fraudulent traders.
2020-09-07 09:34:31 +02:00
chimp1984
38d33ceab3
Remove offer from takers offerbook after take offer is completed.
We do not wait until the offer got removed by a network remove message but remove it
directly from the offer book. The broadcast gets now bundled and has 2 sec. delay so the
removal from the network is a bit slower as it has been before. To avoid that the taker gets
confused to see the same offer still in the offerbook we remove it manually. This removal has
only local effect. Other trader might see the offer for a few seconds
still (but cannot take it).
2020-09-07 09:30:44 +02:00
jmacxx
f49aa0f674
Minor bug fixes for XMR tx proof feature
Fix missing CSS color code xmr-orange, was missing from dark mode.

Fix log message spelling/typo errors.

Removed 2 fixes from SellerStep3View so that chimp1984 can make
changes.

Remove address validator from XMR service address settings because
it does not support https prefix.
2020-09-07 00:06:50 -05:00
chimp1984
c40bcfedfc
Fix merge mistake 2020-09-06 23:51:24 -05:00
chimp1984
f3c96bbb62
Merge branch 'master_upstream' into deactive-confirm-buttons-once-mediation-started
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/steps/seller/SellerStep3View.java
2020-09-06 23:13:43 -05:00
chimp1984
087dde0e9d
Add check if trade have been dispute to protocol classes 2020-09-06 23:09:45 -05:00
chimp1984
1419f05152
Add comment to empty method 2020-09-06 23:06:27 -05:00
chimp1984
f3a3b6e9a8
Bug fixes
- useXmrTxProof was set at active but used in addContent which was
called before activate.
- Fix bug with using currencyName instead of currencyCode
- Refactor: Use methods in base class instead of repeated code
2020-09-06 21:37:25 -05:00
sqrrm
7389bf898c
Merge pull request #4480 from chimp1984/add-support-for-monero-address-prefix
Remove 'monero:' prefix when adding a XMR account
2020-09-06 23:24:40 +02:00
sqrrm
236e9e6d4b
Merge pull request #4487 from chimp1984/remove-offer-from-offer-list-for-taker
Remove offer from takers offerbook after take offer is completed.
2020-09-06 23:23:19 +02:00
sqrrm
c188284d0b
Merge pull request #4484 from chimp1984/detect-accounts-with-diff-real-names
Scan disputes for accounts where same user used diff. real names.
2020-09-06 23:17:32 +02:00
chimp1984
ec31ecbf43
Improve handling of nullable assetTxProof fields 2020-09-06 12:05:39 -05:00
chimp1984
7fff461669
Remove offer from takers offerbook after take offer is completed.
We do not wait until the offer got removed by a network remove message but remove it
directly from the offer book. The broadcast gets now bundled and has 2 sec. delay so the
removal from the network is a bit slower as it has been before. To avoid that the taker gets
confused to see the same offer still in the offerbook we remove it manually. This removal has
only local effect. Other trader might see the offer for a few seconds
still (but cannot take it).
2020-09-05 19:45:00 -05:00
chimp1984
9908bcf33a
Rename method 2020-09-05 19:19:49 -05:00
chimp1984
55e55d4f19
Deactivate confirm payment or payment received buttons once a dispute
is opened.
2020-09-05 19:18:33 -05:00
chimp1984
959009d6d6
Remove unused method 2020-09-05 17:54:32 -05:00
chimp1984
4a4bd7cd12
Add alert icon to list entries
Support agent can mark a suspicious dispute as resolved so it does not
show the alert icon anymore. In the full report a [ACK] got added to
that dispute.
2020-09-05 17:39:22 -05:00
chimp1984
7c78e98192
Scan disputes for accounts where same user used diff. real names.
Might be fraudulent traders.
2020-09-05 01:40:35 -05:00
chimp1984
97d3383dbb
Fix handling of username/accountId
We apply userName to accountId if it is not set (e.g. new account
created with new version). We do not use that for display or for
account signing in case both fields are the same but we need to use
accountId in case the user trades with a not updated user who expects
accountId as only field.
I improved a bit the display of account data in the trade screens.
In case accountId was set with the phone number (updated account with
phone nr used for account signing) we show both userName and phone nr.

- Show phone number if accountId was set by old account. Otherwise
show only userName
- For old users they will see the user name as phone number displayed
if they trade with new users if the new user has created a new account.
If he has updated an existing account the accountId (phone number) is
used, so it displays the phone number.
- At step 2 changed display of own account data to show account name
- Add 'Recipients' prefix to account data of peer at step 2

Step 3: Buyers account data can be
- Phone number if peer is using old version
- User name if peer is updated user with new account (we apply userName
to accountId)
- Phone number if user is on old version and peer is updated user with
updated account (we keep accountId as phone number)
- User name/Phone number if peer is updated user with updated account
2020-09-04 18:30:08 -05:00
chimp1984
c87899c662
Add check if xmrTxProof is used to avoid null pointer exception 2020-09-04 14:51:34 -05:00
chimp1984
9a57525a46
Remove 'monero:' prefix when adding a XMR account
Some wallets copy the address with a 'monero:' prefix. If user pastes
that directly into the form he gets a validation error. We remove now
that prefix so the input is automatically adjusted to the address only.
2020-09-04 14:33:30 -05:00
chimp1984
3e933c31a5
Fix bug with all mobile notifications for disputes are sent at startup. 2020-09-04 10:21:29 +02:00
Christoph Atteneder
57bed13cf8
Merge pull request #4475 from chimp1984/fix-mobile-notification-bug
Fix bug with all mobile notifications for disputes are sent at startup.
2020-09-04 10:20:43 +02:00
chimp1984
2400014db6
Change hex color code to lower case 2020-09-04 10:18:20 +02:00
chimp1984
63444b1f77
Add null check. Improve text 2020-09-04 10:18:07 +02:00
chimp1984
044d23f933
Adjust auto-conf css for badge
- make it xmr orange
- make with dynamic with 10 px padding left/right
- fix 1 px vertical offset
2020-09-04 10:18:00 +02:00
chimp1984
fa9893cdd4
Show tx confidence indicator for XMR blocks. Show info icon 2020-09-04 10:17:53 +02:00
chimp1984
33c8728fde
Add monero orange color code for tx confidence indicator 2020-09-04 10:17:45 +02:00
chimp1984
e01ebdf6e8
Change min required confirmations from 0 to 1.
If users accept visible in mempool only txs its their own risk and they
can manually confirm anyway. We should not support 0 conf txs.
2020-09-04 10:17:39 +02:00
chimp1984
11827a42c6
Set default services based on localhost check not on devMode check 2020-09-04 10:17:31 +02:00
chimp1984
05296af47e
Add check if dispute is open
If a mediation or arbitration dispute has been opened we do not use the
auto-confirm feature.
2020-09-04 10:16:49 +02:00
chimp1984
2da08a5620
Refactor dependency structure to enable adding dispute managers
If we would add DisputeManager to previous structure it would cause a
circular dependency error from guice. We change dependency structure so
that TradeManager does not know XmrTxProofService but XmrTxProofService
gets an instance of TradeManager. It makes code cleaner in total as well
as responsibility is better defined.

Next commit will contain the DisputeManager addition.
2020-09-04 10:16:37 +02:00
Christoph Atteneder
d33b40128e
Merge pull request #4474 from chimp1984/stop-xmr-proof-service-at-dispute
Stop xmr proof service at dispute
2020-09-04 10:16:00 +02:00
chimp1984
688bef885a
Rmove short cut info for removed key handlers 2020-09-04 10:14:50 +02:00
Christoph Atteneder
2c39ded714
Merge pull request #4472 from chimp1984/update-about-view
Remove short cut info for removed key handlers
2020-09-04 10:12:53 +02:00
Christoph Atteneder
766d04588f
Merge pull request #4471 from chimp1984/add-setup-info-to-app-header
Add flags to header to signal which dev setup is used
2020-09-04 10:12:14 +02:00
chimp1984
6d37bedbbe
Fix bug with all mobile notifications for disputes are sent at startup. 2020-09-03 23:50:28 -05:00
chimp1984
a7e10155b1
Change hex color code to lower case 2020-09-03 21:22:54 -05:00
chimp1984
1016c73b35
Add null check. Improve text 2020-09-03 21:14:06 -05:00
chimp1984
6ab679c479
Adjust auto-conf css for badge
- make it xmr orange
- make with dynamic with 10 px padding left/right
- fix 1 px vertical offset
2020-09-03 21:02:16 -05:00
chimp1984
4e27b93acf
Show tx confidence indicator for XMR blocks. Show info icon 2020-09-03 20:51:19 -05:00
chimp1984
7cc021d7d6
Add monero orange color code for tx confidence indicator 2020-09-03 20:50:46 -05:00
chimp1984
023eb97f04
Change min required confirmations from 0 to 1.
If users accept visible in mempool only txs its their own risk and they
can manually confirm anyway. We should not support 0 conf txs.
2020-09-03 20:33:49 -05:00
chimp1984
b80082005c
Set default services based on localhost check not on devMode check 2020-09-03 19:15:42 -05:00
chimp1984
e74edc254a
Add check if dispute is open
If a mediation or arbitration dispute has been opened we do not use the
auto-confirm feature.
2020-09-03 15:38:47 -05:00
chimp1984
0434ba52b6
Refactor dependency structure to enable adding dispute managers
If we would add DisputeManager to previous structure it would cause a
circular dependency error from guice. We change dependency structure so
that TradeManager does not know XmrTxProofService but XmrTxProofService
gets an instance of TradeManager. It makes code cleaner in total as well
as responsibility is better defined.

Next commit will contain the DisputeManager addition.
2020-09-03 14:36:28 -05:00
chimp1984
d61aad66df
Add flags to header to signal which dev setup is used
Add to app header a post fix with info if Regtest or testnet,
LOCALHOST or DEV MODE is used.
At Mainnet without devmode nothing is added
2020-09-03 13:02:10 -05:00
chimp1984
7e17b181c9
Rmove short cut info for removed key handlers 2020-09-03 12:20:22 -05:00
chimp1984
ab2ac1712a
Add dontShowAgain button in osxKeyLoggerWarning window 2020-09-03 18:00:46 +02:00
chimp1984
341c5193ce
Add dontShowAgain button in osxKeyLoggerWarning window 2020-09-03 10:54:43 -05:00
Christoph Atteneder
ca88bc9b4f
Bump version number for v1.3.8 2020-09-03 17:34:34 +02:00
chimp1984
b3d48deb39
Add getShowAccountUpdatesNotification which got deleted unintentionally
at merge.

We keep daoPresentation and accountPresentation support even it is
not used atm. But if we add a new feature and add a badge again it
will be needed.
2020-09-03 10:26:51 -05:00
Christoph Atteneder
77c7629478
Merge branch 'master' of github.com:bisq-network/bisq into add-xmr-tx-key-service-3
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/MainView.java
#	desktop/src/main/java/bisq/desktop/main/MainViewModel.java
2020-09-03 17:10:05 +02:00
Christoph Atteneder
3df94288b5
Merge pull request #4464 from chimp1984/show-popup-for-osx-key-logger-warning
Show popup about key-logger warning if OSX version is >= 10.14
2020-09-03 16:49:58 +02:00
Christoph Atteneder
5812103579
Merge pull request #4467 from chimp1984/remove-double-username-tf-in-revolut
Fix wrong label for account name when displaying revolut account
2020-09-03 16:48:58 +02:00
chimp1984
e496637b4b
Remove NewTradeProtocolLaunchWindow and badges for dao and account
Those have been added for 1.2 and are not new anymore.
2020-09-02 22:44:49 -05:00
chimp1984
59725f8a5f
Fix wrong label for account name when displaying revolut account 2020-09-02 22:10:03 -05:00
chimp1984
b17ee93b6f
Add listeners for filter change for shutdown all requests and
disable settings UI if auto-conf is disabled in filter.
2020-09-02 21:27:13 -05:00
chimp1984
842eeebe56
Show popup about key-logger warning if OSX version is >= 10.14
Tell user about the issue and instruct him how to change OS settings.
2020-09-02 10:26:33 -05:00
sqrrm
604dabbb46
Merge pull request #4461 from ghubstan/1-singleton-coreapi
Make CoreApi a singleton
2020-09-02 14:44:23 +02:00
Christoph Atteneder
095c8b5bdb
Merge pull request #4415 from sqrrm/dev-css
Add option to use different css for dev mode
2020-09-02 14:20:57 +02:00
Christoph Atteneder
a691eed223
Merge pull request #4455 from sqrrm/simplify-witness-signing
Simplify witness signing
2020-09-02 14:19:46 +02:00
chimp1984
a9e61e409e
Replace ObjectProperty<AssetTxProofResult> with IntegerProperty
// ObjectProperty with AssetTxProofResult does not notify changeListeners. Probably because AssetTxProofResult is
// an enum and enum does not support EqualsAndHashCode. Alternatively we could add a addListener and removeListener
// method and a listener interface, but the IntegerProperty seems to be less boilerplate.
2020-09-02 00:25:35 -05:00
chimp1984
a8968da23f
Add listener on autoConfirmSettings changes and terminate all services
if feature got disabled in setting.
2020-09-02 00:00:23 -05:00
chimp1984
320179f5ec
Improve handling of invalid/empty tx hash/tx key 2020-09-01 22:29:17 -05:00
chimp1984
7240bd62d1
Read numRequiredConfirmations from autoConfirmSettings just in time.
This allows the user to change required confirmation and it has impact
on open requests. Will be read at parsing the result.

Changed also the text field to not listen on text change but on focus
out so that the values are only updated once the user has left the
field and the value is valid. Otherwise small numbers like 1 might be
written during typing. The other values are only read at request start
and changes will have no impact on already started requests.

Also applies previous value in case the user added an invalid value at
focus out.

- Made display text shorter and added a tooltip.
- Allow very high numbers in devmode as max conf value
2020-09-01 21:22:16 -05:00
chimp1984
7c0d24c567
Refactoring: Rename package
bisq.core.trade.autoconf to bisq.core.trade.txproof
2020-09-01 19:56:48 -05:00
chimp1984
039860935d
Merge master
- fix tests
2020-09-01 19:53:23 -05:00
chimp1984
28c8150b6b
Refactoring
This is another larger refactoring, sorry ;-)

But the structure was just not correct before. We had handled multiple
trades with multiple results and that is error prone. Now each class
has much more clear responsibilities. Also the result enums are not
changes so that they are better separated between result based and
service bases states.

All different states are still hard to test. We should set up some mock
service to simulate confirmations counting up and error scenarios.
2020-09-01 19:10:43 -05:00
sqrrm
6e77ef08f0
Fix legit codacy complaints 2020-09-02 00:44:19 +02:00
sqrrm
f0acec0cb1
Add option to use different color header in dev mode
This is to help differentiate dev instances and live ones.
This can help devs avoiding silly mistakes.
2020-09-01 23:03:22 +02:00
chimp1984
512f1a5972
Refactor AutoConfirmSettings handling in preferences
- Do not use immutability for AutoConfirmSettings as it makes setting
values cumbersome.

- Add btc validator for trade limit

- Make AutoConfirmSettings an optional and add find method by currency
code to be better prepared when used for other coins.

- Add static getDefaultForXmr to AutoConfirmSettings

- Move listener creation to init method
2020-09-01 16:00:02 -05:00
Christoph Atteneder
7da3663e1d
Merge pull request #4457 from chimp1984/add-USDT-variants
Add Tether (ERC20, Omni and Liquid)
2020-09-01 20:04:57 +02:00
sqrrm
5b1d9cb759
Merge pull request #4453 from chimp1984/add-username-to-revolut
Add support for user name for Revolut accounts
2020-09-01 19:52:40 +02:00
sqrrm
7830dbf4e4
Merge pull request #4460 from chimp1984/refactor-filter
Refactor filter
2020-09-01 19:48:38 +02:00
ghubstan
804adf08a3
Remove commented code from BisqAppMain
Also fixed line length of a comment, and removed two extra white lines.
2020-09-01 11:03:18 -03:00
sqrrm
43ad831916
Merge pull request #4451 from chimp1984/add-check-for-option-trade
Add check for option trade
2020-09-01 11:12:59 +02:00
chimp1984
d36306a73c
More refactoring.... 2020-09-01 00:56:54 -05:00
chimp1984
4323b417b1
Adjust to codacy complaints
codacy does not like raw Exceptions ;-(

- Remove unused method
2020-08-31 19:36:19 -05:00
chimp1984
86999e52d1
- Remove isPublicKeyInList check at remove as its irrelevant (dev could
add his key anyway to src code)
- Fix wrong logs
- Remove duplicated line
2020-08-31 17:13:09 -05:00
chimp1984
8bf75b5f45
- Filter out prices with code "NON_EXISTING_SYMBOL"
- Add comments
2020-08-31 15:19:31 -05:00
chimp1984
b409c8add5
Merge branch 'master_upstream' into add-tether-pinguin 2020-08-31 14:17:59 -05:00
chimp1984
4a2f7dc92c
Rename bannedSignerPubKeys to bannedAccountWitnessSignerPubKeys
We use several signing keys, so better to make it more explicit.
protobuf entry is not changed to not risk issues (i guess it would
work renaming it)
2020-08-31 13:01:44 -05:00
chimp1984
9a142be86e
Add bannedPrivilegedDevPubKeys field 2020-08-31 12:51:01 -05:00
chimp1984
cc20a3b6c7
- Add support for multiple pubKeys
- Add more validation
- Add SignerPubKeyAsHex to filter
- Refactor add/remove filter code
2020-08-31 12:33:45 -05:00
sqrrm
4d32da7289
Merge pull request #4420 from stejbac/fix-blank-offer-book-price-cells
Fix intermittent blank price cells in offer book view
2020-08-31 19:02:19 +02:00
chimp1984
5555c43ea9
Merge branch 'master_upstream' into refactor-filter 2020-08-31 10:15:42 -05:00
chimp1984
591011e516
Add comment 2020-08-31 09:51:53 -05:00
sqrrm
944825e24b
Close other tab when opening signing tab 2020-08-31 16:18:03 +02:00
sqrrm
51908fcb2a
Use mediation cases to popupate arbitrator signing in dev mode 2020-08-31 15:26:44 +02:00
sqrrm
91e30de637
Make a separate signing tab
Helps dev work to have a separate signing area without need for legacy
arbitrator registration. Legacy arbitrator key is still needed to sign
accounts. Account information is also needed.
2020-08-31 14:40:57 +02:00
chimp1984
e9e7b489be
Various refactorings, bug fixes and improvements.
Sorry for the messy commit... its late ;-)
2020-08-31 00:10:41 -05:00
chimp1984
4f0e574bf9
Use static field for dev test values 2020-08-30 21:38:32 -05:00
chimp1984
f8b5c30fb4
Refactor:
- Rename AutoConfirmResult to AssetTxProofResult
- Update protobuf entry
2020-08-30 19:35:26 -05:00
chimp1984
2a887e1f01
Improve SetXmrTxKeyWindow 2020-08-30 17:01:21 -05:00
chimp1984
2fb625642a
Refactoring: Rename getTextStatus to getStatusAsDisplayString 2020-08-30 16:45:46 -05:00
chimp1984
595c968f2d
Various small cleanups... 2020-08-30 16:44:45 -05:00
chimp1984
e5aee1ca07
No functionality has been changed by that refactoring, just moved
classes and renamed package and adjusted access modifiers.
2020-08-30 15:50:15 -05:00
chimp1984
ed5078c0f1
Add abstract AutoConfirmResult class to get better support if we want
to add auto confirm for other currencies in the future. The generic part
is only used where we would have issues with backward compatibility like
in the protobuf objects. Most of the current classes are kept XMR
specific and could be generalized once we add other assets, but that
would be an internal refactoring without breaking any network or
storage data. I think it would be premature to go further here as we
don't know the details of other use cases. I added the methods used from
clients to AutoConfirmResult, not sure if the API is well defined by
that, but as said that could become subject of a future refactoring once
another auto confirm feature gets added. Goal of that refactoring was
to avoid that we need more fields for trade and the the UI would have to
deal with lots of switch cases based on currency.

Sorry that is a larger commit, would have been hard to break up...
2020-08-30 15:45:47 -05:00
chimp1984
6c60e1739d
Add support for user name for Revolut accounts
If a user has an existing account with phone number or email as
account ID we show a popup at startup where we require that he sets the
user name. This popup has no close button so he is forced to enter a
value. If there are multiple account multiple popups will be shown.

To not break signed accounts we keep accountId as internal id used for signing.
Old accounts get a popup to add the new required field userName but accountId is
left unchanged. Newly created accounts fill accountId with the value of userName.
In the UI we only use userName.

Input validation does only check for length (5-100 chars). Not sure what
are the requirements at Revolut. Can be changes easily if anyone gets
the specs.
2020-08-30 12:58:31 -05:00
chimp1984
5501822128
Merge branch 'master_upstream' into xmr 2020-08-29 23:03:13 -05:00
chimp1984
ebecd20949
Merge branch 'master_upstream' into add-check-for-option-trade 2020-08-29 20:00:07 -05:00
chimp1984
bedcd9b10e
Add option trade detection message to result message if case was
marked as option trade.

Add repeated calls to price provider it no data available (can happen at
startup).

Show reason in dispute summary.
2020-08-29 19:58:51 -05:00
chimp1984
01482fb8e6
Refactoring
Separate validation from setting key
2020-08-29 13:21:19 -05:00
Christoph Atteneder
835c511cf5
Merge pull request #4448 from wiz/revert-4398-header-tweaks
Revert "Header and other visual tweaks"
2020-08-29 20:01:15 +02:00
chimp1984
7a4fc3d6b7
Merge branch 'master_upstream' into refactor-filter 2020-08-29 12:56:29 -05:00
chimp1984
8253957cb2
Fix null pointer in case if selectedMarketPrice is null 2020-08-29 12:19:36 -05:00
sqrrm
38f9d251ae
Merge pull request #4435 from chimp1984/improve-network-statistics
Add more detailed network statistics
2020-08-29 19:01:43 +02:00
jmacxx
cccc6de595
Default to clearnet XMR proof providers when in dev mode 2020-08-29 10:21:03 -05:00
wiz
997a2a5e55
Revert "Header and other visual tweaks" 2020-08-29 18:12:23 +09:00
chimp1984
f52beadc47
Improve dispute views
Add re-open dispute button to mediation views (not refund agent as
there it might be dangerous if he would close 2 times and pay out twice.

If a dispute was reopened and a message was sent afterwards the receiver
will auto-reopen the dispute as well and the UI shows the number
indicator.

Add search field to traders dispute views.

Fix DisputeMsgEvents which was handling only legacy arbitration cases
and now uses mediation and refund agent. Used to update state in case
the UI is not selected.

Add "send private notification" button for mediators and refund agents.

Add report button for mediators and refund agents
Generates report text of all disputes with more detailed information
which should be used for reporting.

Add "Dump text of all disputes" button for getting a text representation
of all disputes including the messages for mediators and refund agents.
This is not used for report but might be useful for search, etc.

Do not show legacy arbitration tabs (for traders as well for
arbitrators) if no cases available.

Add 5 new enum entries for Reason for dispute:
OPTION_TRADE
SELLER_NOT_RESPONDING
WRONG_SENDER_ACCOUNT,
TRADE_ALREADY_SETTLED,
PEER_WAS_LATE

Hide NO_REPLY, SCAM and PROTOCOL_VIOLATION in UI (still in code if we still
need it and re-activate them).
2020-08-28 22:15:11 -05:00
chimp1984
97ec45c173
Merge branch 'reenable-chat-on-dispute-reopen' into add-report-button-for-dispute-views 2020-08-28 14:23:36 -05:00
chimp1984
fa9f799186
Improve dispute views
Add report button:
Generates report text of all disputes with more detailed information
which should be used for reporting.

Add "Dump text of all disputes" button for getting a text representation
of all disputes including the messages. This is not used for report but
might be useful for search, etc.

Do not show legacy arbitration tabs (for traders as well for
arbitrators) if no cases available.

Add 3 new enum entries for Reason for dispute:
OPTION_TRADE
SELLER_NOT_RESPONDING
WRONG_SENDER_ACCOUNT
Hide NO_REPLY and PROTOCOL_VIOLATION in UI (still in code if we still
need it and re-activate them)
2020-08-28 13:48:28 -05:00
jmacxx
e3bf0735f7
Persist the auto confirm state of Trade object
Auto confirmed trades will be indicated as such on Trade details.
2020-08-28 12:13:50 -05:00
chimp1984
2f291a6acb
Cleanup Filter value object. Remove nullables from old versions. Keep signatureAsBase64 nullable as it is set null at creation time and set later after signing. We use filter protobuf data as input for signature so we have to set signature to null and apply the signature afterwards. To keep object immutable we clone it with static clone method. Similar we handle signature verification. We clone the filter with a null value for the signature and do the validation with that cloned object.
Use now the complete object data for signature creation. We use the protobuf data for creating the signature with DER encoding. We restict ourself more regarding backward compatibility but I think it is not a big problem.
If a new field is added to Filter and deployed the maintainer needs to publishes a new filter object. By using the new version he cannot remove the old filter from the network as the protobuf data is different and sig verification on the P2P datastorage level will fail. This is intended to keep the old filter alive for some time to support not updated users. We do not remove invalid filters anymore from our local storage to enable seed nodes to support also old filter objects.
For not updated users the new filter will fail at sig verification because the protobuf data is different. So they ignore the new filter and still use the old filter. For updated users the old filter will fail and the new filter is accepted. As it has a newer date it would also replace the old filter anyway. If the maintainer wants to delete the old filter from the network he can use the old app version and remove the filter. It is recommended to keep a copy of the data directory before the update so that the removal of the older filter is possible.

Refacorings:
- Rename isPeersPaymentAccountDataAreBanned to arePeersPaymentAccountDataBanned
- Rename isSignerPubKeyBanned to isWitnessSignerPubKeyBanned
2020-08-27 21:23:02 -05:00
jmacxx
967e0538d6
Rename XmrProofResult to AutoConfirmResult 2020-08-27 21:15:24 -05:00
chimp1984
8c619530a4
Remove display of data from last second 2020-08-27 15:43:13 -05:00
Jelle Besseling
61d730abf9
Add Tether token support via ERC20 and Omni 2020-08-27 11:55:23 +02:00
jmacxx
c6f1e5274f
Merge remote-tracking branch 'origin/master' into add-xmr-tx-key-service-2 2020-08-26 22:17:58 -05:00
jmacxx
ca8f53c2c2
Implement XMR tx proof autoconfirm feature
* XMR seller is prompted to enter txId and viewkey.
* looks up the XMR transaction to verify that it has confirmed
* user can run their own validating service, or use the ones provided
* 100% agreement of all chosen services is necessary for confirmation
* feature can be configured and turned on/off from settings screen
* feature can be globally turned off via admin filter
* two code review passes from chimp1984
* one text review from m52go
2020-08-26 21:51:14 -05:00
sqrrm
2cc0e4134b
Reload dispute layout on reopen
When a dispute is reopened it now shows the chat text entry field.
2020-08-26 13:40:49 +02:00
chimp1984
5a167d618e
Add more detailed network statistics
- Show in network settings UI data sent/received, total messages
sent/received, msg/sec and messages of last second
- Log every minute statistics
2020-08-25 21:39:23 -05:00
Christoph Atteneder
30eeb6ec61
Merge pull request #4398 from pedromvpg/header-tweaks
Header and other visual tweaks
2020-08-24 20:46:47 +02:00
pedromvpg
636e20f1c6
Shorten line length 2020-08-24 13:56:52 -04:00
sqrrm
b512e31553
Merge pull request #4409 from chimp1984/optimize-AssetService
Optimize AssetService
2020-08-22 14:56:33 +02:00
chimp1984
67312a5b66
Update desktop/src/main/java/bisq/desktop/main/dao/burnbsq/assetfee/AssetFeeView.java
Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
2020-08-21 20:58:12 -05:00
Steven Barclay
23688db18c
Fix intermittent blank price cells in offer book view
Replace faulty cell update logic, which uses a ChangeListener<Scene>,
added in July 2017 (#73f21399) to keep the price column in the offer
book table up to date, as it appears to occasionally result in blank
cells. Also it seems only the prices, not the volumes, were being kept
in sync with the market price feed.

Make the price and volume cells stateless and keep them in sync with the
market feed by adding it as a dependency of each OfferBookListItem
Observable generated by the cell value factory, instead of directly
attaching listeners to it. In this way, TableCell::updateItem will be
called by the framework whenever the price/volume needs updating.

(This does have the disadvantage that if the price feed is unavailable,
causing Offer::getPrice to return null, then the cells will reflect that
immediately instead of showing any old, stale values, but that is
necessary for the UI to behave consistently anyway.)
2020-08-20 18:40:13 +08:00
Steven Barclay
894d2be5db
Rename misleading OfferBookChartViewModel method name
s/isAnyPricePresent/isAnyPriceAbsent/g

Also use a lambda to shorten 'currenciesUpdatedListener' slightly.
2020-08-20 17:51:57 +08:00
sqrrm
6ed770491c
Merge pull request #4406 from cd2357/xchange-integration-gui-label-adjustments
Update GUI labels to reflect multiple rate providers
2020-08-20 11:21:44 +02:00
Christoph Atteneder
fa000ddc45
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.3.7
# Conflicts:
#	core/src/main/java/bisq/core/provider/ProvidersRepository.java
2020-08-19 13:04:26 +02:00
chimp1984
a9ce9f423e
Bow to Codacy robot
Private constructors are OK if injection is used.
Empty methods are also ok if requires for interface...
2020-08-12 16:25:56 -05:00
chimp1984
55b070f955
Optimize AssetService
Previous version had several performance issues:
- We kept tradeStatistics in a lookup map in memory (about 40 MB)
- We built up the StatefulAssets even if it was not used/needed.
Building the StatefulAssets was an expensive call.
- AssetTradeActivityCheck was only used for printing out statistics and
called on startup causing performance cost.

Optimized version:
- We call build the StatefulAssets only on demand (user activates
view). Method call takes now 22 ms.
- We create a optimized lookup map with a tuple of the data we need
and keep it as local variable.
- We removed AssetTradeActivityCheck.

Thanks to the profiling reporting from:
https://github.com/bisq-network/proposals/issues/199
2020-08-12 16:11:54 -05:00
cd2357
ef5b80440c
Update exchange rate info in About view
Update field describing the source of the shown exchange rates,
indicating that the Bisq Price Index is used.
2020-08-09 15:28:09 +02:00
cd2357
2ddb2c2ca2
Update top-right tooltip timestamp
Update timestamp shown in top-right tooltip, to indicate the point in
time when that specific exchange rate was retrieved (from an Exchange,
if only one exchange supported for that currency) or when it was
calculated (by the pricenode, based on inputs from multiple exchanges).
2020-08-09 13:52:57 +02:00
cd2357
f534939b35
Update labels to indicate Bisq Price Index
Update top-right status box and tooltip labels to indicate the price is
based on the Bisq Price Index.
2020-08-09 13:13:10 +02:00
cd2357
f73f4174dd
Rename method
Rename method to remove reference to the BA provider.
2020-08-08 21:04:17 +02:00
cd2357
b8a76b0e92
Update top-right bar references to price source
Update the displayed text, as well as the tooltip, of the price box in
the top right bar. It now indicates that the price data is provided by
Bisq pricenodes (for for fiat, as well as for alts).
2020-08-08 19:59:34 +02:00
chimp1984
bc0284ba0b
Move merit and stake column to the right
For better usability I moved the column next to the result.
2020-08-06 11:42:57 -05:00
pedromvpg
5a16db8440
Header and other visual tweaks 2020-08-04 02:03:13 -04:00
Christoph Atteneder
a2302b3e0b
Only show signing state if signing for payment method is required 2020-08-03 12:03:52 +02:00
Christoph Atteneder
7475f17207
Bump version number for v1.3.7 2020-07-30 10:19:34 +02:00
Christoph Atteneder
66d3589910
Merge pull request #4383 from jmacxx/fix_low_bsq_offer
Maintain floor amount of 5.46 BSQ to prevent dust errors
2020-07-29 11:00:35 +02:00
jmacxx
2d5ab2a8d7
Maintain floor amount of 5.46 BSQ to prevent dust errors
When an offer is made using BSQ for trade fee, the BSQ amount
is burnt by doing a send-to-self.  However if the BSQ change
is below the bitcoin dust limit this causes an error.  We
fix this by maintaining a floor amount of 5.46 BSQ.

Fixes #4372
2020-07-28 09:50:54 -05:00
Christoph Atteneder
34f26b1bb4
Merge pull request #4379 from jmacxx/fix_popups
Warn that seeds are not a data backup
2020-07-27 20:36:18 +02:00
jmacxx
bbc328b70c
Warn that seeds are not a data backup
Display a mandatory warning when the seed backup/restore
screen is shown.  The warning informs the user that a data
directory backup is necessary to restore the full state of
bisq, not just the wallet seed words.

Fixes #4375
2020-07-27 09:17:20 -05:00
chimp1984
43e4809d81
Add basic support for validation for XMR transfer with tx key
Main part missing is the XMR proof service request processing. I did not
get the service compiled yet, so could not test response data and error
conditions.

Further it is missing a "news badge" and popup to guide the user to the
new feature.

Only basic dev tested so far.

Anyone welcome to pick the project up from here as I might not have
time soon to continue.
2020-07-26 18:55:07 -05:00
pedromvpg
a6f9015db9
Replace tor icon 2020-07-26 17:57:46 -04:00
Christoph Atteneder
9ab39c2a8b
Merge pull request #4362 from jmacxx/fix_altcoins_instant_acc
Fix altcoin instant account creation / deletion issues
2020-07-23 16:10:19 +02:00
sqrrm
1ea244e4b5
Merge pull request #4368 from bisq-network/release/v1.3.6
Release/v1.3.6
2020-07-20 11:04:02 +02:00
Christoph Atteneder
93fb7630d6
Revert to SNAPSHOT version 2020-07-13 21:39:42 +02:00
jmacxx
4364d55b0f
Fix delete functionality for altcoin instant accounts
Altcoin instant accounts could not be removed using the delete button
because the account retrieved for deletion did not match any of the
ones known to bisq.  This was due to the timestamp on the
record being erroneously updated to the current time.

Fixes 4364
2020-07-11 20:55:45 -05:00
jmacxx
25c8c74bbc
Fix altcoin instant account creation issue
Upon creating an altcoin instant account the limitations field
should reflect that the trade duration is 1 hour.  This was not
working.  The fix is to update that field dynamically based on the
setting of the 'Trade instant' checkbox.

Fixes #4361
2020-07-08 22:37:37 -05:00
Christoph Atteneder
4e858f5698
Merge pull request #4358 from jmacxx/fix_transactions_csv
Fix nullpointer exception in transactions csv report
2020-07-08 14:33:07 +02:00
Christoph Atteneder
618e797bc7
Merge pull request #4360 from jmacxx/fix_popups
Fix popup window ordering problem
2020-07-08 14:31:21 +02:00
jmacxx
0c9b4a142c
Fix popup window ordering problem
There is a race condition in PopupManager when with a stack of 2 popups,
the top popup is being replaced by another top-level popup. The base
layer popup ends up on top of the z-order, obscuring the correct one.

The race condition in PopupManager was within the onHidden() method
which invokes the next window in the queue.  The call to displayNext()
needs to be asynchronous so that a newer popup can take precedence.

Fixes #4293
2020-07-07 16:39:42 -05:00
pedromvpg
4b2bed3d65
Increase contrast in date picker colors 2020-07-07 16:13:31 +02:00
jmacxx
3f8a3c78f3
Fix nullpointer exception in transactions CSV report
1. number of columns in header was incorrect
2. memo field can be null, needed to be converted to empty string

Fixes #4333
2020-07-07 09:07:40 -05:00
pedromvpg
fd535801ba
Increase contrast in date picker colors 2020-07-07 03:17:05 +09:00
Christoph Atteneder
7613912c75
Bump version number for v1.3.6 2020-07-04 21:02:29 +02:00
Christoph Atteneder
716947a799
Merge pull request #4334 from wiz/dark-theme-v2
Update Dark Theme to V2 with new CSS and images by Pedro
2020-07-04 21:00:06 +02:00
Christoph Atteneder
cfc3252f7b
Merge pull request #4347 from sqrrm/deposit-improvements
Deposit improvements
2020-07-03 21:20:27 +02:00
Christoph Atteneder
17fbc8d22a
Add comparator for sorting deposits 2020-07-03 21:10:42 +02:00
Christoph Atteneder
ad374bd6ec
Improve layout to prevent truncation in most common use-cases 2020-07-03 19:08:00 +02:00
sqrrm
45a9803c9f
Merge pull request #4316 from petrhejna/fix-darkmode
Fix darkmode color of warning-box
2020-07-03 18:32:58 +02:00
sqrrm
71ff0712a7
Signer send SignedWitness to peer after signing 2020-07-03 18:14:10 +02:00
sqrrm
9a8622c410
Fix codacy comments 2020-07-03 17:35:54 +02:00
sqrrm
fabd592938
Merge remote-tracking branch 'origin/master' into HEAD 2020-07-03 16:58:13 +02:00
sqrrm
ac2f37f968
Merge pull request #4345 from jmacxx/fix_offer_fee_changed
Create order using the same tx fee specified at funding
2020-07-03 13:20:18 +02:00
sqrrm
3630abdeb8
Improve MovingAverage
Don't include outliers (20% deviation from moving average) in moving
average calculation. It's quite likely that low liquidity markets or
markets with large spreads can't calculate deposit suggestion and will
then suggest deposit from preferences.

Added test for moving average class
2020-07-02 23:03:26 +02:00
Christoph Atteneder
149cf1381a
Merge pull request #4346 from jmacxx/fix_regex_tor3
Fix tor v3 address validation
2020-07-02 14:14:09 +02:00
sqrrm
594b1a4706
Merge pull request #4311 from jmacxx/higher_precision_prices
Increase price precision in Offer Book chart (altcoins)
2020-07-01 12:06:08 +02:00
sqrrm
358032b659
Fix broken tests 2020-07-01 00:01:17 +02:00
sqrrm
2a8c25e33a
Fix deposit column layout 2020-06-30 19:04:26 +02:00
sqrrm
97f76069f3
Update security deposit info text at offer creation 2020-06-30 18:09:17 +02:00
sqrrm
106c656993
Use same security deposit for buyer and seller 2020-06-30 18:01:50 +02:00
jmacxx
366390a468
Fix tor v3 address validation
The regex validation for addresses was not accepting tor v3 format.
This patch allows tor v3 addresses which are always 56 chars in length
(whereas tor v2 addresses are always 16 chars in length).
2020-06-30 08:47:45 -05:00
sqrrm
190867e383
Suggest security deposit depending on previous volatility 2020-06-30 14:45:51 +02:00
jmacxx
f3fa5ad3a1
Create order using the same tx fee specified at funding
This fixes an issue whereby updates from the fee API were causing
Insufficient Funds exception. Since the wallet is funded with a
specific amount (deposit+trade fee+txFee), that same amount has
to be used when the user confirms offer creation (which could be
some time later).

Fixes #4227
Fixes #4278
Fixes #4336
Fixes #4327
2020-06-29 13:43:06 -05:00
sqrrm
3121f6f2fe
Add deposit column to OfferBookView 2020-06-29 19:09:50 +02:00
wiz
82baa86b16
Dark Theme V2 with new CSS and images by Pedro
* Increase overall darkness
* Clean up tables and increase background contrasts
* Add background color to disabled buttons
* Remove large padding on read only fields to fix Create Offer scroll
* Darken color of dark theme grey speech bubble
* Remove negative padding from toggle switches
* Add background to password field
* Closes #4121

Author: pedromvpg <pedro.g@pvxg.net>
Co-Authored-By: wiz <j@wiz.biz>
2020-06-29 17:09:09 +09:00
Christoph Atteneder
d810387b41
Merge pull request #4305 from sqrrm/sign-same-name
Sign same name
2020-06-25 14:07:24 +02:00
Christoph Atteneder
38f6af26ee
Merge pull request #4294 from sqrrm/add-multiple-fee-receivers
Add multiple fee receivers
2020-06-25 13:23:53 +02:00
sqrrm
b87ba9e5ca
Merge pull request #4331 from bisq-network/release/v1.3.5
Release/v1.3.5
2020-06-23 15:54:28 +02:00
Christoph Atteneder
d2fdc79c26
Revert to SNAPSHOT version 2020-06-23 15:32:57 +02:00
Petr Hejna
4fa95679a3
Fix darkmode color of warkining-box 2020-06-16 22:12:41 +02:00
jmacxx
37331cde31
Increase price precision in Offer Book chart (altcoins)
In the Offer Book Chart, altcoins were displayed with prices
having only 3 decimal places of precision.  This resulted in
not being able to see any meaningful prices across the
x-axis because they were all the same, e.g. ETH=0.025
Instead it should show 8 digits of precision for altcoins.
So for example ETH=0.02456914
Change the rule from if price begins 0.000 then display
higher precision, to if price begins 0.0 then display higher
precision.

Fixes #4251
2020-06-15 21:59:21 -05:00
sqrrm
bdb7807131
Sign accounts with same name
If the user has an account that can sign, it signs other accounts with
the same holder name when they are added, or on startup if one of
several accounts with the same name got signer rights.
2020-06-14 20:08:22 +02:00
sqrrm
e338d84d93
Merge pull request #4298 from petrhejna/input-validation-for-voting-stake
Add validation for max voting-stake
2020-06-14 17:37:30 +02:00
Petr Hejna
1c8b062bf2
Add all available Revolut currencies 2020-06-14 16:47:07 +02:00
Petr Hejna
eb2caff9f4
Add validation for max voting-stake 2020-06-13 02:43:55 +02:00
chimp1984
77362ff642
Add list to filter to set btc fee receiver addresses 2020-06-11 19:00:05 +02:00
Christoph Atteneder
289e013500
Update copyright notice 2020-06-11 13:29:23 +02:00
Christoph Atteneder
8bb3386340
apply fix for #2798 only in edit offer view 2020-06-11 10:52:35 +02:00
Christoph Atteneder
92ee247fa7
Bump version number for v1.3.5 release 2020-06-06 08:44:41 +02:00
jmacxx
4c7456e1cb
Warning when restoring wallet seedwords without date
When the user restores a BIP39 wallet from seed words there is
an optional 'wallet date' field.  If the user does not enter that
field the chain scan will be a lengthy process.
Issue a popup message to the user in this case, informing them
that the synch will take a long time and can be reduced by either
specifying the wallet creation date or the date when Bisq introduced
BIP39 seed words.

Fixes #3766
2020-06-04 17:39:24 -05:00
Christoph Atteneder
04872e03ee
Merge pull request #4281 from sqrrm/bond-comparator
Add proper comparators to BondsView
2020-06-04 13:51:44 +02:00
Christoph Atteneder
4a832b4c59
Merge pull request #4236 from sqrrm/sign-pob-layout
Improve proof of burn layout
2020-06-04 13:44:02 +02:00
sqrrm
06d6953a22
Merge pull request #4230 from cd2357/table-rows-alternate-colors
More readable tables and lists: Alternate row background colors
2020-06-04 13:12:09 +02:00
sqrrm
bd39f05859
Merge pull request #4195 from jmacxx/fix_getsupport_traderchat
Fix Trader Chat row selection and unread message count
2020-06-04 13:09:48 +02:00
sqrrm
1a62f6b8b8
Merge pull request #4193 from jmacxx/add_paymentmethod_openoffers
Display "Payment Method" column in Open Offers view
2020-06-04 12:32:06 +02:00
sqrrm
50042fa249
Add proper comparators to BondsView 2020-06-03 16:48:52 +02:00
sqrrm
ca9665fa3c
Sign unsigned keys
Legacy arbitrator can sign unsigned signed witness signer pubkeys
To sign, from legacy arbitrator support, ctrl+O
2020-06-03 15:44:04 +02:00
sqrrm
752eb49b4a
Log unique unsigned signer pubkeys 2020-06-01 15:46:25 +02:00
sqrrm
0dc769bf9b
Arbitrator signing of AccountAgeWitness with known pubkey
Improve debug logging. Lower level from warning to info
Fix broken test
Add example code to clean out unnecessary SignedWitnesses
2020-05-31 15:08:41 +02:00
sqrrm
7bd5969dcf
Refactor accountagewitnessservice log helpers
Better filter for root signedwitnesses

Add debug keyboard shortcuts:
- ctrl+shift+L -> logSignedWitnesses
- ctrl+shift+S -> logSigners
2020-05-31 15:08:41 +02:00
sqrrm
fba329de9a
Arbitrator sign single account age witness 2020-05-31 15:08:41 +02:00
sqrrm
4a5d8289b3
Merge pull request #4263 from petrhejna/fix-open-when-already-openned-tab
Opening a take/create offers closes previously openned tab
2020-05-25 16:28:38 +02:00
sqrrm
666571347b
Merge pull request #4259 from dmos62/offerbook-secondary-sort-order-refactor
Secondary sort order for offer book (rewrite)
2020-05-25 16:04:46 +02:00
sqrrm
07fc648629
Merge pull request #4253 from jmacxx/fix_validation_address_fields
Fix address validation for whitespace after comma
2020-05-25 15:58:26 +02:00
sqrrm
799d48e74a
Merge pull request #4256 from jmacxx/fix_trade_fees_export
Display correct trade and tx fees in CSV export
2020-05-25 15:46:53 +02:00
Dominykas Mostauskis
3dc13b6eff
Fix reversed ordering in altcoin market 2020-05-25 11:37:30 +02:00
sqrrm
8bffcd62be
Merge pull request #4229 from petrhejna/1387-add-memo-field
Add memo field to withdrawal transaction
2020-05-19 17:05:46 +02:00
Petr Hejna
4c8e89eaa7
Opening a take/create offers closes previously openned tab 2020-05-16 19:09:51 +02:00
sqrrm
2bd4f1a709
Merge pull request #4258 from jmacxx/fix_stale_qrcode_display
Prevent transient negative missingCoin amount sent to QRCode display
2020-05-16 12:52:55 +02:00
Petr Hejna
5352d9b44e
Fix lcode style 2020-05-15 23:17:46 +02:00
Petr Hejna
335290e464
Revert uneedech whilechars changes 2020-05-15 23:16:18 +02:00
Petr Hejna
e27df8f16a
Remove unnecesary protobuf Transaction (memo is alreay in bitcoinj Transaction object) 2020-05-15 23:16:18 +02:00
Petr Hejna
8d5f42f122
Add memo field to withdrawal transaction
- "Memo" field is modeled as property of the new object Transaction which is stored in persitant storage.
- Transaction object is modeled in a way that allows extension in the furure for more persisted attributes.
2020-05-15 23:16:17 +02:00
Dominykas Mostauskis
2b797dafed
Secondary sort order for offer book
A rewrite of @freimair's PR
https://github.com/bisq-network/bisq/pull/4168.

Adds a secondary sort order of offers in market offer book by offer
amount that goes from high to low. Also, refactors-away overcomplicated
previous implementation of primary sort.

Co-authored-by: Florian Reimair <office@florianreimair.at>
Co-authored-by: cd2357 <15956136+cd2357@users.noreply.github.com>
2020-05-15 19:15:17 +02:00
jmacxx
d516ba4a59
Display payment method column in Open Offers view
Adjust widths of existing columns to fit in a column for payment method.
Fixes #3902
Fixes #4125
2020-05-15 09:06:48 -05:00
jmacxx
69e46b7025
Prevent transient negative missingCoin amount sent to QRCode display
In bisq-network/bisq/pull/4223 a fix was made to the QRCode display
of amount needed to fund an offer.  This accidentally introduced a
bug whereby if the user overpaid the funding, then the QRCode would
throw an error `Coin must be positive`.  This is due to a race
condition in OfferDataModel which was setting a property first
to a negative amount before checking if it was negative and if so
then setting it to zero.  The fix here is to check for negative
before setting the property so that any listeners do not get an
event (negative) followed by another event (zero).
2020-05-14 20:24:17 -05:00
jmacxx
f2f519ada6
Display correct trade and tx fees in CSV export
When exporting trade history to CSV, users would expect to see
their own transaction and trade fees listed.  Maker fees are
stored on the Offer, Taker fees are stored on the Trade object.
The code was not properly checking whether the user was the
Offer Maker or Taker, and as such the report was always displaying
the Taker information for Tx and Trade fee.  Therefore any trades
where the user was Maker showed the wrong fees.

The column title `Maker Fee` is incorrect and misleading since
the user doing the export is not necessarily the Maker.  We
rename this column to `Trade Fee` to indicate that it is the fee
the user paid for trading regardless of Maker/Taker status.

Fixes #4207
2020-05-12 15:17:10 -05:00
sqrrm
5e5d7d1577
Merge pull request #4225 from cd2357/show-min-max-orderbook
OfferBook: Show min-max range for amount and volume
2020-05-12 12:54:55 +02:00
sqrrm
6d108ead2f
Merge pull request #4182 from jmacxx/fix_issue_2798
Editing an offer should not allow the BTC amount to be changed
2020-05-11 15:45:22 +02:00
sqrrm
d51c4c82e0
Merge pull request #4178 from jmacxx/fix_issue_3871
When accepting an offer do not round the BTC amount outside range
2020-05-11 15:18:47 +02:00
jmacxx
f4064dfcfb
Fix address validation for whitespace after comma
Typical comma separated values have a space after each comma
in order to make the list more human-readable.  In some areas
of bisq, comma separated lists are generated this way (see #4203),
but the validation of comma separated addresses was not accepting
spaces after commas.  This change to the regex allows optional
whitespace after comma separators.  A new test has been
added to validate the scenario of whitespace after comma.

Fixes #4203
2020-05-10 16:40:36 -05:00
sqrrm
b1f593a2d7
Merge pull request #4235 from cd2357/improve-fee-estimation
Switch to more accurate fee estimation endpoint
2020-05-05 19:04:14 +02:00
sqrrm
a76fad8f39
Improve proof of burn layout 2020-05-05 17:16:07 +02:00
cd2357
e18f0406af
Switch to more accurate fee estimation endpoint
The API endpoint for fee estimations has been changed to one that delivers more accurate fee estimations.

This is a temporary solution, until a more decentralized approach is found.

Fixes projects/issues/27
2020-05-05 17:11:54 +02:00
sqrrm
a731957aa7
Merge pull request #4223 from jmacxx/fix_stale_qrcode_display
Fix QR code display of offer funding amount
2020-05-05 16:48:55 +02:00
cd2357
c7ccc43475
More readable tables and views: Highlight table and list row on hover
The same styling as for a selected row, is applied for a hovered row.

This makes the UI more intuitive, helping users better navigate through and focus on specific rows, especially in large tables.
2020-05-03 14:15:14 +02:00
cd2357
4ba4f66527
More readable tables and views: Alternate row background colors, regardless of theme
A few CSS selectors affecting table and list row coloring were moved the dark theme stylesheet (theme-dark.css) to the common stylesheet (bisq.css).

These selectors are theme-independent, since they re-use variables defined in each theme stylesheet (like -bs-background-color). Therefore a more appropriate place for them is in the common stylesheet.

This move means that alternating row background colors are now available for all tables and lists, in all views, in both dark and light themes.
2020-05-03 14:09:11 +02:00
cd2357
34ff2d6a15
OfferBook: Show min-max range for amount and volume
The OfferBook tables now show the amount and the volume as min-max range, where appropriate.

For the offers that have no range defined, the single values are shown.

Fixes #3129
2020-05-02 16:09:56 +02:00
jmacxx
7350735606
Fix QR code display of offer funding amount
When creating an offer the small QR code displayed for funding
was off by an amount that represent the mining fees.  This was due
to the QR code being displayed simultaneously with the wallet
calulating the fee.

We fix the issue by listening to the data model `missingCoin`
value of the offer object, and updating the QR code image
appropriately.

Fixes #3666
Fixes #4194
2020-05-01 23:17:36 -05:00
cd2357
12dec2c321
BondsView: Fix sorting of numeric columns
The table in the BondsView uses string sorting by default. This results in unexpected behavior when sorting non-string columns.

This commit adds custom comparators to the numeric columns to address that.

Fixes #3231
2020-05-01 20:32:37 +02:00
Christoph Atteneder
0faff472d8
Revert to SNAPSHOT version 2020-04-30 16:30:28 +02:00
chimp1984
93e37dfca1
If a new received protectedStorageEntry is expired we do not store it
and do not broadcast.

It is unclear why we receive expired data (some are very old), but a
manipulated node might produce that and as it only removed at each
batch process running each minute to clean out expired data it still
could propagate. Is an attack vector also to flood the network with
outdated offers where the maker is likely not online.

Should fix https://github.com/bisq-network/bisq/issues/4026
2020-04-30 10:24:16 +02:00
Christoph Atteneder
64f55cb777
Bump version number for v1.3.4 2020-04-30 10:19:27 +02:00
Christoph Atteneder
df56aaddab
Bump version number for v1.3.3 2020-04-29 16:08:54 +02:00
chimp1984
f7dfef253a
Add resync from resources button
We add a second button (displayed as first) to the preferences UI for
resync from latest resources. We add a warning to the resync from
genesis as it takes very long time and causes heavy network load for
seeds.
The resync button at the stateMonitor does now a resync from resources,
not from genesis.
We add handling of the UnconfirmedBsqChangeOutputList file as well.
In Filemanager we add a check if file exists.
2020-04-29 16:06:27 +02:00
jmacxx
8475a5be09
Fix an issue whereby the unread chat message count was not cleared properly
The trader chat view can be opened either by clicking on the chat icon
of a trade in the list, or clicking on "OPEN TRADER CHAT" button for the
currently displayed trade.  In the latter case, the count of new messages
displayed on the chat icon was not cleared even though trader chat
was shown.  The solution is to move the scope of the routine that
updates trader chat message count from within the table cell handler
to the PendingTradesView class so that it can be called whenever
onChat() is invoked (i.e. when the Trader Chat screen is shown).

Clicking on the trader chat icon of a trade that is not selected
should select that row in the trade list. It does not. This causes
confusion as it gives misleading cues as to which trader you are
communicating with.
Issue a call to select the row of the button when clicked.
Fixes #4172
2020-04-25 09:00:26 -05:00
jmacxx
7551cdc73a
Editing an offer should not allow the BTC amount to be changed
When editing an offer to adjust the price the fiat amount is
recalculated to reflect the new price.  The BTC amount should
not change.  Due to a bug, sometimes the BTC amounts were
changed due to a recalculation from the fiat amount.
This PR Fixes 2798 by disabling a call to recalculate BTC and
min BTC amounts when editing.
2020-04-18 23:21:21 -05:00
jmacxx
223a1d3a6c
When accepting an offer do not round the BTC amount outside range
Fixes 3871.  The BTC amount of an offer was being adjusted up in
certain cases due to a rounding calculation from the fiat value
and price.  This would prevent some offers from being taken.

There's an existing check to ensure that the amount is not adjusted
below the minimum, here we add a check to ensure that the amount
is not adjusted higher than the maximum defined in the offer.
2020-04-17 22:05:30 -05:00
Christoph Atteneder
1105a78d51
Revert to SNAPSHOT version 2020-04-16 14:25:59 +02:00
sqrrm
6fc087c72c
Add option to allow faulty delay payout tx
Add more logging during unfail process
2020-04-13 11:38:15 +02:00
sqrrm
016a552836
Allow completion of trades with amount mismatch delayed tx 2020-04-13 11:38:08 +02:00
sqrrm
efee2e43c4
Init unfailed trade when moved to pending trades 2020-04-13 11:38:00 +02:00
sqrrm
e739f9465f
Don't unfail if deposit or delayedpayout txs are missing 2020-04-13 11:37:54 +02:00
sqrrm
c889fbdb8d
Reattach addresses when unfailing trade 2020-04-13 11:37:46 +02:00
sqrrm
77835b95b0
Add shortcut to move failed trade to pending trades 2020-04-13 11:32:54 +02:00
Christoph Atteneder
782921ec55
Bump version number for v1.3.2 2020-04-10 20:02:39 +02:00
Christoph Atteneder
edc4df1826
Merge pull request #4099 from jmacxx/fix_getsupport_traderchat
Replace the Get Support button with Open Trader Chat until trade period is over
2020-04-10 19:53:38 +02:00
Christoph Atteneder
34734c6fe4
Merge pull request #4122 from stejbac/make-UserThread-runAfter-thread-safe
Make UserThread::run* methods thread safe
2020-04-10 15:55:03 +02:00
sqrrm
09141eba92
Add signed witness filter (#4124)
* Add signed witness filter

- Add a filter to pubkeys used in AccountAgeWitness signing
- Fix inverted arbitrator signing of initial account age witnesses from
disputes
- Add test to verify that signed witness filter works
- Add test to verify that the arbitrator signing was fixed

* Fix codacy complaints

* Prevent NullPointerException during toggle group initialization

* Add scrollbar to filter window

* Format test class

Co-authored-by: Christoph Atteneder <christoph.atteneder@gmail.com>
2020-04-10 15:14:01 +02:00
Christoph Atteneder
4b826eb2a9
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.3.1
# 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
2020-04-08 23:03:19 +02:00
Christoph Atteneder
224b140c46
Revert to SNAPSHOT version 2020-04-08 22:59:10 +02:00
chimp1984
005a87b553
Fix issue with tx connected output being null
The moment we are validating the tx is not committed and therefore the
connected tx output is not wired up and thus null.

Refactor and consolidate the validation code to the static class and
improve error handling.
2020-04-08 21:51:52 +02:00
Christoph Atteneder
51ffd9d95c
Bump version number for v1.3.1 2020-04-08 20:04:13 +02:00
chimp1984
38dcb27140
Fix issue with tx connected output being null
The moment we are validating the tx is not committed and therefore the
connected tx output is not wired up and thus null.

Refactor and consolidate the validation code to the static class and
improve error handling.
2020-04-08 12:10:06 -05:00
chimp1984
1c5fc600f4
Add check for donation address at pending trades 2020-04-08 14:05:30 +02:00
chimp1984
96e42954c9
Add more checks for delayed payout tx
Merge Conflict in TradeWalletService
2020-04-08 14:05:18 +02:00
chimp1984
4f28205478
Add check for donation address at pending trades 2020-04-07 23:23:58 -05:00
chimp1984
8cf6d42309
Add more checks for delayed payout tx 2020-04-07 23:04:57 -05:00
Christoph Atteneder
bb75f59b86
Bump version number for v1.3.0 2020-04-07 19:38:16 +02:00
Steven Barclay
a71f1e7e3f
Make UserThread::runAfter* methods thread safe
The runAfter* methods delegate to UITimer::run(Later|Periodically) in
the case of the desktop application. These use the JavaFX TimeLine API
(via bisq.common.reactfx.FXTimer) to schedule future events. However,
this API isn't thread safe and isn't meant to be called outside the FX
application thread. This causes occasional misfirings and out-of-order
scheduling when UserThread::runAfter is called outside the user thread.

Make the UITimer::run* methods safe to call from any thread by checking
we are in the application thread and delegating to UserThread::execute
otherwise. This also improves consistency between the contracts of the
runAfter* and execute methods. As the former has many call sites, this
is safer than trying to track down all the non-thread-safe uses.

(The Timer used in the headless app already appears to be thread-safe.)

This fixes #4055 (Bisq sometimes fails to prompt user for password to
unlock wallet), caused by out-of-order scheduling of the execute and
runAfter tasks in the WalletConfig.onSetupCompleted anonymous class
method in bisq.core.btc.setup.WalletsSetup.initialize.

Also prevent an exception caused by non-thread-safe calls into JavaFX
during the shutdown of OpenOfferManager, which was uncovered by the
above, by adding a missing UserThread::execute call.
2020-04-06 13:52:33 +08:00
jmacxx
0139a51b57
Replace the Get Support with Open Trader Chat until trade period is over
Showing an `Open Trader Chat` button until the trade period is over will
reduce the number of unnecessary support tickets and encourage
trader-to-trader dialogue.  If the trade timer expires without
completing the button changes (as before) to open a mediation ticket.

Implementation of this feature requires the button in TradeStepView to
notify its parent TradeSubView which in turn notify its parent
PendingTradesView that trader chat is to be opened.  Basically a
callback interface is passed two levels down the GUI hierarchy.

Fixes #3801
2020-04-05 04:27:02 -05:00
sqrrm
d0a8890c09
Merge pull request #4093 from jmacxx/fix_dust_wallet
Prevent dust outputs from being created during withdraw from wallet
2020-04-03 15:56:05 +02:00
Christoph Atteneder
a96bfd431d
Merge pull request #4060 from ghubstan/avoid-standby-mode
Improve AvoidStandyModeService
2020-04-01 11:21:32 +02:00
sqrrm
55048dc4a3
Add vwap bsq price (#4098)
* Remove unused code

* Add VWAP calculation for USD/BSQ price

* Remove unused argument
2020-03-31 16:34:14 +02:00
Christoph Atteneder
9891e58f2c
Merge pull request #4047 from freimair/graceful_shutdown
Added graceful shutdown hook
2020-03-31 15:20:58 +02:00