Commit Graph

10941 Commits

Author SHA1 Message Date
chimp1984
500ccfbbaf
Rename class 2020-04-08 14:03:05 +02:00
chimp1984
efe04c668c
Add DonationAddressValidation static class 2020-04-08 14:02:53 +02:00
chimp1984
3a3f69aafa
Rename class 2020-04-08 14:02:42 +02:00
chimp1984
c18c55f6b0
Add BuyerVerifiesDonationAddress task
Buyer was not verifying if the donation address is either the default
DAO param address or the recent one changed by DAO voting. We do not
support past DAO param addresses to avoid that past addresses receive
funds.
2020-04-08 14:00:48 +02:00
Christoph Atteneder
00b2171a43
Merge pull request #4140 from sqrrm/fix-range-delayedpayout
Fix range delayedpayout
2020-04-08 13:24:34 +02:00
sqrrm
0e6c4239b5
Fix value of delayedpayouttx for ranged trades 2020-04-08 11:22:36 +02:00
chimp1984
4f28205478
Add check for donation address at pending trades 2020-04-07 23:23:58 -05:00
chimp1984
8cf6d42309
Add more checks for delayed payout tx 2020-04-07 23:04:57 -05:00
chimp1984
99f542bc4b
Rename class 2020-04-07 22:16:32 -05:00
chimp1984
856863ee70
Add DonationAddressValidation static class 2020-04-07 22:16:02 -05:00
chimp1984
8a604ea60c
Rename class 2020-04-07 22:13:24 -05:00
Christoph Atteneder
9a09c3daa1
Merge pull request #4134 from chimp1984/add-donation-address-verification-to-buyer
Add BuyerVerifiesDonationAddress task
2020-04-08 01:37:15 +02:00
Christoph Atteneder
538e6fc906
Update data stores for v1.3.0 2020-04-08 01:00:17 +02:00
sqrrm
59d094bb1c
Merge pull request #4130 from ripcurlx/update-data-stores-for-v1.3.0
Update data stores for v1.3.0
2020-04-08 00:59:03 +02:00
Christoph Atteneder
d05e9f74b0
Update data stores for v1.3.0 2020-04-07 21:47:58 +02:00
chimp1984
956cb65a6c
Add BuyerVerifiesDonationAddress task
Buyer was not verifying if the donation address is either the default
DAO param address or the recent one changed by DAO voting. We do not
support past DAO param addresses to avoid that past addresses receive
funds.
2020-04-07 13:15:25 -05:00
Christoph Atteneder
bb75f59b86
Bump version number for v1.3.0 2020-04-07 19:38:16 +02:00
Christoph Atteneder
fbfe8dc842
Merge pull request #4108 from ghubstan/rslv-grpcauth-gson-dep-conflicts
Resolve grpc-auth and gson dependency conflicts
2020-04-06 12:25:59 +02:00
Steven Barclay
a71f1e7e3f
Make UserThread::runAfter* methods thread safe
The runAfter* methods delegate to UITimer::run(Later|Periodically) in
the case of the desktop application. These use the JavaFX TimeLine API
(via bisq.common.reactfx.FXTimer) to schedule future events. However,
this API isn't thread safe and isn't meant to be called outside the FX
application thread. This causes occasional misfirings and out-of-order
scheduling when UserThread::runAfter is called outside the user thread.

Make the UITimer::run* methods safe to call from any thread by checking
we are in the application thread and delegating to UserThread::execute
otherwise. This also improves consistency between the contracts of the
runAfter* and execute methods. As the former has many call sites, this
is safer than trying to track down all the non-thread-safe uses.

(The Timer used in the headless app already appears to be thread-safe.)

This fixes #4055 (Bisq sometimes fails to prompt user for password to
unlock wallet), caused by out-of-order scheduling of the execute and
runAfter tasks in the WalletConfig.onSetupCompleted anonymous class
method in bisq.core.btc.setup.WalletsSetup.initialize.

