Commit graph

11708 commits

Author SHA1 Message Date
chimp1984
badc872533
Refactoring 2020-08-24 00:13:14 -05:00
Christoph Atteneder
ad72f89774
Merge pull request #4425 from wiz/reduce-seednode-maxconnections-40
Reduce seednode maxconnections setting from 50 to 40 in bisq.env
2020-08-23 14:10:19 +02:00
Christoph Atteneder
841f55b0a1
Merge pull request #4423 from wiz/pricenode-installer-use-master-branch
Modify pricenode install script to use master instead of release tag
2020-08-23 14:07:04 +02:00
Christoph Atteneder
e42b07ce40
Merge pull request #4424 from chimp1984/increase-data-request-timeout
Increase data request timeout
2020-08-23 14:06:32 +02:00
wiz
fcd8225e37
Reduce seednode maxconnections setting from 50 to 40 in bisq.env 2020-08-23 15:44:08 +09:00
chimp1984
6cd852631f
Change log level to make it more clear how long it takes for creating
a network connection.
2020-08-22 19:24:53 -05:00
chimp1984
25b22e7a24
Increase timeout for data request
At slow internet connections the current timeout make it impossible to
get the initial data and therefor to use Bisq.
The timeout is containing the request and response as well as the time
it takes to start up the network connection which can also be quite
slow.
In my scenario, it took about 6-10 sec for the connection and the
request is atm nearly 3 MB which takes about 24 sec on a 1 Mbit/s
connection (note that over tor connection is slower so if normal speed
is 3-5 Mbit tors speed can be considerable lower). The response data
depends on the missing data/last update but can be easily 6 MB which
adds about another 48 sec. So one can easily hit the 90 sec. limit.

There is work in development for optimizing the initial data request,
but as that is more complex and not clear when it will be deployed I
recommend that we increase the current timeout to 180 sec. to avoid
that critical issue that users get "locked out".
2020-08-22 19:24:14 -05:00
wiz
0c4b6a50f4
Modify pricenode install script to use master instead of release tag 2020-08-23 09:14:36 +09: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
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
06cfe399bf
Merge pull request #4422 from wiz/tweak-pricenodes-remove-coinmate-cexio
Pricenode tweak: completely remove Coinmate and cex.io as data providers
2020-08-21 12:01:54 +02:00
wiz
bff4865ca7
Pricenode tweak: completely remove Coinmate and cex.io as data providers
Based on user feedback, these exchanges are too illiquid and do not
accurately reflect the true price of the market. After research, I found
the user's feedback to be correct and this PR removes both exchanges.
2020-08-21 17:53:14 +09: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
sqrrm
94b8b69310
Merge pull request #4418 from wiz/update-devmode-pricenode
Add clearnet pricenode URL for devmode usage
2020-08-20 10:07:22 +02:00
wiz
d9e12e5f85
Add clearnet pricenode URL for devmode usage 2020-08-20 16:07:42 +09:00
ghubstan
ba8b9ccf54
Put 'empty' comments inside ignored catch blocks
Follow codacy rule against empty blocks.
2020-08-19 11:49:21 -03:00
ghubstan
2ba0ee9d5d
Change access modifer
This commit is for forcing a codacy check.  The previous
change to an .md doc did not force a codacy check.
2020-08-19 11:14:33 -03:00
ghubstan
fa11dab28b
Add punctuation & re-phrase sentence in README
A new commit was needed to force a codacy check after changes were
made to codacy rules.
2020-08-19 11:04:21 -03:00
sqrrm
22b0a3fbbe
Merge pull request #4404 from bisq-network/release/v1.3.7
Release/v1.3.7
2020-08-19 13:11:23 +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
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
Christoph Atteneder
7cb02633e5
Merge pull request #4413 from wiz/add-new-mempool-fee-node
Add mempool.ninja to pricenodes as 3rd mempool fee estimation backend
2020-08-19 12:55:41 +02:00
ghubstan
c3abd4e533
Remove white lines 2020-08-18 10:38:26 -03:00
sqrrm
6153b82d67
Merge pull request #4403 from wiz/add-pricenode-wizpricej
Update all Pricenodes with new Tor V3 onions
2020-08-18 13:37:09 +02:00
ghubstan
8b081ad5f2
Update README 2020-08-17 16:18:08 -03:00
ghubstan
af7252ec47
Fix typo 2020-08-17 16:14:37 -03:00
ghubstan
f85ae2bb4d
Explain how to run test cases from Intellij 2020-08-17 16:11:31 -03:00
ghubstan
fc541257ae
Add build / run / test categories docs 2020-08-17 15:57:54 -03:00
wiz
1d784211c2
Add mempool.ninja to pricenodes as 3rd mempool fee estimation backend 2020-08-17 23:36:09 +09:00
sqrrm
06e533bb81
Merge pull request #4315 from cd2357/xchange-integration-introduce-aggregate-rates
PriceNode: Add support for multiple ExchangeRateProviders
2020-08-17 14:44:16 +02:00
ghubstan
12d52e869c
Fix port number typo 2020-08-15 13:22:32 -03:00
ghubstan
e88bdb9f8a
Add regtest-port-conflicts.md doc 2020-08-15 12:46:38 -03:00
ghubstan
72ff4dca2b
Use non-default regtest bitcoind -rpcport
The default bitcoind / bitcoin-cli rpcport option has been changed
from 18443 to 19443, to help avoid rpcport conflicts between apitest's
bitcoind instances and other bitcoind and/or bitcion-qt instances
which are probably using the bitcoin-core default (regtest) rpcport
18443.

