Commit Graph

15901 Commits

Author SHA1 Message Date
Christoph Atteneder
b3c85342e3
Merge pull request #5938 from ghubstan/7-deprecate-api-getmyoffer
Deprecate API 'getmyoffer' (#7)
2022-01-03 12:15:35 +01:00
Christoph Atteneder
bb68ff03a2
Merge pull request #5939 from ghubstan/8-api-payment-acct-opt-n-doc
Fix API CLI's '--payment-account-id' opt name, document 'createcryptopaymentacct' (#8)
2022-01-03 12:14:58 +01:00
dependabot[bot]
df5a062040
Bump actions/setup-java from 2.4.0 to 2.5.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](5f00602cd1...f0bb916062)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 10:56:02 +00:00
dependabot[bot]
01c64d2394
Bump actions/checkout from 2.3.5 to 2.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1e204e9a92...ec3a7ce113)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 10:55:58 +00:00
Christoph Atteneder
ec42d104de
Merge pull request #5943 from dbast/master
CI Security: Use Github actions via sha1 (not tags) and keep them updated via dependabot
2022-01-03 11:55:35 +01:00
Daniel Bast
32ddd4dbf9
Use Github actions via sha1 (not tags) and keep them updated via dependabot
Tags are mutable and can change unexpectedly. Referencing actions via sha1
is more secure in that regard. Dependabot helps to automatically update to
newer versions.
2021-12-30 09:55:40 +01:00
ghubstan
25c67902cd
Merge branch 'master' into 8-api-payment-acct-opt-n-doc 2021-12-29 10:06:06 -03:00
ghubstan
bf14c65c8b
Remove duplicated methods after conflict resolution attempt 2021-12-29 09:59:48 -03:00
Stan
0ae2b1fb5c
Merge branch 'master' into 7-deprecate-api-getmyoffer 2021-12-29 09:52:34 -03:00
Christoph Atteneder
2c43cfb56f
Merge pull request #5936 from dbast/gradle_update
Update gradle wrapper to 7.3.3
2021-12-29 13:23:34 +01:00
Christoph Atteneder
d5dc8366f7
Merge pull request #5893 from ghubstan/6-api-xmr-trading
API XMR/BTC trading pair support (#6)
2021-12-29 12:51:01 +01:00
jmacxx
d901faa29e
Fix fat finger protection issue
Normally, for currencies that have a market price feed, Bisq provents
the user from entering offers that are more than 50% away from spot.
It recently came to light via a mediation case that this fat finger
protection in Bisq has a flaw.
A certain sequence of focus operations in the enter offer screen
causes fat finger protection to turn off, and then the user is no
longer protected from making offers that are significantly out of
the market.

To reproduce the issue:

Go to BUY (or SELL) BTC for an market priced asset, e.g. ETH
Click Create New Offer
Click the up/down arrow icon to make sure the % from market price
edit box is selected at the top.
Close the dialog, this saves the selected price format.
Click Create New Offer
Enter 0.25 BTC
Tab to the next field.
Click the up/down arrow icon to make sure the fixed price edit box
is selected at the top.  The price and deviation gets auto-populated
to market price and 0% deviation.
Enter a fixed price that is 10x higher than market value.
Click "Next" and the fat finger protection warning DOES NOT pop up.
This is because the deviation still shows 0%.
2021-12-28 16:29:21 -06:00
ghubstan
5a390fa359
Document 'createcryptopaymentacct' in API beta-test guide 2021-12-27 13:45:16 -03:00
ghubstan
cb4df2b1c3
Rename CLI opt '--payment-account' -> '--payment-account-id'
Adjust related docs and scripts.
2021-12-27 13:10:16 -03:00
Stan
53d693d710
Merge branch 'master' into 7-deprecate-api-getmyoffer 2021-12-27 12:09:22 -03:00
ghubstan
5f571cccca
Deprecate API 'getmyoffer'
The method 'getoffer' should support looking up a user's open-offers, and other users' available offers.

- Adjust api-beta-test-guide.md to use only 'getoffer'.
- Adjust trade simulation scripts to use only 'getoffer'.
- Adjust api testcases to use 'getoffer' in place of 'getmyoffer'.
- Mark appropriate methods and protobuf msgs as deprecated.
2021-12-27 12:05:17 -03:00
Daniel Bast
064c7590a8
Update gradle wrapper to 7.3.3
Done via `./gradlew wrapper --gradle-version 7.3.3 --distribution-type all`

From the release description:

This is a patch release for Gradle 7.3.

It fixes the following issues:

* #19360 Upgrade checks to Log4j 2.17.0

We recommend users upgrade to 7.3.3 instead of 7.3.

See also https://github.com/gradle/gradle/releases/tag/v7.3.3
2021-12-25 13:03:14 +01:00
jmacxx
1162060e28
Simplify the trade complete summary dialog 2021-12-24 14:22:59 -06:00
jmacxx
30706f05e2
No. of threads is already logged every 10 minutes from printSystemLoad 2021-12-24 12:40:49 -06:00
jmacxx
0b66fdcbef
Statistics logging changes
Add thread count to periodic logged statistics
Increase the statistic logging interval from 5 minutes to 1 hour
2021-12-23 14:42:18 -06:00
jmacxx
9378fe4603
Patch from chimp1984 improving the DaoState persistence 2021-12-23 14:40:11 -06:00
Christoph Atteneder
963b966f7f
Merge pull request #5933 from jmacxx/fix_issue_5932
Fix NPE taking offer when an account has no selected currency
2021-12-22 09:47:26 +01:00
jmacxx
9e753458e4
Fix NPE taking offer when an account has no selected currency 2021-12-21 21:26:26 -06:00
Christoph Atteneder
8bf6426393
Reset the icon color properly for market price margin information 2021-12-21 13:30:27 +01:00
WAT
7b03e20459
Added a snippet to actually install the lfs package after adding the repository with the quick curl command (#5869)
* Improve git lfs installation instructions
2021-12-20 12:44:41 +01:00
Christoph Atteneder
23d1856a60
Merge pull request #5852 from ghubstan/create-swift-acct-with-api
Support and test creation of Swift accounts via API
2021-12-20 11:49:20 +01:00
Christoph Atteneder
38d4413864
Merge pull request #5918 from KanoczTomas/KanoczTomas-add-btc-node-onionv3
Add @KanoczTomas btc node with onion v3 address
2021-12-20 09:26:12 +01:00
Christoph Atteneder
5c47d703e9
Merge pull request #5928 from cbeams/upgrade-log4j
Upgrade log4j 2.15.0 => 2.17.0
2021-12-20 09:19:52 +01:00
Chris Beams
07a139c927
Upgrade log4j 2.15.0 => 2.17.0
This change upgrades log4j to patch fixes for recently documented
CVE-2021-45046 CVE-2021-45105 vulnerabilities related to the Log4Shell
exploit.

Like the earlier fix, Bisq does not appear to be vulnerable to these
exploits because it does not use log4j directly, only transitively
depends on it. Nevertheless, the upgrade is still the safe bet.
2021-12-20 07:34:04 +01:00
KanoczTomas
dfbde480c6
Remove trailing spaces. 2021-12-18 23:41:33 +01:00
KanoczTomas
364560e348
Correct typo in list/array of nodes 2021-12-18 22:37:04 +01:00
Stan
705e34e917
Merge branch 'master' into 6-api-xmr-trading 2021-12-15 16:40:08 -03:00
KanoczTomas
6969ed7a84
Add @KanoczTomas btc node with onion v3 address 2021-12-14 23:58:07 +01:00
sqrrm
cf81fd451c
Merge pull request #5876 from ghubstan/5-api-bsqswap-simulation-n-docs-update
API BSQ swap simulation script and doc updates #5
2021-12-14 15:47:51 +01:00
sqrrm
18b70ad8c4
Merge pull request #5915 from bisq-network/release/v1.8.0
v1.8.0 Release
2021-12-14 09:11:29 +01:00
Christoph Atteneder
a7c38630e8
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.8.0
Conflicts:
	core/src/main/resources/i18n/displayStrings_pl.properties
2021-12-13 11:51:16 +01:00
Christoph Atteneder
3f380226fd
Revert to SNAPSHOT version 2021-12-13 11:47:14 +01:00
Christoph Atteneder
a5922661b4
Merge pull request #5910 from cbeams/avoid-log4j-0day
Avoid Log4J "Log4Shell" exploit
2021-12-10 11:05:27 +01:00
Chris Beams
5f0f9e8d7a
Avoid Log4J "Log4Shell" exploit
This commit upgrades our transitive dependency on Log4J 2 from 2.14.1 to
the newly-released 2.15.0 to avoid the CVE described at
https://www.lunasec.io/docs/blog/log4j-zero-day/.

We do not use log4j directly anywhere in our codebase, so our exposure
to this exploit was already mitigated if not eliminated, but Spring Boot
depends on Log4J 2 internally. This commit upgrades Spring Boot's
underlying dependency on Log4J to 2.15.0 in the manner recommended at
https://github.com/spring-projects/spring-boot/issues/28958.
2021-12-10 11:04:33 +01:00
Chris Beams
bb4ceaa238
Use Spring dependency-management plugin in pricenode
This is in preparation for addressing log4j 2 zero day exploit described
at https://www.lunasec.io/docs/blog/log4j-zero-day/. See full details
in the next commit.

Bringing in the dependency-management plugin results in many changes to
our Gradle verification metadata file, but all are BOM / POM / Module
manifests. No additional jar or code dependencies have been whitelisted
with this change.
2021-12-10 11:04:32 +01:00
Chris Beams
55becc59c0
Avoid Log4J "Log4Shell" exploit
This commit upgrades our transitive dependency on Log4J 2 from 2.14.1 to
the newly-released 2.15.0 to avoid the CVE described at
https://www.lunasec.io/docs/blog/log4j-zero-day/.

We do not use log4j directly anywhere in our codebase, so our exposure
to this exploit was already mitigated if not eliminated, but Spring Boot
depends on Log4J 2 internally. This commit upgrades Spring Boot's
underlying dependency on Log4J to 2.15.0 in the manner recommended at
https://github.com/spring-projects/spring-boot/issues/28958.
2021-12-10 10:40:36 +01:00
Chris Beams
31c6e16e63
Use Spring dependency-management plugin in pricenode
This is in preparation for addressing log4j 2 zero day exploit described
at https://www.lunasec.io/docs/blog/log4j-zero-day/. See full details
in the next commit.

Bringing in the dependency-management plugin results in many changes to
our Gradle verification metadata file, but all are BOM / POM / Module
manifests. No additional jar or code dependencies have been whitelisted
with this change.
2021-12-10 10:34:09 +01:00
chimp1984
97e4ed5a59
Revert usage of File.separator
File.separator doesn't appear to work on Windows. It has to be "/", not "\".
See: https://github.com/bisq-network/bisq/pull/5909#pullrequestreview-827992563
2021-12-09 20:07:21 +01:00
chimp1984
0f65567e1a
In case the BSQ blocks directory does not exist in resources (as in case of REG_TEST)
we do not want to log an error stacktrace but just an info message.

Use `File.separator` instead of "/"
2021-12-09 20:07:20 +01:00
Christoph Atteneder
7a6ae2b093
Merge pull request #5909 from chimp1984/avoid-logging-error-for-non-existing-resource-files
Dont log error if BSQ blocks directory does not exist in resources
2021-12-09 20:06:18 +01:00
chimp1984
225b78317f
Revert usage of File.separator
File.separator doesn't appear to work on Windows. It has to be "/", not "\".
See: https://github.com/bisq-network/bisq/pull/5909#pullrequestreview-827992563
2021-12-09 13:13:37 -05:00
chimp1984
d74bffb595
In case the BSQ blocks directory does not exist in resources (as in case of REG_TEST)
we do not want to log an error stacktrace but just an info message.

Use `File.separator` instead of "/"
2021-12-09 11:04:55 -05:00
Christoph Atteneder
eb074ac0e2
Merge pull request #5908 from ripcurlx/update-data-stores-for-v1.8.0-again
Update data stores for v1.8.0 (again, again)
2021-12-09 16:03:39 +01:00
Christoph Atteneder
f3d2cc38dc
Merge pull request #5907 from alvasw/offer_book_action_button_text_cutoff
OfferBook: Show Complete Text Of Action Button If Enough Space Available
2021-12-09 10:19:30 +01:00
chimp1984
444d045c4f
At shutdown the executor can throw a RejectedExecutionException which
is expected as we shut down the executor immediately.
If not thrown at shutdown or exception is not a RejectedExecutionException
we log a warning and re-throw the exception (to avoid change of behaviour
of current version). The exception is likely not handled by callers and goes up to
the uncaught exception handler.
2021-12-09 10:10:06 +01:00