Commit Graph

2405 Commits

Author SHA1 Message Date
Manfred Karrer
f59914f160
Send mobile notification msg in a thread.
The http request can take a few seconds to return so we use a thread to
send it and return the result in a handler.
2018-11-27 14:32:51 +01:00
Manfred Karrer
d142ad8844
Merge pull request #1982 from ManfredKarrer/remove-ico-tokens-and-btc2
Remove ico tokens and btc2
2018-11-27 13:15:06 +01:00
Manfred Karrer
1e11d47ccb
Remove assets 2018-11-27 01:10:48 +01:00
Manfred Karrer
1f4643dfbc
Fix display string 2018-11-26 23:52:34 +01:00
Manfred Karrer
a51d337c25
Merge branch 'release-candidate-0.9.0' into bug-fixes 2018-11-26 15:32:49 +01:00
Christoph Atteneder
da8b5fcf9d
Merge pull request #1967 from ManfredKarrer/remove_not-traded-assets
Remove not traded assets
2018-11-26 11:30:39 +01:00
Christoph Atteneder
c7c20fb2ad
Merge pull request #1958 from ManfredKarrer/improve-backward-compatibility-with-new-arb-selection
Improve backward compatibility with new arb selection
2018-11-26 11:25:26 +01:00
Manfred Karrer
1f81acb4b8
Increase minTradeAmount to 0.01 btc, remove 0.7 coins from warmup phase 2018-11-26 02:31:06 +01:00
Manfred Karrer
735e4588ce
Merge branch 'release-candidate-0.9.0' into improve-backward-compatibility-with-new-arb-selection 2018-11-25 23:55:01 +01:00
Manfred Karrer
83190fb237
Merge branch 'release-candidate-0.9.0' into persist-selected-account-at-takeoffer 2018-11-25 23:54:23 +01:00
Manfred Karrer
0e64a7193d
Merge branch 'master' into release-candidate-0.9.0 2018-11-25 23:52:51 +01:00
Devin Bileck
054f293622
Resolve BisqHelpFormatterTest failure on Windows
The expected content for the CLI help output needs different path
separators on Windows.
2018-11-24 23:45:43 -08:00
Manfred Karrer
4930c1297e
Add getActivePaymentMethods for filtered payment methods 2018-11-25 03:21:12 +01:00
Chris Beams
931f369fb6
Include executable name and version in help output 2018-11-24 13:24:03 +01:00
Chris Beams
83e1dd37f9
Refactor option parsing configuration
This change eliminates the BisqExecutable.description method and
replaces it with proper use of the `describedAs` and `defaultsTo`
methods in the JOptSimple API. This removes the concern of formatting
option argument descriptions and default values from the BisqExecutable
class, and delegates it to the new BisqHelpFormatter (see previous
commit), which is designed for the purpose.

For example, prior to this commit, the help text for the --banList
option read as follows:

    --banList=<value>
            Nodes to exclude from network connections. (default: )

Now it reads as follows:

    --banList=<host:port[,...]>
            Nodes to exclude from network connections.

Likewise, previous to this commit, the --logLevel option read as
follows:

    --logLevel=<value>
            Log level [OFF, ALL, ERROR, WARN, INFO, DEBUG, TRACE]
            (default: INFO)

And now it reads like this:

    --logLevel=<OFF|ALL|ERROR|WARN|INFO|DEBUG|TRACE> (default: INFO)
            Log level

There are a number of further improvements that can and should be made
to the description text of the various options, the types specified for
their arguments, etc, but these will be handled in subsequent commits.
This commit is strictly about refactoring existing parser configuration
to take advantage of the new BisqHelpFormatter.
2018-11-24 13:24:03 +01:00
Chris Beams
2a537a601b
Introduce BisqHelpFormatter
Prior to this commit, help output for Bisq executables, e.g. Bisq
Desktop itself used JOptSimple's default HelpFormatter implementation,
which creates a quite cramped and hard-to-read output.

