Commit graph

3372 commits

Author SHA1 Message Date
Christoph Atteneder
7c034a49c6
Merge pull request #3212 from chimp1984/add-average-bsq-price
Add average bsq price
2019-09-06 17:10:25 +02:00
Florian Reimair
69d70f386e
Revert non-changes 2019-09-06 16:21:22 +02:00
chimp1984
9be4b71088
Add comments 2019-09-06 11:49:33 +02:00
chimp1984
7856722fa5
Remove CapabilityRequiringPayload from TradeStatistics2
We do not have any old versions anymore which might not support
TradeStatistics2, so we can remove it.
2019-09-06 11:49:21 +02:00
chimp1984
206c4bc6e1
Remove CapabilityRequiringPayload from AccountAgeWitness
We do not have any old versions anymore which might not support
AccountAgeWitness, so we can remove it.
2019-09-06 11:49:07 +02:00
chimp1984
5d4f9afa71
Add 90 days average and median BSQ price 2019-09-06 04:43:30 +02: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
chimp1984
c615780333
Update tradeChat.rules 2019-08-30 17:07:35 +02:00
chimp1984
16d3bc5d26
Update core/src/main/resources/i18n/displayStrings.properties
Co-Authored-By: Steve Jain <mfiver@gmail.com>
2019-08-30 16:54:16 +02:00
chimp1984
fa307207ac
Update core/src/main/resources/i18n/displayStrings.properties
Co-Authored-By: Steve Jain <mfiver@gmail.com>
2019-08-30 16:53:39 +02:00
sqrrm
dec5982b2a
Add BRL as mature market
Move mature currency settings to CurrencyUtil as that seems a better fit
2019-08-30 13:57:23 +02:00
chimp1984
5e267fa461
Handle nullables 2019-08-30 01:01:29 +02:00
chimp1984
663d8591c4
Add chat rules system msg; cleanups 2019-08-30 00:58:06 +02:00
chimp1984
5c1999f180
Fix wrong pubkey 2019-08-30 00:57:21 +02:00
chimp1984
a2cd80866d
Add missing setWasDisplayed 2019-08-30 00:07:32 +02:00
sqrrm
cb55693d4e
Set active currencies as high chargeback risk 2019-08-30 00:01:40 +02:00
chimp1984
81a93b56b1
Add onAllServicesInitialized call, rename method 2019-08-29 22:55:02 +02:00
chimp1984
e0c1a85406
Add wasDisplayed field to chatMsg
- Fix logger
- Manage display state off trade chat msg (wip)
2019-08-29 22:29:36 +02:00
chimp1984
855cb4f620
Add missing allServicesInitialized check 2019-08-29 21:40:32 +02:00
chimp1984
fa43f03151
Merge branch 'master_upstream' into sq-add-trader-chat
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/disputes/trader/TraderDisputeView.java
2019-08-29 19:09:49 +02:00
chimp1984
bfb111da67
Add close handler to popup
- Close already open chat if new one opens
2019-08-29 18:56:11 +02:00
Christoph Atteneder
3ccae6922d
Merge pull request #3152 from wiz/darkmode
Dark Mode
2019-08-29 18:53:49 +02:00
chimp1984
2189cba41b
Show chat in popup instead of tab (WIP) 2019-08-29 17:50:14 +02:00
chimp1984
8e3a3514a3
Add comments, cleanup, fix wrong param name 2019-08-29 17:14:56 +02:00
chimp1984
cb673764df
Update string 2019-08-29 17:13:57 +02:00
chimp1984
5d338e693c
Fix merge issues 2019-08-29 17:07:39 +02:00
chimp1984
329572cc5d
Merge branch 'master_upstream' into sq-add-trader-chat
# Conflicts:
#	core/src/main/java/bisq/core/arbitration/DisputeManager.java
#	core/src/main/java/bisq/core/arbitration/messages/DisputeCommunicationMessage.java
#	core/src/main/java/bisq/core/trade/Trade.java
2019-08-29 16:50:32 +02:00
Florian Reimair
4e7cb04043
Merge pull request #3154 from chimp1984/Fix-small-P2P-network-issues
Fix small p2p network issues
2019-08-29 16:15:18 +02:00
wiz
4eb85b955e
Add toggle switch UI preference for Dark Mode on/off
* Store preference for Dark Mode as int32 css_theme
2019-08-29 20:20:25 +09:00
chimp1984
a0e690997a
Merge branch 'master_upstream' into Fix-small-P2P-network-issues
# Conflicts:
#	core/src/main/java/bisq/core/setup/CoreNetworkCapabilities.java
2019-08-28 19:49:18 +02:00