However, this commit cannot include other changes for avoiding bind
address:port conflicts between apitest bitcoind instances and other
regtest bitcoin-core instances because bitcoinj's bind port is hardcoded
in RegTestParams.java as 18444.

In order to avoid bitcoin-core regtest mode bind address conflicts,
you must start or restart your bitcoind or bitcoin-qt instance with a
non-default bind port argument, e.g.

	bitcoin-qt -regtest -port=20444
2020-08-15 12:20:25 -03:00
sqrrm
176fc23cc2
Merge pull request #4402 from chimp1984/move-column-in-dao-vote-results
Move merit and stake column to the right
2020-08-13 23:52:56 +02:00
ghubstan
9637cc0943
Fix test fail() msg 2020-08-13 14:19:02 -03:00
ghubstan
176f0b2ad8
Fix BitcoinCli wrapper error handling
This change checks the system call exit status of bitcoin-cli
commands, and populates a new error message accessor if the
system exist status != 0.
2020-08-13 13:32:58 -03:00
chimp1984
8e3b4d912f
Bow to Codacy robot
I do not agree that not allowing Throwable in a catch makes the code
better. Unknown exceptions can be easier found if there is an error log
at the code where it occurred.
I would prefer if there is some flexibility like it is the case with the
IDEA code analysis, where one can edit and customize the suggestions.
Ignore annotations would help.
2020-08-12 21:23:08 -05:00
chimp1984
8e8354b1ad
Optimize application shutdown
There have been several long delays as well a wrong order of the
shutdown process (wallet got shutdown after network shutdown.

Shutdown is now pretty fast, but depends on open offers and connections.
2020-08-12 20:46:17 -05: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
ghubstan
685839d348
Add fallbackfee param to bitcoind start cmd
This commit adds a -fallbackfee=0.0002 parameter to the start 'bitcoind'
command to keep bitcoin-core v0.20.1 working as v0.19.1 does -- with the
'fallbackfee' enabled.

Bitcoin v0.20.0 contains a fix for inconsistent behaviour related
to this fallbackfee configuration.  Prior to v0.20, fallbackfee
was disabled (0) by default for the mainnet chain, but enabled
(0.0002) for the testnet and regtest chains.

A test case with bitcoin-core v0.20.1 was breaking on
the bitcoin-cli 'sendtoaddress' command, which was returning an
error message instead of a tx-id:

    error code: -4
    error message:
    Fee estimation failed. Fallbackfee is disabled. \
    Wait a few blocks or enable -fallbackfee.

Bitcoin-core v0.20.0 release notes contain info about this change:
    https://bitcoin.org/en/release/v0.20.0#updated-rpcs-1

The Bitcoin-core PR is https://github.com/bitcoin/bitcoin/pull/16524
2020-08-12 16:47:12 -03: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