Commit Graph

13180 Commits

Author SHA1 Message Date
chimp1984
d91954ea66
Add sort for memo column
Include prefix at address column in sort
Use details if available for details column
2020-12-08 17:33:01 -05:00
Christoph Atteneder
6adf8503df
Merge pull request #4907 from chimp1984/avoid-persistence-write-call-before-read
Prevent that we write data at shutdown before we have read the data.
2020-12-08 16:36:38 +01:00
Christoph Atteneder
6431d639ae
Merge pull request #4908 from chimp1984/add-memo-field-at-step4
Add memo field at step4
2020-12-08 16:35:16 +01:00
Christoph Atteneder
1ab4766600
Merge pull request #4909 from chimp1984/fix-bsq-to-fiat-calculation
Fix bsq to fiat calculation
2020-12-08 16:26:20 +01:00
chimp1984
249c6143c9
Use preferredTradeCurrency is fiat, otherwise the users country currency 2020-12-07 13:48:43 -05:00
chimp1984
a7765d0cce
Use 30 day average BSQ price for calculating BSQ fee 2020-12-07 13:45:02 -05:00
chimp1984
5a0634f94d
Move methods to AveragePriceUtil 2020-12-07 13:24:17 -05:00
chimp1984
469f9494ba
Remove empty class 2020-12-07 13:22:01 -05:00
chimp1984
f745f0f0d6
Move methods from AxisInlierUtils to InlierUtil
We will need some of those methods later inside another core util class.
2020-12-07 13:21:44 -05:00
chimp1984
104b7edc99
Add memo field at withdraw to external wallet screen
Implements https://github.com/bisq-network/bisq/issues/4869
2020-12-07 12:32:56 -05:00
chimp1984
959c53c18d
Apply project format rules (no code change) 2020-12-07 12:31:34 -05:00
chimp1984
15ed165cdd
Move readCalled.set(true); to getPersisted(String fileName) method.
Note: It must be before the null check as no existing file must not prevent write.
2020-12-07 12:05:28 -05:00
chimp1984
0520942a4c
Prevent that we write data at shutdown before we have read the data.
Fixes https://github.com/bisq-network/bisq/issues/4844
2020-12-07 11:42:19 -05:00
sqrrm
4e4d3e72d6
Merge pull request #4898 from chimp1984/diable-setupConnectionLossCheck-for-regtest
Dont shut down seed in regtest mode if all connections lost
2020-12-07 14:47:19 +01:00
sqrrm
74485f0844
Merge pull request #4884 from ghubstan/01-refactor-getdust
Refactor: move getDust(Transaction transaction)
2020-12-07 14:12:59 +01:00
Christoph Atteneder
6d01bc91ea
Merge pull request #4897 from chimp1984/dont-require-account-witness-for-small-amounts
Allow take offer in case account age witness is not found and trade amount is small
2020-12-06 20:20:52 +01:00
chimp1984
51ab5685de
For dev testing (usually on BTC_REGTEST) we don't want to get the seed shut
down as it is normal that the seed is the only actively running node.
2020-12-04 12:44:19 -05:00
chimp1984
82445c0e28
In case the peers witness is not found and the trade amount
is not exceeding TOLERATED_SMALL_TRADE_AMOUNT (0.01 BTC) we
return true for verifyPeersTradeAmount.
Before such offers could not be taken even the witness
check would be irrelevant as the trade amount is below the
threshold where we require account age witness.
2020-12-04 12:40:30 -05:00
Christoph Atteneder
9e3968e5f4
Merge pull request #4892 from deusmax/market-offer-filter-bugfix
Offer Book chart outlier filter improved.
2020-12-04 16:54:25 +01:00
Christoph Atteneder
0d6b17fa3f
Merge pull request #4875 from deusmax/FXC-ext
Replace use of Collections to FXCollections in desktop.
2020-12-04 16:44:05 +01:00
Christoph Atteneder
c782f22fe8
Merge pull request #4874 from jmacxx/fix_systray_error
Prevent annoying popup errors for unhandled systray exception.
2020-12-03 21:21:47 +01:00
Deus Max
d60030e2f2
Offer Book chart outlier filter improved.
Outlier data filter used for the Market Offer Book chart, now accounts
for the switching display position of Buy, Sell data depending on
currency type (Crypto or Fiat).
2020-12-03 21:06:34 +02:00
Christoph Atteneder
91a1a92ac4
Merge pull request #4877 from Jakub-CZ/fix_warning_message
Fix warning about rejected transaction
2020-12-03 19:28:06 +01:00
ghubstan
74261b1749
Refactor: move getDust(Transaction transaction)
The api is going to need this method, so it was moved from desktop to core.

- Moved the method from WithdrawalView to WalletService.

- Removed an unused initilizer in WithdrawalView.
2020-12-03 12:16:04 -03:00
sqrrm
9b774d1515
Merge pull request #4858 from ghubstan/21-fee-rate-apis
Add tx fee rate api methods:  gettxfeerate, settxfeerate, unsettxfeerate
2020-12-03 10:41:54 +01:00
Jakub Loucký
b8bdbbc551
Fix warning for rejected transaction 2020-12-02 21:16:41 +01:00
Deus Max
c7290ee091
Replace use of Collections to FXCollections in desktop.
Replace use of java library java.util.Collections with
javafx.collections.FXCollections instead.
Bisq issue#4388.
2020-12-02 21:38:50 +02:00
ghubstan
7f636e45f9
Prevent attempt to send amount of BSQ < dust 2020-12-02 15:21:20 -03:00
ghubstan
2efd094f68
Remove method only used in class' toString 2020-12-02 15:01:34 -03:00
ghubstan
65df9e1503
Change sendbsq's amount parameter type to String 2020-12-02 14:52:05 -03:00
ghubstan
9b4bdfc5ad
Make salt an editable payment acct json form field
Users need to be able to preserve their acct age when moving a
payment account to a new client.

