Commit graph

10368 commits

Author SHA1 Message Date
chimp1984
7e44c60b10
Only move to failed trades if the reject msg is critical
We got a report where a "tx already known" message caused a failed
trade but the deposit tx was valid.
To avoid such false positives we only handle reject messages which
we consider clearly critical.
2019-12-24 23:08:45 -05:00
chimp1984
358588f903
Improve column sorting 2019-12-23 18:26:33 -05:00
Steven Barclay
0bcf238d71
Optimise CurrencyUtil.get[Fiat|Crypto|Trade]Currency
Use a LinkedHashMap in place of a List, for the caching CurrencyUtil
fields 'allSortedFiatCurrencies' & 'allSortedCryptoCurrencies', using
the same iteration order as before. In this way, we can avoid a linear
search in the lookup methods getFiatCurrency & getCryptoCurrency.

In particular, this speeds up the activation of TradesChartsView (and to
a lesser extent OfferBookChartView), which make a lot of calls to
CurrencyUtil.getTradeCurrency in the fillTradeCurrencies/updateChartData
methods respectively.
2019-12-23 22:29:32 +00:00
chimp1984
47647a98f8
Improve text 2019-12-23 13:19:48 -05:00
chimp1984
fadd384443
Use min. refund at mediated payout
At mediation we require a min. payout to the losing party to keep
incentive for the trader to accept the mediated payout. For Refund
agent cases we do not have that restriction.
2019-12-23 12:55:55 -05:00
chimp1984
95a79a3536
Refactoring: Remove unused parameter 2019-12-23 12:00:58 -05:00
chimp1984
223441bb7d
Adjust security deposits
According to https://github.com/bisq-network/proposals/issues/155

For buyer:
Default: 15%
Min. 15% for Altcoin, 15% for Fiat
Max. 50% for Altcoin, 50% for Fiat
Absolute min. deposit in BTC: 0.006 BTC (currently 40 USD)

For Seller:
Fixed: 15%
Absolute min. deposit in BTC: 0.006 BTC (currently 40 USD)
2019-12-23 11:49:11 -05:00
Steven Barclay
24889c87d7
Remove unused fields passed as constructor params from various classes
These are mostly injected objects that are now redundant, such as some
CoinFormatter and Preferences fields.

Also do some additional minor tidying of TradesChartsViewModel.
2019-12-22 23:48:57 +00:00
chimp1984
ccd0a77437
Fix sorting functions 2019-12-21 20:33:14 -05:00
chimp1984
3781eb0bc1
Make all DAO screen tables resize to max. screen height 2019-12-21 20:04:19 -05:00
chimp1984
31b618d862
Add 2 new columns to vote result
Add threshold and quorum column.
Combine name and link column.
Add sorting function for accepted column.
Adjust column width.
2019-12-21 19:27:28 -05:00
chimp1984
29a8b10cdc
Improve popup text 2019-12-21 17:51:18 -05:00
chimp1984
292ac30f85
Handle unconfirmed BSQ change at spv resync
In case we had an unconfirmed change output we reset the
unconfirmedBsqChangeOutputList so that after a SPV resync we do not
have any dangling BSQ utxos in that list which would cause an incorrect
BSQ balance state after the SPV resync.
2019-12-21 16:59:20 -05:00
chimp1984
de144143e5
Add button for shutdown
If a trader has a pending trade with an unconfirmed tx and is doing a
spv resync, the deposit tx is not found. They get displayed a popup
asking to restart and if problem continues to move trade to failed
trades. In regtest testing the missing deposit tx was always received
from the network at a restart. So this commit adds another button as
default button to shut down Bisq so that the user do first that activity
instead of moving the trade to failed trades.
It is not guaranteed that the trader will receive the missing deposit tx
at restart, but at least it is better as the state before. We should
find a way how to distinguish a valid unconfirmed tx from an invalid one
but it is not clear yet how we can do that and if it is feasible with
doing that with BitcoinJ only. It might require a external service to
look up the tx if it is in the mem pool, but even that will never gie a
100% certainty.
2019-12-21 16:17:12 -05:00
sqrrm
8c62d000e1
Merge pull request #3819 from wiz/fix-seednode-install-script-non-interactive
Prevent seednode install script from opening dialog boxes
2019-12-21 14:39:40 +01:00
wiz
4ad020878f
Prevent seednode install script from opening dialog boxes 2019-12-21 22:01:40 +09:00
Steven Barclay
80ac646d2b
Reuse temp file names to fix a memory leak caused by deleteOnExit()
The internal 'java.io.DeleteOnExitHook' uses a LinkedHashSet of paths to
to delete files at when the JVM exits. However, since there is no way to
remove entries from the set, it leaks memory when calling deleteOnExit()
for every new temp file created by FileManager.saveToFile. To avoid
this, try to reuse file names (using one per FileManager instance).

