Commit graph

4174 commits

Author SHA1 Message Date
chimp1984
5ac1f6e05c
Merge branch 'master_upstream' into improve-network-statistics 2020-08-28 09:48:14 -05:00
chimp1984
8c619530a4
Remove display of data from last second 2020-08-27 15:43:13 -05:00
Devin Bileck
51f318d47f
Add mempool.bisq.services explorer and mempool fee estimation provider 2020-08-26 00:01:22 -07:00
chimp1984
a88e8f88fa
Don't use full toString result for thread name 2020-08-26 00:02:57 -05:00
chimp1984
876c99e6e3
Fix display strings 2020-08-25 22:09:15 -05: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
ghubstan
d0397c1c62
Move gRPC boilerplate from :core to :daemon
This change moves gRPC boilerplate classes from the :core.grpc pkg
into a new :daemon.grpc pkg.

* The :core.grpc pkg was renamed :core.api, and no longer has any
  dependencies on gRPC libraries.

* All core service classes in the :core.api pkg are now package
  protected, excepting CoreApi, making CoreApi the only possible
  entry point for all Grpc*Service -> -Core*Service calls.

* All grpc service classes in the :daemon.grpc pkg are now package
  protected, excepting GrpcServer;  the only class depending on
  Grpc*Service class is GrpcServer.

* gRPC dependencies were moved from the gradle.build file's :core
  subproject to :daemon.
2020-08-24 15:09:15 -03:00
sqrrm
b512e31553
Merge pull request #4409 from chimp1984/optimize-AssetService
Optimize AssetService
2020-08-22 14:56:33 +02:00
chimp1984
64dc529f48
Update core/src/main/java/bisq/core/dao/governance/asset/AssetService.java
Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
2020-08-21 20:57:54 -05: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
wiz
d9e12e5f85
Add clearnet pricenode URL for devmode usage 2020-08-20 16:07:42 +09: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
Christoph Atteneder
943d1c34d7
Merge pull request #4407 from chimp1984/use-sound-loop-on-osx
Revert usage of caffeinate on OSX
2020-08-19 12:58:51 +02:00
Christoph Atteneder
287abd21b1
Merge pull request #4408 from devinbileck/update-seednodes
Update seednodes
2020-08-19 12:57:16 +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
chimp1984
47c4ed75e9
Replace sound file with smaller more silent one
Converted sound file to a 10 second mono noise with lower volume.
Tested with max possible sound volume and it was hardly audible.
Tested a binary built with it and I could not observe the network
degradation issues.
File is not 800 kb instead of 42 MB.
2020-08-12 11:25:53 -05:00
Devin Bileck
414ee053ee
Update seednodes
As part of the Tor V3 upgrade, this PR adds 2 new V3 seednodes, and will
start the process to retire older V2 seednodes.

The V2 seednodes will continue operating for 2-3 months during the
retirement phase-out period, after which time we can filter it out from
the network for clients who have not upgraded if necessary.
2020-08-11 17:03:47 -07:00
cd2357
cdc6242779
Update core/src/main/resources/i18n/displayStrings.properties
Co-authored-by: wiz <j@wiz.biz>
2020-08-09 20:13:37 +02:00
wiz
3a5c3fb3f3
Update all Pricenodes with new Tor V3 onions
Pending merge of #4315 and rough consensus to proceed with migration plan in bisq-network/projects#35

wizpriceje6q5tdrxkyiazsgu7irquiqjy2dptezqhrtu7l2qelqktid (@wiz)
emzypricpidesmyqg2hc6dkwitqzaxrqnpkdg3ae2wef5znncu2ambqd (@Emzy)
devinpndvdwll4wiqcyq5e7itezmarg7rzicrvf6brzkwxdm374kmmyd (@devinbileck)
aprcndeiwdrkbf4fq7iozxbd27dl72oeo76n7zmjwdi4z34agdrnheyd (@mrosseel)
ro7nv73awqs3ga2qtqeqawrjpbxwarsazznszvr6whv7tes5ehffopid (@alexej996)
2020-08-10 02:09:19 +09: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
chimp1984
67687d611a
Revert usage of caffeinate on OSX
It seems caffeinate is not preventing that Bisq gets throttled resources
once the OS switches to hibernate.
See:
https://github.com/bisq-network/bisq/issues/4300#issuecomment-670997004
2020-08-08 21:41:07 -05:00
cd2357
584e516fc4
Rename timestamp field
Rename timestamp field which implied it represents an epoch value in
seconds, but the way it was used to build a Date object showed that it
actually expected a millis value.
2020-08-08 21:14:23 +02:00
cd2357
f73f4174dd
Rename method
Rename method to remove reference to the BA provider.
2020-08-08 21:04:17 +02:00
cd2357
2a4c11cb35
Remove unused methods
Removed getters for the BA and CMC timestamps, both of which are not
used anymore.
2020-08-08 21:02:57 +02:00
cd2357
189431ed7e
Correctly map lastRequest timestamp
The lastRequest timestamp is changed to show the last request to a
pricenode.

