Commit Graph

11513 Commits

Author SHA1 Message Date
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
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
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
cd2357
d972a7571a
Improve exception handling to match Codacy rules
Rewrite a few generic parts of the code to be more specific in what they
 handle, or how they handle the resulting data structure.
2020-08-08 17:12:39 +02:00
cd2357
0c2703848c
Apply Codacy style changes
Apply various changes in coding style, required by the Codacy check.
2020-08-08 16:05:15 +02:00
cd2357
9fb5c0bb53
Remove unused imports
Removed unused imports from pricenode classes.
2020-08-08 15:24:08 +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
cd2357
11076e773d
Set quiet flag for java install command
Reduce verbosity of install command to only errors

Co-authored-by: wiz <j@wiz.biz>
2020-08-06 10:26:13 +02:00
cd2357
36dbb2e943
Upgrade Java to v11
Use Java 11 to run the pricenode service, since v11 includes by
default some root certificates needed when establishing SSH connections
to some of the new API endpoints.
2020-08-05 23:26:03 +02:00
cd2357
82bbb2dafa
Upgrade Tor to v3
Use tor v3 addresses during a new pricenode setup.
2020-08-05 23:20:14 +02:00
cd2357
4dc24e5606
Disable BitcoinAverage
Disable BitcoinAverage provider. Keep it registered as a provider to
ensure that the data structure returned by the pricenode to the Bisq
clients contain the hardcoded "btcAverageTs" key.
2020-08-05 23:17:18 +02:00
pedromvpg
5a16db8440
Header and other visual tweaks 2020-08-04 02:03:13 -04:00
sqrrm
0931792fd4
Merge pull request #4396 from ripcurlx/only-show-signing-state-when-needed
Only show signing state if signing for payment method is required
2020-08-03 12:15:05 +02: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
02b483f4d8
Merge pull request #4393 from wiz/shutdown-seednode-gracefully
Don't use `kill -9` to restart seednodes now that SIGTERM is handled
2020-08-03 11:03:46 +02:00
Christoph Atteneder
ff795ba648
Update data stores for v1.3.7 2020-08-02 14:30:42 +02:00
Christoph Atteneder
2f06a94171
Update bitcoinj checkpoints for v1.3.7 2020-08-02 14:30:31 +02:00
sqrrm
fb5dbcdbca
Merge pull request #4395 from ripcurlx/updates-for-v1.3.7
Data store updates for v1.3.7
2020-08-02 13:40:49 +02:00
Christoph Atteneder
d575ff3045
Update data stores for v1.3.7 2020-08-02 11:01:54 +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
0868ce89a8
Don't use kill -9 to restart seednodes now that SIGTERM is handled
Now that we can gracefully restart from #4047
2020-08-02 02:42:42 +09: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
Christoph Atteneder
f930cfb9da
Merge pull request #4391 from wiz/tweak-postal-money-order-popup-text
Tweak popup text and trade rules for USPMO payment method
2020-08-01 11:11:25 +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
7475f17207
Bump version number for v1.3.7 2020-07-30 10:19:34 +02:00
Christoph Atteneder
41f7350217
Merge pull request #4382 from cd2357/patch-1
Force non-interactive install of git lfs
2020-07-30 09:50:40 +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
Christoph Atteneder
88fcb3fc1f
Merge pull request #4240 from cd2357/remove-unused-maxBlocks-param-retry
Pricenode: Remove unused maxBlocks param
2020-07-29 10:37:29 +02:00
cd2357
33550caab2
Remove unused maxBlocks param from pricenode
As the new fee estimation API does not require this parameter
anymore, remove it and all references to it.

See bisq-network/projects#27
2020-07-28 22:11:46 +02:00
cd2357
8d335441c3
Fix Bitpay and CoinGecko altcoin rates
Correctly interpret the alt conversion rate reported by the API. For
alts, Bisq needs the Alt/BTC rate, whereas the API returns the BTC/Alt
one. Calculate the inverse of the reported values before storing them as
 Bisq internal datastructures (ExchangeRates).
2020-07-28 21:10:25 +02:00
ghubstan
8bb7e12f31
Clarify scaffold tear down error handling
The Scaffold#tearDown() method was split into two methods.  The
original tearDown() now passes the background process/task array
to a new shutDownAll() method.  This new method loops through the
tasks in a more readable way, plainly expressing the intent to log
all shutdown exceptions for each process being shut down, but not
throwing an exception while processes are being shut down.
The new shutDownAll() method returns the first shutdown exception
encountered, which in turn is passed up to the test case's @AfterAll
method.
2020-07-28 12:33:25 -03: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
sqrrm
901af075c1
Merge pull request #4381 from chimp1984/add-input-verification
Add input validation
2020-07-28 14:58:06 +02:00