Commit Graph

15114 Commits

Author SHA1 Message Date
chimp1984
19b52ba6f6
When daoActivated is set to false the DAO P2P data
are still received from seed nodes and processed but
as the services for processing the payloads are not
added the data is inefficiently processed.
The getMap returned a flattened map of all maps in
all services which can be quite large.
We use now a filtered map with calling canHandle
first. Also the put got optimized to indicate in the
return value if there has been a service found to add
the payload. If not we do not invoke the listeners and
do not broadcast.

To not request the DAO P2P data would be better but I
don't see a easy way how to do that as the P2P network
is not aware of the type of data. Some market interface
could be used and a flag at the request to the seed node
to indicate if those types should be included but that
does feel too customized for a special use case. The
DAO P2P data is not that big as well, so I think for now
that fix should be good enough.
2021-09-20 23:59:17 +02:00
Christoph Atteneder
ec20bb1784
Update @leo816 onion address 2021-09-20 20:50:06 +02:00
Stephan Oeste
a6ca8985f3
remove trailing space 2021-09-20 20:20:52 +02:00
Stephan Oeste
3bee0cca96
Update to BTC node Tor v3 onions 2021-09-20 18:54:21 +02:00
ghubstan
bfff30bcdd
Call 'keepfunds' (close trade) on both sides of trade simulation 2021-09-20 12:09:38 -03:00
sqrrm
4689ad5c4b
Merge pull request #5686 from ripcurlx/add-bitcoinj-tor-v3-support
Add bitcoinj Tor v3 support
2021-09-19 17:40:56 +02:00
ghubstan
55cb126e4f
Show trade.price in margin based altcoin 'gettrade' console output
Fixes problem simlar to other CLI output changes in this PR.
CLI's 'gettrade' output should show contracted trade.price instead of
moving offer.price value for price margin based altcoin offers.

This fixed bug did not affect any fiat or BSQ trades, only price margin
based XMR trades, and API support for XMR trading has not yet been
released.
2021-09-18 13:40:55 -03:00
ghubstan
542aa774b0
Fix typo in help text 2021-09-18 12:40:58 -03:00
ghubstan
a0f3d0a44c
Show correct altcoin trade amount (volume) in CLI console
This is a bug fix for the CLI's displayed altcoin trade amount
value, which should be trade.volume, not offer.volume.  It has been
hidden by the stability of the BSQ price, and exposed while testing
API support for XMR trades.
2021-09-17 16:28:07 -03:00
ghubstan
484f882077
Show frozen fiat trade cost in CLI console
This is a bug fix for the CLI's displayed fiat trade cost
value, which should be trade.volume, not offer.volume.  Offer volume
varies with BTC volatility, and the CLI should be showing the trade.volume
value instead, frozen when the contract is made.
2021-09-17 16:25:37 -03:00
sqrrm
fae1852220
Merge pull request #5685 from ghubstan/1-fix-api-payacct-ccy-support
Let API user set currencies in some payment account json forms
2021-09-17 14:07:09 +02:00
ghubstan
1a9cdfbdd3
Return early when field name match fails
Resolves https://github.com/bisq-network/bisq/pull/5685#discussion_r710002786
2021-09-16 09:31:22 -03:00
ghubstan
429e943a36
Add TODO commment above placeholder for future swift test
Resolves https://github.com/bisq-network/bisq/pull/5685#discussion_r710005619.
2021-09-16 08:57:31 -03:00
jmacxx
78cd61564c
Add five Indian payment methods 2021-09-15 15:25:43 -05:00
xyzmaker123
7f2c01e02d
Community tab - use AutoTooltip components, define elements in java instead fxml 2021-09-15 17:31:13 +02:00
xyzmaker123
393acf6961
Community tab 2021-09-15 12:26:31 +02:00
sqrrm
0e2da2850e
Merge pull request #5694 from ripcurlx/improve-japanese-bank-validation
Improve japanese bank branch validation
2021-09-14 14:24:10 +02:00
Christoph Atteneder
4d62136d62
Add further simplification and minor cleanups for japanese bank validation 2021-09-14 09:15:12 +02:00
Christoph Atteneder
90b2f9eeae
Merge pull request #5672 from jmacxx/swift_payment_method
Add SWIFT payment method
2021-09-13 14:49:47 +02:00
Christoph Atteneder
c781394dbb
Accept U+3007
Fixes #5688
2021-09-13 14:24:03 +02:00
Christoph Atteneder
851ef07812
Clean up formatting and imports 2021-09-13 14:20:55 +02:00
jmacxx
51eca30770
customize payment popup fee info for SWIFT 2021-09-13 06:44:17 -05:00
Christoph Atteneder
9c411b9ba4
Update Bisq bitcoinj fork with latest commit (3186b200fff690fa51f3ebbf578f427d78242bc2)
Conflicts:
	build.gradle
	gradle/witness/gradle-witness.gradle