This commit introduces a custom HelpFormatter implementation modeled
after bitcoind's own help output. It maximizes readability while making
full use of an 80-character width.
2018-11-24 13:19:56 +01:00
Manfred Karrer
880a8412fc
Merge pull request #1957 from j3ko/release-candidate-0.9.0
Add advanced cash payment method
2018-11-24 12:09:04 +01:00
Jeffrey Ko
dd3abd2996
make advanced cash payment method more consistent ok pay payment method 2018-11-24 13:26:12 +07:00
Manfred Karrer
d7fe1dbeb3
Handle edge cases with removed arbitrators 2018-11-24 00:44:56 +01:00
Manfred Karrer
319c043e43
Handle backward compatibility with new arbitr. selection
- Remove activationDate
- Refactor ProcessOfferAvailabilityResponse and handle offers from
old versions in case the available arbitrators has changed.
- Remove MakerVerifyMediatorSelection and TakerSelectArbitrator

The mediator handling should be removed as it is not used and not
intended anymore to be used with the current trade protocol, but we
leave that as it is a bit tricky to ensure backward compatibility.
Also the setting of the arbitrator in trade should be further refactored
but as it is also easy to break backward compatibility here we leave
that for now. As we work on the new trade protocol that domain will
become deprecated anyway in the next months...
2018-11-24 00:23:46 +01:00
Manfred Karrer
1ba0402dfb
Handle backward compatibility with new arbitration selection model. 2018-11-23 22:14:31 +01:00
Manfred Karrer
d98f3c12cf
Add default genesis tx info for regtest 2018-11-23 20:48:52 +01:00
Jeffrey Ko
4cd2ac8d40
Add advanced cash payment method 2018-11-23 20:50:03 +07:00
Chris Beams
a57a4a71c0
Remove unused Utilities import
This change should have been included in 63cec4252 (#1955).
2018-11-23 11:28:58 +01:00
Manfred Karrer
15c776874e
Merge branch 'master' into release-candidate-0.9.0
# Conflicts:
#	.editorconfig
2018-11-23 11:24:07 +01:00
Manfred Karrer
63cec42523
Merge pull request #1955 from cbeams/quell-help-on-error
Quell help output on option parsing error
2018-11-23 11:21:56 +01:00
Manfred Karrer
13aacc3c38
Merge pull request #1954 from cbeams/remove-core-logback-config
Remove Logback config xml from core module
2018-11-23 11:20:50 +01:00
Chris Beams
2b883c838a
Quell help output on option parsing error
This change suppresses help output when option parsing fails, e.g. due
to an unrecognized option being specified. This is in keeping with *nix
utility idioms; for example, notice what happens when running `git
--bogus` or `ls --bogus`: they output an error message, and in some
cases a usage message, but they do not print complete help text.
This approach is especially important in the case of an application like
Bisq, where there are many options and the help text is longer than a
typical screen, making it easy to miss the error message altogether, as
it is printed at the top of the screen.

This change also prints the error message to stderr vs stdout, which is
again in keeping with *nix utility idoms.
2018-11-23 09:11:35 +01:00
Chris Beams
b864a843ce
Remove Logback config xml from core module
Usually Bisq is run from its 'shadow jar', i.e. the executable fat jar
that collapses all dependencies and resources into a single file. In that
scenario, only a single 'logback.xml' is included in the fat jar and all
is well.

However, when Bisq is run with a normal external classpath, e.g. from
within IDEA, when using `gradle :desktop:run` or when running one of the
Gradle-generated shell scripts under desktop/build/scripts, multiple
'logback.xml' files are present on the classpath, which causes Logback
to complain with messages like the following:

    Found resource [logback.xml] at [file:.../desktop/build/resources/main/logback.xml]
    Resource [logback.xml] occurs multiple times on the classpath.
    Resource [logback.xml] occurs at [file:.../desktop/build/resources/main/logback.xml]
    Resource [logback.xml] occurs at [jar:file:.../core/build/libs/core.jar!/logback.xml]

Note the last line above. The presence of 'logback.xml' in the bisq-core
jar is the 'duplicate'. This is Logback's way of warning the user that
it doesn't know which file should be considered canonical. The only way
to avoid this error message (and the many other lines that get output
along with it) is to remove the offending duplicate file.

This commit removes logback.xml from core to solve the problem described
above. The file is unnecessary in the context of running bisq-desktop,
bisq-seednode, etc, and the only context in which it would actually be
used is when running BisqHeadlessAppMain in core. With that said, the
configuration in the core logback.xml file is identical to the default
Logback configuration, so removing the file has no effect on the logging
output from BisqHeadlessAppMain, and furthermore, it appears that
BisqHeadlessAppMain is not actually in use anywhere right now (it was
added some months ago in anticipation of integrating the new HTTP API,
but this has yet to occur).

In a future change, we should probably return the core module to being a
pure library, without any main methods, and introduce a different
module, e.g. 'daemon' that contains the equivalent of
BisqHeadlessAppMain and whatever logback.xml configuration is
appropriate for it. Doing things this way will avoid the 'duplicate'
errors shown above, because desktop, seednode, etc will not depend on
core module, but will not depend on the daemon module.
2018-11-23 06:42:02 +01:00
Chris Beams
b3d20b5b5f
Remove Utilities.removeCryptographyRestrictions
This code is no longer necessary after the recent move to JDK10, and
removing it entirely avoids spending unnecessary cycles and eliminates
the confusing "Cryptography restrictions removal not needed" message in
console output.
2018-11-23 06:09:59 +01:00
Christoph Atteneder
57763a2607
Enable locales for Thai and Vietnamese 2018-11-22 13:11:08 +01:00
Christoph Atteneder
4c95d030e8
Adapt layout of popup windows 2018-11-21 15:31:49 +01:00
Christoph Atteneder
48b4c3ce9c
Increase first line padding 2018-11-21 11:49:57 +01:00
Manfred Karrer
2564ae93f4
Remove comment 2018-11-18 12:13:34 -05:00
Manfred Karrer
89b092b7ea
Small fixes
- Use Array list for PB list as PB lists are unmodifyable
- Rename method to contain the unspent property
- fix row index in view
2018-11-18 11:07:30 -05:00
sqrrm
e815c4b105
Use lockup txid to track confiscation
1. Every bond is defined by its lockup transaction. To make it easy to
track which bonds are confiscated it's easier to track them by only one
txid instead of using a map with a mix of lockup txoutputs and unlock
txoutputs.

To check if a txoutput has been confiscated it has to be checked against
the originiating lockup txid.

2. Minor fixes of naming lockedup -> lockup and comments.
2018-11-17 23:13:13 +01:00
sqrrm
aa27d443a4
Display confiscated bond value 2018-11-17 23:13:13 +01:00
sqrrm
0c855f8dd0
Clearer param change validation 2018-11-17 23:13:13 +01:00
sqrrm
e577d0c4a9
Fix resource name 2018-11-17 23:13:13 +01:00
Manfred Karrer
aa05651ff4
Merge branch 'master' into release-candidate-0.9.0 2018-11-17 15:22:58 -05:00
Manfred Karrer
e37813c658
Merge pull request #1935 from freimair/externalTor
Bisq can now use an external Tor service
2018-11-17 14:02:11 -05:00
Manfred Karrer
c8416019f3
Merge pull request #1933 from ManfredKarrer/fix-temp-file-issue
Don't use a temp file for the sound file
2018-11-17 13:50:51 -05:00
Manfred Karrer
3157e86f8b
Persist last selected payment account at take offer
The last selected payment account gets persisted so that at the next
take offer attempt that same account is selected in the combo box in
case there are multiple accounts for that currency.
2018-11-17 13:29:52 -05:00
Manfred Karrer
5f766b4cd5
Convert long dash to short dash for minus values
Fixes https://github.com/bisq-network/bisq/issues/1925
2018-11-17 12:32:42 -05:00
Manfred Karrer
43ace0b659
Don't use a temp file for the sound file
We play a silent sound to prevent app nap and network disconnections.
Instead of a temp file which got deleted on exit and recreated each
startup we store it once in the data directory root.
Fixes https://github.com/bisq-network/bisq/issues/1931
2018-11-17 12:06:59 -05:00
Florian Reimair
64c6e3d783 Connect with CookieAuthentication 2018-11-17 18:03:10 +01:00
Florian Reimair
139ec518fc Connect with PasswordAuthentication 2018-11-17 18:03:10 +01:00
Florian Reimair
63f8bbf8c5 Connect to external Tor with NullAuthentication 2018-11-17 18:03:10 +01:00
Manfred Karrer
ca78453e04
Merge pull request #1930 from ManfredKarrer/small-fixes
Cleanup
2018-11-16 20:33:40 -05:00
Manfred Karrer
ac7ed15bcc
Merge branch 'release-candidate-0.9.0' of https://github.com/bisq-network/bisq into release-candidate-0.9.0 2018-11-16 20:30:30 -05:00