(FileManager.saveToFile appears to be called on average around every 2s,
and this probably leaks around 36 + length * 2 bytes for the String
object, 36 bytes for the hashtable node and maybe around 10 bytes for
the table entry, or 82 + length * 2 ~= 236 bytes for a typical temp file
path length on Windows - about 10MB per day.)
2019-12-20 23:29:06 +00:00
Steven Barclay
aa9146fbe0
Remove redundant locking from FileManager.saveToFile
As this private method is synchronized and not used in a way that
recursion/reentry is possible, any further instance-level locking within
the method is redundant - for each FileManager instance, there can only
be one saveToFile call in progress at a time.
2019-12-20 21:59:18 +00:00
sqrrm
9a0a348eeb
Merge pull request #3815 from wiz/add-seednode-installer
Add seednode installation script
2019-12-20 20:06:33 +01:00
wiz
9d1b1d19f6
Add notes to server motd in seednode install script 2019-12-21 03:46:07 +09:00
wiz
af7c628f32
Add warning at bottom of seednode install script to enable firewall 2019-12-21 03:36:16 +09:00
wiz
4c79f08cc1
Fix seednode README command to get bitcoin onion hostname 2019-12-21 03:29:32 +09:00
wiz
1ddb4df70a
Add missing libssl-dev in seednode installation script 2019-12-21 02:38:59 +09:00
wiz
7be4caf6c1
Fix seednode README getting onion hostname 2019-12-21 00:19:28 +09:00
wiz
4151cadabe
Fix seednode README bitcoin-cli usage instructions 2019-12-20 23:50:12 +09:00
wiz
839f791caa
Fix bisq-seednode.env file replacement 2019-12-20 23:49:37 +09:00
wiz
7eaf849f1a
Fix seednode install script path replacement delimiter 2019-12-20 23:20:26 +09:00
wiz
442281ce0c
Fix seednode install script causing gradle to hang 2019-12-20 23:12:42 +09:00
wiz
a57d33a484
Fix seednode uninstallation script paths 2019-12-20 22:12:53 +09:00
wiz
4b0f25cdf6
Fix seednode installation script URL 2019-12-20 21:44:04 +09:00
wiz
485f8e8c37
Add one command installation script for tor + btcnode + seednode 2019-12-20 21:35:12 +09:00
wiz
97b0651669
Re-enable mbm6ffx6j5ygi2ck.onion btcnode operated by @KanoczTomas
Fixes #3810
2019-12-20 02:10:10 +09:00
Steven Barclay
4b03f06af8
Fix doc comment warnings in TradeWalletService & OfferUtil
Add missing @param, @return and @throws tags and improve formatting.

(Also add some missing @Nullable method parameter annotations.)
2019-12-19 14:35:22 +00:00
sqrrm
ab35dbcad7
Merge pull request #3808 from ripcurlx/fix-remaining-dark-mode-bugs
Fixes remaining dark mode bugs (except chat bubbles)
2019-12-19 15:17:21 +01:00
Christoph Atteneder
35ef9b62f9
Fix wrong styling of link icon in dark mode
It also removes a style workaround that is not needed anymore.
Side note: the style that was set never existed anyways.
2019-12-19 11:35:48 +01:00
Christoph Atteneder
26044d8ce1
Not use style workaround
After some testing on Regtest it seems that this workaround is no longer needed.
This fixes the issue for the remove button mentioned in #3185.
2019-12-19 11:23:44 +01:00
sqrrm
0efbe069e2
Merge pull request #3803 from ripcurlx/fix-dark-mode-issues
Improve dark mode styles
2019-12-19 10:53:32 +01:00
beingindot
aecd536692
creating altcoin offer not throwing error during previously set high
security deposit.

Fixes #3717
2019-12-19 15:12:21 +05:30
Christoph Atteneder
334ebfc794
Merge pull request #3804 from SimoneBovi/days_repeated
Fix double presence of the word "days"
2019-12-19 10:36:29 +01:00
Christoph Atteneder
b5ddb630ef
Remove unused method parameters (#3806)
* Remove unused parameters from assorted methods

Exclude abstract or default methods, as well as cases where the
parameter is currently unused but is probably intended to be used later.

* Actually use the injected Clock param of isDateInTolerance

Use 'clock.millis()' instead of "new Date().getTime()" in SignedWitness
& AccountAgeWitness, as the latter may have been left as an oversight.

Also tidy the date field of the toString() methods.

* Suppress warnings of unused method params which may be needed later

Also fix forwarding of telescoping method parameters in FormBuilder and
FormattingUtils.
2019-12-19 10:23:16 +01:00
Simone Bovi
4b68f45f56
Fix double presence of the word days 2019-12-19 10:19:31 +01:00
Steven Barclay
d0a76b9ff2
Suppress warnings of unused method params which may be needed later
Also fix forwarding of telescoping method parameters in FormBuilder and
FormattingUtils.
2019-12-19 03:43:02 +00:00
Steven Barclay
cc7d0dec26
Actually use the injected Clock param of isDateInTolerance
Use 'clock.millis()' instead of "new Date().getTime()" in SignedWitness
& AccountAgeWitness, as the latter may have been left as an oversight.

Also tidy the date field of the toString() methods.
2019-12-19 03:43:02 +00:00
Steven Barclay
78d61e0958
Remove unused parameters from assorted methods
Exclude abstract or default methods, as well as cases where the
parameter is currently unused but is probably intended to be used later.
2019-12-19 03:42:54 +00:00
Christoph Atteneder
7c190ca9c5
Make progress bar track styleable 2019-12-18 13:00:34 +01:00
Christoph Atteneder
aa538992f0
Make popover text readable in dark mode 2019-12-18 12:50:50 +01:00
Christoph Atteneder
8a279c7e4e
Merge pull request #3802 from wiz/fix-bsq-explorer-always-picking-wiz
Fix random BSQ block explorer selection by setting Nullable
2019-12-18 10:05:10 +01:00
wiz
f85ef5b7eb
Fix random BSQ block explorer selection by setting Nullable 2019-12-18 17:54:00 +09:00
Christoph Atteneder
2782e58c65
Add user preference combobox for BSQ block explorer with random default (#3792)
* Add user preference combobox for BSQ block explorer with random default

* Remove betanet and testnet BSQ block explorers

* Always check if a valid BSQ block explorer is set
2019-12-18 08:55:33 +01:00
wiz
8b23cacd2c
Always check if a valid BSQ block explorer is set 2019-12-18 16:38:31 +09:00