2021-09-13 11:33:12 +02:00
jmacxx
c94c4b3fa4
SWIFT review changes & bugfix 2021-09-09 10:27:18 -05:00
Christoph Atteneder
704333f133
Add bitcoinj Tor v3 support 2021-09-09 11:41:01 +02:00
Christoph Atteneder
81571d72e7
Fix wrong translation key and use AutoTooltipCheckbox 2021-09-09 10:33:07 +02:00
jmacxx
e2dac437ab
text modifications by m52go
Co-authored-by: m52go <735155+m52go@users.noreply.github.com>
2021-09-08 15:07:22 -05:00
jmacxx
3430055144
add SWIFT payment method
rebased to master
2021-09-08 14:57:08 -05:00
ghubstan
343b14ec0a
Set apitest test case log level to INFO 2021-09-07 11:34:48 -03:00
ghubstan
ab929d4435
Remove spurious PaymentAccount#canSupportMultipleCurrencies()
Method was added on the false assumption `PaymentAccount#hasMultipleCurrencies()`
would not always return a correct value when a `PaymentAccount` instance is created
via reflection.  But `hasMultipleCurrencies()` will work as long as appropriate
PaymentAccount subclasses continue setting their `tradeCurrencies` fields within
their default constructors.
2021-09-07 11:31:56 -03:00
ghubstan
1adde70c7a
Do pay acct ccy checks, add tests, anticipate swift pay method
Define and verify trade currencies and selected trade currency values
in appropriate api test cases, and add test cases for new payment methods.
2021-09-06 12:27:39 -03:00
ghubstan
f7e6898077
Let users specify trade ccys and selected trade ccy in json form
Several payment methods support multiple trade currencies and a selected
trade currency, but the api's payment account creation has not let CLI
users specify them in the json form passed to the `createpaymentacct`
command.

This change adds `tradeCurrencies` and `selectedTradeCurrency` fields
to the appropriate json forms.
2021-09-06 12:24:51 -03:00
ghubstan
a2bc999692
Adjust to PaymentAccount change in commit de23fc0 2021-09-06 12:23:56 -03:00
ghubstan
19e9c78f51
Do single trade currency check in api generated payment acct 2021-09-06 12:21:29 -03:00
ghubstan
e00cc86fea
Adjust to PaymentAccount changes in commit de23fc0 2021-09-06 12:18:51 -03:00
ghubstan
de23fc0083
Replace growing # of instanceof checks with boolean hasPaymentMethodWithId 2021-09-06 12:17:16 -03:00
ghubstan
80a72dc520
Format comments, add one 2021-09-06 12:13:16 -03:00
ghubstan
f39e611150
Wrap long i18n strings for use in API
Some i18n property values can be used by the API if long strings are
wrapped before written as commments to json payment account forms, or
written to the CLI console.

This change anticipates the addition of the more complex Swift payment
method (PR 5672). PR 5672's i18n property value for key "payment.swift.info"
will be wrapped and appended to the comments of the Swift payment account's
json form.
2021-09-06 12:12:09 -03:00
Christoph Atteneder
e8f417fdf5
Merge pull request #5679 from jmacxx/fix_deposit_received_from_network_issue
Fix failed trade / missing payment information
2021-09-06 11:34:55 +02:00
Christoph Atteneder
5595f7d4c4
Merge pull request #5682 from ghubstan/cache-the-offerpayload-hash
Reduce # of hash calculations in UI OfferBook view
2021-09-06 11:32:22 +02:00
Christoph Atteneder
d893a3866b
Merge pull request #5683 from ghubstan/detault-api-testharness-callrate-config
Override/disable gRPC call rate meters in test harness driver
2021-09-06 09:25:30 +02:00
Christoph Atteneder
297f6954ca
Merge pull request #5681 from jmacxx/open_arbitration_after_locktime
Allow user to initiate arbitration once locktime has expired
2021-09-06 09:23:42 +02:00
ghubstan
8a42109a7a
Override/disable gRPC call rate meters in test harness driver
Ad-hoc API testers need to be able to run the test harness without
interference from the production api method call rate meters.
This change overrides and disables most call rate meters when the
test harness is run from the ApiTestMain driver (no jupiter tests).
2021-09-02 15:37:50 -03:00
ghubstan
4a69b89dc7
Put ratemeters.json in resources/data dirs before they are copied to build dirs
This fixes an inconsistency in the scaffold setup.
2021-09-02 15:26:27 -03:00
ghubstan
7eb0a19651
Delete generated rate metering config files in cleanDaoSetup task 2021-09-02 15:20:32 -03:00
ghubstan
7351b08850
Reduce # of hash calculations in UI OfferBook view
We can cache an offer payload hash as soon as its `offerFeePaymentTxId`
is set.  (The payload hash cannot be calculated until the object can
be transformed into a protobuf message, which requires a non-null
offerFeePaymentTxId.)

Another benefit is removal of the payload hash argument from the
`OfferBookListItem` constructor.

Changes include

- `OfferPayload` Added `transient byte[] hash` field + getter method
   (where hash is calculated and cached).

- `OfferBookService` Removed `P2PDataStorage.ByteArray hashOfPayload`
   parameter from `OfferBookChangedListener` listener methods
  `onAdded` & `onRemoved`.  (Hash is cached in `OfferPayload`.)

- `P2PDataStorage` Added null check to `ByteArray` class constructor.

- `OfferBook` Adjusted for change to `OfferBookChangedListener`.
   Also removed redundant payload hash null checks.

- `TakeOfferDataModel` and `MarketAlerts` Adjusted for change to
  `OfferBookChangedListener`.

- `OfferBookListItem` Removed overloaded constructor with
  `@Nullable P2PDataStorage.ByteArray hashOfPayload` parameter.
   (Field value is set from cached offer payload hash.)

- `OfferBookViewModelTest` and `OfferMaker`  Adjusted test and test fixture:
   do not attempt to create offer payloads without an `offerFeePaymentTxId`.
2021-09-01 15:48:35 -03:00
jmacxx
07cf5e34a3
Allow user to initiate arbitration once locktime has expired 2021-09-01 09:04:52 -05:00
jmacxx
74f7061061
Fix race between mempool notify / P2P notify causing failed trade 2021-08-30 10:00:38 -05:00
sqrrm
fc329f6f15
Merge pull request #5678 from bisq-network/release/v1.7.3
Release/v1.7.3
2021-08-30 14:29:27 +02:00
Christoph Atteneder
0e4278012b
Revert to SNAPSHOT version 2021-08-30 14:16:11 +02:00