Commit graph

4016 commits

Author SHA1 Message Date
sqrrm
e739f9465f
Don't unfail if deposit or delayedpayout txs are missing 2020-04-13 11:37:54 +02:00
sqrrm
c889fbdb8d
Reattach addresses when unfailing trade 2020-04-13 11:37:46 +02:00
sqrrm
77835b95b0
Add shortcut to move failed trade to pending trades 2020-04-13 11:32:54 +02:00
Christoph Atteneder
2a040f4687
Merge pull request #4157 from sqrrm/unfail-with-reattach
Unfail with reattach
2020-04-13 11:32:24 +02:00
sqrrm
790db8c731
Add option to allow faulty delay payout tx
Add more logging during unfail process
2020-04-12 16:12:43 +02:00
sqrrm
be3158427e
Allow completion of trades with amount mismatch delayed tx 2020-04-12 13:03:09 +02:00
ghubstan
fc458e7a7d
Replace mock arg with SEPA PaymentMethod instance
Test AccountAgeWitnessServiceTest > testArbitratorSignWitness failed
in full gradle build, but passed when run as a single test:

	./gradlew :core:cleanTest :core:test \
		--tests "bisq.core.account.witness.AccountAgeWitnessServiceTest"

This test also passed when run in the IDE.

Solved by not passing a mocked PaymentMethod.SEPA argument into the
test's service.getTraderPaymentAccounts() method, where mock paymentId
field was null when running full build's test suites.

Fix for #4158
2020-04-11 14:02:22 -03:00
sqrrm
f6b7762d26
Init unfailed trade when moved to pending trades 2020-04-11 18:02:18 +02:00
Christoph Atteneder
edc4df1826
Merge pull request #4099 from jmacxx/fix_getsupport_traderchat
Replace the Get Support button with Open Trader Chat until trade period is over
2020-04-10 19:53:38 +02:00
sqrrm
486f254773
Don't unfail if deposit or delayedpayout txs are missing 2020-04-10 16:42:02 +02:00
sqrrm
817819dc51
Reattach addresses when unfailing trade 2020-04-10 16:42:02 +02:00
sqrrm
bd8e30c708
Add shortcut to move failed trade to pending trades 2020-04-10 16:42:02 +02:00
Christoph Atteneder
34734c6fe4
Merge pull request #4122 from stejbac/make-UserThread-runAfter-thread-safe
Make UserThread::run* methods thread safe
2020-04-10 15:55:03 +02:00
sqrrm
062dc6ef76
Merge pull request #4053 from freimair/too-long-mempool-chain
Limit number of unconfirmed offers
2020-04-10 15:23:29 +02:00
sqrrm
09141eba92
Add signed witness filter (#4124)
* Add signed witness filter

- Add a filter to pubkeys used in AccountAgeWitness signing
- Fix inverted arbitrator signing of initial account age witnesses from
disputes
- Add test to verify that signed witness filter works
- Add test to verify that the arbitrator signing was fixed

* Fix codacy complaints

* Prevent NullPointerException during toggle group initialization

* Add scrollbar to filter window

* Format test class

Co-authored-by: Christoph Atteneder <christoph.atteneder@gmail.com>
2020-04-10 15:14:01 +02:00
Christoph Atteneder
4b826eb2a9
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.3.1
# Conflicts:
#	build.gradle
#	desktop/package/linux/Dockerfile
#	desktop/package/linux/package.sh
#	desktop/package/linux/release.sh
#	desktop/package/macosx/create_app.sh
#	desktop/package/macosx/finalize.sh
#	desktop/package/macosx/insert_snapshot_version.sh
#	desktop/package/windows/package.bat
#	desktop/package/windows/release.bat
#	relay/src/main/resources/version.txt
2020-04-08 23:03:19 +02:00
chimp1984
79e4572f64
Fix issues when buyer has dao deactivated 2020-04-08 21:52:30 +02:00
chimp1984
495b9b58b3
Fix inverted check, add more error logs 2020-04-08 21:52:07 +02:00
chimp1984
005a87b553
Fix issue with tx connected output being null
The moment we are validating the tx is not committed and therefore the
connected tx output is not wired up and thus null.

Refactor and consolidate the validation code to the static class and
improve error handling.
2020-04-08 21:51:52 +02:00
chimp1984
526bd0091a
Fix issues when buyer has dao deactivated 2020-04-08 13:29:04 -05:00
chimp1984
fd04909c79
Fix inverted check, add more error logs 2020-04-08 12:24:37 -05:00
chimp1984
38dcb27140
Fix issue with tx connected output being null
The moment we are validating the tx is not committed and therefore the
connected tx output is not wired up and thus null.

Refactor and consolidate the validation code to the static class and
improve error handling.
2020-04-08 12:10:06 -05:00
Christoph Atteneder
6ae9608966
Remove duplicate restart/connection information 2020-04-08 14:10:59 +02:00
sqrrm
97b1a10ae8
Fix value of delayedpayouttx for ranged trades 2020-04-08 14:05:44 +02:00
chimp1984
1c5fc600f4
Add check for donation address at pending trades 2020-04-08 14:05:30 +02:00
chimp1984
96e42954c9
Add more checks for delayed payout tx
Merge Conflict in TradeWalletService
2020-04-08 14:05:18 +02:00
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
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
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
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
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
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