Commit graph

3395 commits

Author SHA1 Message Date
wiz
d3335208bb
Temporarily disable onion host for @KanoczTomas's BTC node 2019-09-15 09:59:11 +09:00
wiz
f9687ad563 Fix various bugs related to Japan Bank Transfer payment method (#3258)
* Fix various bugs related to Japan Bank Transfer payment method

* Add missing call to addFormForBuyer(), improve BuyerStep2View UI
* Fix Account Creation UI elements width to fill entire pane
* Fix Account Creation UI elements padding to avoid overlap
* Tweak trade display popup text and various strings
* Remove @Deprecated tag

* Remove unnecessary line break

* Improve layout of fields
2019-09-14 19:55:58 +02:00
Christoph Atteneder
13f00a9f48
Merge pull request #3225 from wiz/japan-bank-transfer-payment-method
Add new payment method: Japan Bank Transfer
2019-09-13 09:36:09 +02:00
wiz
fb385a0074
Add new payment method: Japan Bank Transfer (furikomi) 2019-09-13 11:46:21 +09:00
Justin Carter
3b46f3584f
Extract parsing functions from BSFormatter to ParsingUtils
Parsing and formatting are 2 different concerns, its better to have 2
classes that handle these.
2019-09-11 16:14:18 +02:00
Justin Carter
fe33a80de5
Extract DisplayUtils from BSFormatter
All methods that are only used in the desktop project are removed from
BSFormatter to DisplayUtils. This reduces the entanglement between the desktop and core
project by reducing the surface area of the coupling.
2019-09-11 15:58:48 +02:00
Florian Reimair
be21535a4b
Merge pull request #3239 from bodymindarts/static-BSFormatter-functions
Make stateless BSFormatter functions static and remove dead code
2019-09-11 13:10:37 +02:00
Justin Carter
57d9badf8f
Make stateless BSFormatter functions static and remove dead code
Making these functions static is a preparation for extraction.
2019-09-11 12:51:12 +02:00
sqrrm
deeb6e4315
Merge pull request #3204 from ripcurlx/add-brazilian-portuguese
Add portuguese (Brazil) locale
2019-09-11 12:48:27 +02:00
wiz
fc72225fa3 Revert DAO changes to add bonded role for Analytics Operator (#3241)
* Revert "Increase analytics operator bond amount from 1 to 2"

This reverts commit 322fe23ea7.

* Revert "Add new BondedRoleType for Analytics Operator"

This reverts commit a3a3bf2b2a.
2019-09-11 10:06:52 +02:00
wiz
322fe23ea7 Increase analytics operator bond amount from 1 to 2
As discussed in:
https://github.com/bisq-network/proposals/issues/115#issuecomment-529490565
2019-09-09 20:47:04 +02:00
wiz
a3a3bf2b2a
Add new BondedRoleType for Analytics Operator 2019-09-09 11:56:17 +09:00
Christoph Atteneder
211eb1b4f1
Merge pull request #3213 from christophsturm/cleanup-thread-handling
Simplify thread handling and ensure proper they all have names
2019-09-06 16:15:15 +02:00
Christoph Atteneder
ec0b657967
Merge pull request #3216 from christophsturm/optimize-logging
More logging optimisations.
2019-09-06 16:12:55 +02:00
Christoph Sturm
934e31d28c don't calculate values twice 2019-09-06 12:25:30 +02:00
Christoph Sturm
42311ea7d3 optimize debug logging. 2019-09-06 12:25:30 +02:00
Christoph Sturm
6273a58c3b Assign even more thread names at thread creation. 2019-09-06 11:07:34 +02:00
Christoph Sturm
bcaac51830 Assign more thread names at thread creation. 2019-09-06 11:07:34 +02:00
Christoph Sturm
6cb206c257 Inline unused variable 2019-09-06 11:07:34 +02:00
Christoph Sturm
175899486e Use try with resource. 2019-09-06 11:07:34 +02:00
Christoph Sturm
ac78f72c1e Set thread name at thread creation 2019-09-06 11:07:34 +02:00
battleofwizards
82e9672e91
Remove PGP keys from the KeyRing
The PGP support was envisioned in the KeyRing but never fully
implemented. This removes the (essentially) dead code.

The protobuf message compatibility is implemented with `reserved`.
2019-09-05 14:30:33 +02:00
Christoph Atteneder
5dcfa96741
Add portuguese (Brazil) locale 2019-09-05 10:35:35 +02:00
Christoph Atteneder
285e5f236d
Merge pull request #3189 from gordonel/patch-1
Change trader-facing language to gender-neutral
2019-09-04 10:33:23 +02:00
battleofwizards
1c580da5ed
Remove bouncycastle:bcprov from *direct* dependencies
We still depend on this jar *indirectly* via bouncycastle:bcpg,
which is used for PGP signature verification of Bisq Desktop updates.

This gets us closer to prospect of removing Bounce Castle dependency
entirely in the future.

Rationale for this direction:

* We are really only using Bouncy Castle for PGP sig verification
* Java's builtin cryptography got vastly better since 2000
* We should prefer boring and proven cryptography anyway
* Australian projects should be considered compromised,
  and Bouncy Castle is run by Australian non-profit organization
* Bouncy Castle is a heavy dependency totaling 3.6MB
2019-09-03 15:07:22 +02:00
Gordon E
7b2ab4adda
Update ApplyFilter.java 2019-09-03 12:36:42 +03:00
Gordon E
688bb4e423
Update displayStrings.properties 2019-09-03 12:35:38 +03:00
Gordon E
42a69c73bb
add missing corrections 2019-09-03 12:31:35 +03:00
Gordon E
e257df4244
Update displayStrings.properties 2019-09-03 12:12:19 +03:00
Christoph Atteneder
4139e022df
Update bitcoinj checkpoint 2019-09-02 15:14:42 +02:00
Christoph Atteneder
3fc19f92b8
Merge pull request #3182 from christophsturm/fix-npe
fix NPE in shutdown hook
2019-09-02 14:39:12 +02:00
chimp1984
3f885c21e5
Use ARBITRATION instead of MEDIATION 2019-09-02 14:15:15 +02:00
chimp1984
629a16f163
Change DisputeCommunicationMessage.Type enum
To support future mediation chats
2019-09-02 14:10:54 +02:00
Christoph Sturm
ba099d9262 fix NPE in shutdown hook 2019-09-02 13:04:29 +02:00
Chris Beams
fdecf6f33c
Remove cbeams pricenode from ProvidersRepository
The BitcoinAverage developer plan API keys in use for this node have
recently expired. Given that we already have four other pricenodes
up and running, there's no compelling reason to keep this fifth one in
place and to pay for hosting and API keys for it every month.
2019-09-02 12:34:22 +02:00
Christoph Atteneder
5d260ad42b
Update translations 2019-09-02 11:26:50 +02:00
Christoph Atteneder
a212a5889c
Merge pull request #3149 from ghubstan/validate-phone
Validate phone numbers
2019-09-02 09:47:11 +02:00
Christoph Atteneder
e0c91d22b3
Merge pull request #3176 from sqrrm/blocknotify-option
Add rpcBlockNotificationHost option
2019-09-02 09:20:13 +02:00
Christoph Atteneder
9c0be827c9
Merge pull request #3177 from chimp1984/fix-bsq-wallet-performance-issue
Fix performance issue in BsqWalletService
2019-09-02 09:19:55 +02:00
chimp1984
3412725a48
Update core/src/main/java/bisq/core/dao/monitoring/DaoStateMonitoringService.java
Co-Authored-By: sqrrm <sqrrm@users.noreply.github.com>
2019-09-02 01:29:54 +02:00
chimp1984
8521164adc
Add duration log for DaoStateMonitoringService
Creating the daoStateHash is quite expensive (about 20-30 ms/block).
As this happens while parsing it delays the parsing time (parsing is
very fast). We persist t the hashes so it is only done for new blocks.
For 1 month of blocks (4000) it would take about 80-120 seconds.
It is not blocking the user thread as it is done per block and those
are parsed one after another.
2019-09-01 23:24:08 +02:00
chimp1984
a876273c52
Reset daoFullNode in preferences if rpc data are not set 2019-09-01 22:58:51 +02:00
chimp1984
40de3c528d
Improve logging
- Add better logs and duration measurements for expensive operations
- Convert debug logs to trace to avoid flooding the output in debug log
mode.
- Cleanups
2019-09-01 22:57:40 +02:00
chimp1984
6dafafd7b1
Fix performance issue in BsqWalletService
The updateBsqWalletTransactions method got called at each block for all
transactions. During block download that wasted a lot of cpu and
led to stuck UI thread and lost connections.
The updateBsqBalance is not cheap (a few ms) and called for 100s of txs
at each block was very problematic.
Furthermore the listeners on the walletTransactions observableList got
triggered which made the situation worse.

We changed the observableList to a ArrayList and use a listener which
gets called after the list is updated.
We also make sure the onTransactionConfidenceChanged listener is not
calling updateBsqWalletTransactions if bsq parsing is not complete and
if the depth of the tx is > 1.
In the updateBsqWalletTransactions method we use a flag and a delay
to ensure that the updateBsqBalance is not called more then once
in 100 ms.

We changed also the getter to return a cloned version of the list to
avoid potential concurrent modification exceptions at clients.

Closes #3175
2019-09-01 22:47:10 +02:00
sqrrm
f30b68b39f
Fix tests 2019-09-01 19:10:26 +02:00
sqrrm
a13600f2f3
Add rpcBlockNotificationHost option 2019-09-01 18:42:48 +02:00
chimp1984
39e22ca44e
Fix bug with not showing system msg at peer who receives msg
- We only added the system msg when one opens the chat but not when
one received a message.
2019-08-31 01:14:43 +02:00
ghubstan
de4b59048b
Integrate PhoneNumberValidator into SwishForm
PhoneNumberValidator + Test Changes:
  Added no-arg constuctor required for Guice injection.
  Added isoCountryCode setter;  this field must be set before
  validation.
  Added validation of isoCountryCode.
  Added missing country code test.

SwishValidator Changes:
  SwishValidator now extends PhoneValidator.
  Added no-arg constuctor required for Guice injection.
  Set isoCountryCode = SE in constructor.

SwishForm Changes:
  Sets Swish acct phone number to normalized phone number if
  phone # validation is successful.
  Replaced Logger declaration with @Slf4j annotation.
  Formatted source.

Added 'validation.phone.missingCountryCode' property to i18n file.
2019-08-30 15:27:46 -03:00
Christoph Atteneder
b5f871b8ed
Merge pull request #3165 from chimp1984/trade-chat
Traders chat
2019-08-30 19:00:03 +02:00
chimp1984
50baa9b023
Close chat window if dispute gets closed 2019-08-30 18:44:43 +02:00