Also adjusted affected tests, and did some minor refactoring
of the custom gson type adaptor.
2020-12-02 13:52:39 -03:00
jmacxx
06c0211f1f
Prevent annoying popup errors for unhandled systray exception. 2020-12-02 09:43:41 -06:00
ghubstan
987d89319e
Use ListenableFuture and callback when requesting tx fee
This change fixes the blocking problem in the fee rate request api.
Also redefined the TxFeeRateInfo.

- Redefined grpc.proto message TxFeeRateInfo, added
  lastFeeServiceRequestTs field. (CLI user may want to know
  TS of last fee request.)

- Adjusted TxFeeRateInfo proto wrapper.

- Adjusted CurrencyFormat and BtcTxFeeRateTest to new TxFeeRateInfo.

- Added @Getter annotation to FeeService.  (CLI user may want to know
  TS of last fee request).

- Pass resultHandler from GrpcWalletsService through CoreApi, to
  CoreWalletsService's tx fee rate api methods.
2020-12-01 21:10:47 -03:00
ghubstan
faf030fbc5
Add useCustomTxFeeRate field to TxFeeRateInfo proto wrapper
This is set from the core preferences.isUseCustomWithdrawalTxFee(),
and simplifies fee changing logic in the API.
2020-12-01 17:14:08 -03:00
ghubstan
2989f1be3f
Loosen up the PaymentMethod count test assert
, so we don't have to change this test every time a new payment
method is added.
2020-12-01 16:10:00 -03:00
ghubstan
62a2aa8543
Don't be so polite 2020-12-01 15:55:53 -03:00
ghubstan
45cfb95245
Remove many log.isDebugEnabled() checks
These do not buy enough in the way of performance, at the cost of
so many additional lines.  Buy these checks should be done for
debug log statements that have expensive parameters.
2020-12-01 15:48:11 -03:00
Christoph Atteneder
09677151a6
Merge pull request #4863 from jmacxx/account_usability
Account management usability improvements
2020-12-01 14:04:49 +01:00
Christoph Atteneder
740071d54c
Merge pull request #4859 from oscarguindzberg/fixEmergencyPayout
Fix emergency payout
2020-12-01 13:58:01 +01:00
jmacxx
0af139c666
Fix NPE in test routine caused by PaymentAccount with no name 2020-11-30 09:45:24 -06:00
Christoph Atteneder
49d0e75eac
Merge pull request #4852 from chimp1984/stop-rpc-service-at-shutdown
Shut down rpc service at app shut down routine
2020-11-30 15:29:36 +01:00
Christoph Atteneder
e8a8e3b3a1
Merge pull request #4785 from deusmax/dao_bsq_supply
Touch-ups to the DAO BSQ Supply page
2020-11-30 09:22:20 +01:00
jmacxx
52a4dff0ae
Account management usability improvements
Widen payment account dropdown in create & edit offer screens
Sort payment account dropdown by name in create & edit offer screens
Sort account listview by name in manage fiat accounts screen
Sort account listview by name in manage altcoin accounts screen
Bug fix: do not adjust BTC amount in edit offer screen

There was a bug where editing an existing offer could have its payment
account changed to one with more restrictive limits and the offer
would still be allowed (although not take-able).
It should not be allowed to be saved in this case.  This change takes
proper heed of the "allowAmountUpdate" flag which is false for offer
edits.  e.g. edit an F2F buy for 0.25, change to Zelle unsigned, the
offer will prevent saving.
2020-11-27 14:40:37 -06:00
Christoph Atteneder
c7b92c36c9
Merge pull request #4850 from chimp1984/improve-stratup-info-display
Improve startup info display
2020-11-27 16:08:07 +01:00
sqrrm
cae09f8ff5
Merge pull request #4860 from stejbac/add-deposit-amount-taker-check
Add taker check for deposit amount
2020-11-27 12:56:14 +01:00
ghubstan
965b003f61
Remove unnecessary use of fully qualified name for codacy 2020-11-27 06:45:31 -03:00
Steven Barclay
d59b425c94
Add missing output value check to takerSignsDepositTx
Make sure the taker checks the value of the 2-of-2 multisig output of
the deposit tx created by the maker, before signing it. This avoids a
potential security hole, where the maker attempts to steal most of the
deposit by using the wrong output value and adding an extra 'change'
output to himself.

Note that there's no actual vulnerability at present, as the output
value is indirectly checked via the validation of the delayed payout tx.
In particular, the extra checks added in 345426f as part of #4789 (Fix
remaining blackmail vulnerabilities) place a lower bound on the delayed
payout tx input value and with it the deposit tx output value. However,
explicitly checking the amount is more robust.
2020-11-26 23:39:51 +00:00
Oscar Guindzberg
f2acf42edc
Set payoutTx as parent tx 2020-11-26 20:30:23 -03:00
Oscar Guindzberg
0b834a94f8
Use empty byte array for script sig 2020-11-26 20:30:00 -03:00
Oscar Guindzberg
91a2def86e
Use AddressEntry.getAddress() 2020-11-26 20:28:50 -03:00