Also prevent an exception caused by non-thread-safe calls into JavaFX
during the shutdown of OpenOfferManager, which was uncovered by the
above, by adding a missing UserThread::execute call.
2020-04-06 13:52:33 +08:00
jmacxx
0139a51b57
Replace the Get Support with Open Trader Chat until trade period is over
Showing an `Open Trader Chat` button until the trade period is over will
reduce the number of unnecessary support tickets and encourage
trader-to-trader dialogue.  If the trade timer expires without
completing the button changes (as before) to open a mediation ticket.

Implementation of this feature requires the button in TradeStepView to
notify its parent TradeSubView which in turn notify its parent
PendingTradesView that trader chat is to be opened.  Basically a
callback interface is passed two levels down the GUI hierarchy.

Fixes #3801
2020-04-05 04:27:02 -05:00
sqrrm
c54a5acbb0
Merge pull request #4094 from jmacxx/fix_dust_trading
Prevent dust outputs from being created during the trade process
2020-04-03 18:30:10 +02:00
sqrrm
d0a8890c09
Merge pull request #4093 from jmacxx/fix_dust_wallet
Prevent dust outputs from being created during withdraw from wallet
2020-04-03 15:56:05 +02:00
Christoph Atteneder
f4257bfce7
Merge pull request #4116 from ghubstan/add-guava-dep-to-seednode
Add guava dependency to seednode
2020-04-02 18:56:52 +02:00
ghubstan
21a2f1de64
Add guava dependency to seednode
Merging PR #4096, which moved protobuf defs out of core and common,
left :seednode without its required dependency on guava, causing
NoSuchMethodErrors.
2020-04-02 13:44:13 -03:00
Christoph Atteneder
0a22f46ca4
Merge pull request #4112 from freimair/input_parsing
Add parsing to pricenode cmdline inputs
2020-04-02 16:07:52 +02:00
Florian Reimair
57157c7e4f
Report HS version to pricenode (#4027)
* Report HS version to pricenode

In order to evaluate progress on https://github.com/bisq-network/projects/issues/23,
the Bisq app reports its hiddenservice version.

This change is going to be undone as soon as we do not need the
info anymore.

* Added hsversion scraper script

* Added installer/uninstaller

* Cleanup

* Fix unit name
2020-04-02 16:06:00 +02:00
Christoph Atteneder
2b39662861
Merge pull request #4113 from wiz/add-wiz-v3-seednode
Replace a @wiz v2 seednode with a new v3 seednode
2020-04-02 16:04:01 +02:00
Christoph Atteneder
c1ac53d393
Merge pull request #4115 from wiz/remove-wiz-bitcoin-node150
Remove a @wiz bitcoin node to reduce total count to 16 nodes
2020-04-02 16:00:48 +02:00
wiz
3775788a3f
Remove a @wiz bitcoin node to reduce total count to 16 nodes 2020-04-02 22:08:51 +09:00
wiz
8b8feae4c9
Replace a @wiz v2 seednode with a new v3 seednode 2020-04-02 21:49:05 +09:00
Florian Reimair
84be0da768
Add parsing to pricenode cmdline inputs 2020-04-02 11:08:17 +02:00
ghubstan
ee867013aa
Resolve grpc-auth and gson dependency conflicts
This change forces :relay's grpc-auth version to match the
version of all other io.grpc-* dependencies, and gets rid of
the duplcate gson dependency v2.8.2
2020-04-01 10:01:17 -03:00
Christoph Atteneder
a96bfd431d
Merge pull request #4060 from ghubstan/avoid-standby-mode
Improve AvoidStandyModeService
2020-04-01 11:21:32 +02:00
Christoph Atteneder
6c59f6eda3
Merge pull request #4107 from freimair/monitoring_install_script
Set expiry date to years in the future
2020-04-01 10:45:54 +02:00
Florian Reimair
a7f72cf6bd
Set expiry date to +years 2020-03-31 17:10:26 +02:00
sqrrm
55048dc4a3
Add vwap bsq price (#4098)
* Remove unused code

* Add VWAP calculation for USD/BSQ price

* Remove unused argument
2020-03-31 16:34:14 +02:00
Christoph Atteneder
c62c2d8586
Merge pull request #4028 from freimair/tor_0.4.2.6
Tor 0.4.2.6
2020-03-31 16:04:13 +02:00
Christoph Atteneder
73788e406f
Merge pull request #4106 from robkaandorp/add-onion-address-for-btcnode
Add onion address for @robkaandorp's btcnode
2020-03-31 15:27:20 +02:00
Christoph Atteneder
9891e58f2c
Merge pull request #4047 from freimair/graceful_shutdown
Added graceful shutdown hook
2020-03-31 15:20:58 +02:00
Rob Kaandorp
9e8113f7f9
Add onion address for @robkaandorp's btcnode
Network proposal https://github.com/bisq-network/proposals/issues/189
2020-03-31 14:14:27 +02:00
Christoph Atteneder
13604b61e5
Merge pull request #4104 from cbeams/fix-4103
Avoid startup failure when bannedSeedNodes arg is empty
2020-03-31 11:01:05 +02:00
Chris Beams
0ed5b4ebfc
Avoid startup failure when bannedSeedNodes arg is empty
This commit fixes #4103, where it was demonstrated that a
bisq.properties file containing the following entries would cause Bisq
to fail at startup:

    baseCurrencyNetwork=BTC_MAINNET
    bannedSeedNodes=
    bannedBtcNodes=
    bannedPriceRelayNodes=5bmpx76qllutpcyp

The source of the problem was that the jOptSimple argument parsing
library converts the empty value of bannedSeedNodes to a List<String> of
size 1 where the 0th element of the list is an empty string. This empty
string was then attempted to be converted into a new NodeAddress,
causing a validation error. This conversion happened during Guice
wiring, and manifested as a blank white screen appearing as wiring
errors often do in Bisq.

The fix is simple and surgical. We now filter out any empty string
elements before attempting to convert the banned seed node value to a
new node address. I have reviewed the other related options, such as
bannedPriceRelayNodes and bannedBtcNodes, and they do not cause the
problem described above, so no filtering or other changes have been made
to the way they work.
2020-03-31 10:42:15 +02:00
jmacxx
f1de079901
Change wording of the dust informative message per review by m52go
Moved message text into displaystrings.properties
2020-03-30 21:09:19 -05:00
Christoph Atteneder
5faf77079e
Merge pull request #4097 from ghubstan/remove-read-stdin-loop
Remove read stdin loop
2020-03-30 19:46:09 +02:00
ghubstan
aba595b8e8
Implement requested changes in PR #4097
Change member name OptionParser cmdParser -> parser.
Change server listening port to 9998, client port to 9998.
Change constructor argument from String[] param -> args.
Print the result only, w/out exec time.
Handle help command & print that to stdout;  print help
triggered by user error to stderr.
Use explicit system SUCCESS/FAIL codes in System.exit(0 || 1).
2020-03-30 12:53:45 -03:00
Florian Reimair
8f7a4991fd
Tor 0.4.2.6
Now the tor binaries are properly released on their own. Thus, there
is no need for them to be in the Bisq repo. Added checksums as well.
2020-03-30 16:15:26 +02:00
jmacxx
4fce853dec
Apply the dust fix to trades which use BSQ for the fee
Also, use `Restrictions.getMinNonDustOutput()` for the dust limit
2020-03-29 20:23:11 -05:00
jmacxx
ea8b327f7b
Change the constant used to determine what amount is considered dust
Now using `Restrictions.getMinNonDustOutput()` which equates to 546 sats
2020-03-29 18:23:48 -05:00
jmacxx
378c57492b
Address issues raised in review by sqrrm on 2020-03-26
- added a comment describing the `removeDust` method and its effects.
- use more descriptive variable names.
- made the logging more verbose to help log readers.
- use a constant for the dust limit
- add a notice to the user when dust is padded to the fee
2020-03-28 21:22:40 -05:00
Florian Reimair
50ba2cd740
Only send message bundle if not stopped 2020-03-28 11:27:37 +01:00