The previous approach of using the "last provider request timestamp"
does not make sense in the new setup. Each currency rate is based on
rates from several providers, each with their own "request timestamps".
In addition, the pricenode returns the timestamp each rate was
calculated. On top of that comes the timestamp when the Bisq node
queries the pricenode.

Since what is most relevant for the Bisq node is the "freshness" of a
specific rate, the timestamp most indicative of that is the moment when
the pricenode is queried.
2020-08-08 21:00:45 +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
Christoph Atteneder
2f06a94171
Update bitcoinj checkpoints for v1.3.7 2020-08-02 14:30:31 +02:00
Christoph Atteneder
53702a796c
Update bitcoinj checkpoints for v1.3.7 2020-08-02 10:44:24 +02:00
wiz
780f425738
Remove pricenode gztmprecgqjq64zh.onion operated by @wiz 2020-08-01 21:41:52 +02:00
Christoph Atteneder
f66c2404f7
Merge pull request #4392 from wiz/remove-pricenode-gztmprecgqjq64zh
Remove pricenode gztmprecgqjq64zh.onion operated by @wiz
2020-08-01 21:41:37 +02:00
wiz
3be3fe11d1
Remove pricenode gztmprecgqjq64zh.onion operated by @wiz 2020-08-01 22:49:32 +09:00
wiz
b222046fd6
Tweak popup text and trade rules for USPMO payment method
Co-Authored-By: Steve Jain <mfiver@gmail.com>
2020-08-01 11:11:51 +02:00
wiz
2a73e7b4ce
Tweak popup text and trade rules for USPMO payment method
Co-Authored-By: Steve Jain <mfiver@gmail.com>
2020-08-01 04:24:21 +09:00
Christoph Atteneder
dfc5eb0459
Update translations for v1.3.7 2020-07-30 10:21:12 +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
Christoph Atteneder
d9eb1d8435
Merge pull request #4373 from QuantumRipple/local-node-ip
Change IP for local node connection to Loopback address
2020-07-29 10:53:52 +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
chimp1984
5e49de85c7
Add input validation 2020-07-27 22:09:39 -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
QuantumRipple
a5cca0ee1e
Change IP for local node connection to Loopback address
If the local Bitcoin full node is bound to only listen on the loopback interface (127.0.0.1), attempting to open a socket to `InetAddress.getLocalHost()` - the return of which is variable but usually NOT 127.0.0.1 - will not work. Changing to `InetAddress.getLoopbackAddress()` resolves this.
2020-07-23 18:39:41 -05:00
sqrrm
e1fcbfac18
Merge pull request #4357 from ripcurlx/update-data-stores-for-v1.3.6
Update of data stores for v1.3.6
2020-07-08 15:43:05 +02:00
wiz
f18e7d711a
Add V3 seednode sn2bisq 2020-07-08 01:15:46 +09:00
Christoph Atteneder
a25680ffa2
Update translations for v1.3.6 2020-07-07 15:57:38 +02:00
Christoph Atteneder
3b49acdf12
Update bitcoinj checkpoints 2020-07-07 15:37:00 +02:00
sqrrm
a8e4b51709
Fix taker use all BSQ for fee payment
Issue: if a taker used exactly all BSQ from the BSQ inputs to pay the
trading fee, there was no BSQ change in the takeOfferFeeTx. It was
assumed that the second output was the reservedForTrade output, but in
the case of missing BSQ change it was the first output.

Fix: added a check to make sure the value of the inputs to the deposit
tx match the expected inputAmount.

Added a check that if there is no BSQ outputs in the bsqTradingFeeTx a
change output is added of value 1 satoshi more than the BSQ input value.
This ensures that the second output is always the reservedForTrade
output. It also ensures that the BSQ is burnt, even in the very unlikely
case that the amount of BSQ burnt is larger than the reservedForTrade
amount.
2020-07-06 18:36:30 +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
ad374bd6ec
Improve layout to prevent truncation in most common use-cases 2020-07-03 19:08:00 +02:00
sqrrm
4e7283cc2c
Remove unused argument 2020-07-03 18:14:10 +02:00