Commit Graph

18460 Commits

Author SHA1 Message Date
Alejandro García
1f1c768313
Merge pull request #7282 from alvasw/add_bitcoind_submodule
Add bitcoind submodule
2024-11-08 02:53:31 +00:00
Alva Swanson
bd55503611
Add bitcoind submodule
We use the same bitcoind regtest module in Bisq 1 and 2. To avoid
duplicate code I moved the bitcoind module to its own repository.
2024-11-06 20:49:46 +00:00
Alejandro García
4a65e40d5c
Merge pull request #7281 from alvasw/Socks5MultiDiscovery_Shutdown_peer_discovery_methods
Socks5MultiDiscovery: Shutdown peer discovery methods
2024-11-05 05:08:07 +00:00
Alejandro García
25009074ef
Merge pull request #7280 from alvasw/Socks5MultiDiscovery_Dont_create_useless_array
Socks5MultiDiscovery: Don't create useless array
2024-11-05 05:07:27 +00:00
Alejandro García
1baf67ef27
Merge pull request #7279 from alvasw/DnsLookupTor_Close_socket_after_usage
DnsLookupTor: Close socket after usage
2024-11-05 05:06:51 +00:00
Alejandro García
694bfeff96
Merge pull request #7278 from alvasw/Migrate_Socks5SeedOnionDiscovery_to_BitcoinCoreSeedListDiscovery
Migrate Socks5SeedOnionDiscovery to BitcoinCoreSeedListDiscovery
2024-11-05 05:06:05 +00:00
Alejandro García
5cdc1cad26
Merge pull request #7277 from alvasw/Implement_BitcoinCoreSeedListDiscovery_method
Implement BitcoinCoreSeedListDiscovery method
2024-11-05 05:05:09 +00:00
Alejandro García
1e7f4eabed
Merge pull request #7275 from bisq-network/dependabot/github_actions/actions/setup-java-4.5.0
build(deps): bump actions/setup-java from 4.4.0 to 4.5.0
2024-11-05 05:04:44 +00:00
Alejandro García
24d3dd76bb
Merge pull request #7274 from bisq-network/dependabot/github_actions/actions/checkout-4.2.2
build(deps): bump actions/checkout from 4.2.1 to 4.2.2
2024-11-05 05:04:01 +00:00
Alva Swanson
b8c46b1e42
Socks5MultiDiscovery: Shutdown peer discovery methods 2024-11-05 01:06:28 +00:00
Alva Swanson
bb3acb3fa9
Socks5MultiDiscovery: Don't create useless array
We create an array in the getPeers method and throw it away without
using it.
2024-11-05 01:03:45 +00:00
Alva Swanson
f92f4e8da0
DnsLookupTor: Close socket after usage 2024-11-05 01:02:25 +00:00
Alva Swanson
e1c7a0dc30
Migrate Socks5SeedOnionDiscovery to BitcoinCoreSeedListDiscovery
Our Socks5SeedOnionDiscovery contains deprecated Tor V2 onion addresses
that are not supported anymore. BitcoinCoreSeedListDiscovery contains
Tor V3 addresses that are shipped with Bitcoin Core.
2024-11-05 00:59:46 +00:00
Alva Swanson
c959f7b52c
Implement BitcoinCoreSeedListDiscovery method
- Update bitcoin core seed list to upstream version
- Use IpV4 and onion addresses from it

Our users are still protected because we connect to IpV4 addresses
through Tor. This improves connectivity because Bitcoin Core creates an
ephemeral onion service on each startup.
2024-11-05 00:54:37 +00:00
dependabot[bot]
49d9f705de
build(deps): bump actions/setup-java from 4.4.0 to 4.5.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v4.4.0...v4.5.0)

---
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>
2024-10-28 14:28:41 +00:00
dependabot[bot]
11a04170c5
build(deps): bump actions/checkout from 4.2.1 to 4.2.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.2.1...v4.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 14:28:37 +00:00
HenrikJannsen
cbe3ead0d5
Merge pull request #7270 from bisq-network/dependabot/github_actions/actions/checkout-4.2.1
build(deps): bump actions/checkout from 4.2.0 to 4.2.1
2024-10-20 12:58:01 +07:00
HenrikJannsen
5139a97161
Merge pull request #7269 from cparke2/russian-translations
Added 500+ string translations to Russian language file
2024-10-20 12:57:37 +07:00
dependabot[bot]
04aea3b00c
build(deps): bump actions/checkout from 4.2.0 to 4.2.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.2.0...v4.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 14:46:43 +00:00
Chris Parker
2556db7b37
Added 500+ string translations to Russian language file
Removed *non-printable characters* that were accidentally added
during word analysis of the translations file:
   ... (например, «С днем \u200b\u200bрождения, Сьюзен!») ...
While apparently harmless and invisible, these do not belong
and a needle in the haystack later, so removing them now.
2024-10-12 19:26:32 -04:00
HenrikJannsen
6c7bf29409
Merge pull request #7268 from cparke2/russian-translations
Added 500+ string translations to Russian language file
2024-10-12 15:16:37 +07:00
Chris Parker
885f16e15d
Added 500+ string translations to Russian language file
Code Review follow-up - Remove substition replacements for strings which
do not have any substition parameters, as these are causing confusion as
to whether apostrophes are required.
2024-10-12 00:01:15 -04:00
Chris Parker
90644c3514
Added 500+ string translations to Russian language file
Code Review follow-up - fix incorrect instances of "''"
vs. "'" when substitutions ("{0}", etc.) are present or
absent.
2024-10-11 12:30:23 -04:00
HenrikJannsen
f10aa5e36d
Merge pull request #7263 from bisq-network/dependabot/github_actions/actions/checkout-4.2.0
build(deps): bump actions/checkout from 4.1.7 to 4.2.0
2024-10-11 14:55:31 +07:00
HenrikJannsen
b8e393971c
Merge pull request #7262 from bisq-network/dependabot/github_actions/actions/setup-java-4.4.0
build(deps): bump actions/setup-java from 4.3.0 to 4.4.0
2024-10-11 14:55:20 +07:00
Chris Parker
5908d16720
Added 500+ string translations to Russian language file
Minor typographical correction: Added back a blank line to preserve
line number matching during code review. No change to strings.
2024-10-11 03:02:34 -04:00
Chris Parker
ecb09a4bef
Added 500+ string translations to Russian language file
Previously, about 1,585 out of 2,676 strings (59.23%) were
translated into Russian, the rest remained in English.
This meant a native Russian speaker with limited English
ability might have great difficulty using Bisq application
and might not understand or notice the way the system
works and the many important pop-ups that can appear.
Now there are about 2,103 strings in Russian (78.59%) and
most of the messages the end user normally would see are
displayed in Russian, making the application very usable.
2024-10-11 02:36:54 -04:00
HenrikJannsen
22c6f16c9b
Merge pull request #7265 from cparke2/create-sbp-payment-method
Create payment method "Faster Payments System (SBP)" for Russian Ruble
2024-10-03 16:56:15 +07:00
Chris Parker
2ed9abf000
Create payment method "Faster Payments System (SBP)" for Russian Ruble
Removed all caps of "RUSSIA" in new account pop-up and renamed existing
payment method "Faster Payments" which is a similarly named payment
method to "Faster Payment System (UK)", as required follow-up to
to pull request https://github.com/bisq-network/bisq/pull/7255 and
discussed in issue https://github.com/bisq-network/growth/issues/288
2024-10-02 21:37:10 -04:00
dependabot[bot]
c02a6a9b90
build(deps): bump actions/checkout from 4.1.7 to 4.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.7...v4.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 14:22:46 +00:00
dependabot[bot]
d738863d81
build(deps): bump actions/setup-java from 4.3.0 to 4.4.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v4.3.0...v4.4.0)

---
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>
2024-09-30 14:22:44 +00:00
HenrikJannsen
f37344bdc6
Merge pull request #7252 from cparke2/phone-number-validator-required-length-option
New option in PhoneNumberValidator to enforce exact number of digits
2024-09-27 16:07:50 +07:00
HenrikJannsen
122faa5c03
Merge pull request #7259 from cparke2/offer-view-currency-blank-bug
Fix randomly blank currency box upon opening the Offer screen
2024-09-27 16:06:26 +07:00
HenrikJannsen
b4c6963407
Merge pull request #7255 from cparke2/create-sbp-payment-method
Create payment method "Faster Payments System (SBP)" for Russian Ruble
2024-09-26 19:43:48 +07:00
HenrikJannsen
2f665fcb2c
Merge pull request #7253 from cparke2/cleanup-displayStrings-inconsistencies
Language strings file cleanup; added missing, applied rename
2024-09-26 19:37:22 +07:00
HenrikJannsen
b9188bd72a
Merge pull request #7257 from cparke2/same-bank-case-insensitive-match
"Transfer Same Bank" & "Transfer Specific Banks" match case-insentitivity
2024-09-26 19:34:00 +07:00
HenrikJannsen
68f5625518
Merge pull request #7258 from cparke2/same-bank-blank-bic
Improve exception msg and handling when 'Same Bank' BIC/SWIFT blank
2024-09-26 19:22:46 +07:00
HenrikJannsen
1480fe2021
Merge pull request #7251 from cparke2/sort-nonlatin-payment-methods-top
Sort foreign alphabet payment methods above the untranslated ones.
2024-09-26 18:35:18 +07:00
Chris Parker
abe3329071
Fix randomly blank currency box upon opening the Offer screen
When clicking Create Buy/Sell Offer, or Edit/Duplicate/Clone an existing
offer, randomly the initial display of "Currency" associated with the
initially selected payment method was displayed as blank. This seems to
have been caused by scheduling the selection of the initial payment
method combobox selection to happen on a different thread rather than
immediately selecting it (apparently, sometimes the secondard event to
select the currency gets lost).
2024-09-25 19:49:24 -04:00
Chris Parker
7aa61fb6b0
Improve exception msg and handling when 'Same Bank' BIC/SWIFT blank
Users in most countries (see BankUtil.useValidation() ) can create a "Transfer Same Bank"
account with no BIC/SWIFT code. However, to create an offer using this account, it must
have a bankId or JAVA will throw a 'null pointer exception', and the app. will become
unhealthy and hang trying on exit. This fix adds a validation check for the condition and
throws a more "friendly" exception which explains the problem and keeps the app. healthy.
2024-09-24 05:12:52 -04:00
Chris Parker
8e32546f02
"Transfer Same Bank" & "Transfer Specific Banks" case-insentitive
Offers match these payment method types only if bank names entered
in the maker and taker accounts are the same. However, if the maker
entered, for example, "BANK OF AMERICA" as bank name in their Bisq
account but the taker entered "Bank of America", the offer account
mismatches without this fix to make the match case-insensitive.
2024-09-23 12:26:13 -04:00
Chris Parker
0bc6e632ec
Add new payment method "Faster Payments System (SBP)" for Russian Ruble
Discovered missing displayStrings that were not included in the previous
commit, and added them.
2024-09-22 19:42:16 -04:00
Chris Parker
a0f24fe5d5
Add new payment method "Faster Payments System (SBP)" for Russian Ruble
Added new displayStrings into other language files as a placeholder for
future translation, minor revision to order of payment method fields
in source code (cosmetic, no impact on functionality)
2024-09-22 18:55:04 -04:00
Chris Parker
a136f79bd1
Add new payment method "Faster Payments System (SBP)" for Russian Ruble
This is the standard P2P payment method in Russia to perform funds transfers and
payments between Russian bank accounts in Russian Rubles. There is no chargeback
risk. Recipient bank account is located using telephone number and bank name,
and sender receives recipients first name, middle name, and initial of last name
to confirm the phone number entered is correct before sending. Adding this new
payment method has been discussed at length on the GitHub 'growth' channel at:
   https://github.com/bisq-network/growth/issues/288
2024-09-22 18:05:19 -04:00
Chris Parker
595044f4cc
Code Review followup: Use Optional<> and create a new Map for length
Created new class PhoneNumberRequiredLengths.java with a Map lookup for the
requiredlength of phone numbers in select countries that are well-known to
have uniform fixed-length phone number throughout. Country codes missing
will continue to use just the previous length-range algorithms.  Lookup
into this Map is integrated into PhoneNumberValidator.java, no longer
needed an overloaded constructor to provide this functionality.
[New .java file was accidentally omitted from previous commit]
2024-09-22 04:48:57 -04:00
Chris Parker
824997d337
Code Review followup: Use Optional<> and create a new Map for length
Created new class PhoneNumberRequiredLengths.java with a Map lookup for the
requiredlength of phone numbers in select countries that are well-known to
have uniform fixed-length phone number throughout. Country codes missing
will continue to use just the previous length-range algorithms.  Lookup
into this Map is integrated into PhoneNumberValidator.java, no longer
needed an overloaded constructor to provide this functionality.
2024-09-22 04:30:31 -04:00
Chris Parker
26fb559380
Language strings file cleanup; added missing, applied rename
The Bisq policy for displayStrings is stated in the comments
at the beginning of the primary (English) file that all string
keys should be present in all language files, even though
fallthrough would otherwise result. In reviewing how well
the language files actually comply with this rule, just 5
strings out 2,670 did not comply; these changes correct that
and restore all language files to have all strings.
2024-09-22 01:10:55 -04:00
Chris Parker
1f3cd6765f
Added missing resource string, added unittest, fixed minor bug
Original commit omitted the new display string used by this new
feature. Additionally, added two unittests to verify the code
changes in this pull request work and do not break existing
functionality.
2024-09-21 14:43:47 -04:00
Chris Parker
9dc338b87a
New option in PhoneNumberValidator to enforce exact number of digits
Until now, national phone numbers worldwide just had to be between
5-12 digits long to pass validation. However, many countries have a
specific number of of digits in all their phone numbers which is
very well known (EX: all USA numbers are 10 digits long). So this
change adds an optional parameter to specify how many digits must
be in the phone number for it to validate. Uncommited changes will
also use this new capability, provided this pull request is adopted.
2024-09-19 07:14:01 -04:00
Chris Parker
c5ffb5c337
Sort foreign alphabet payment methods above the untranslated ones.
By default, JAVA sorts foreign characters below English characters.
However, the payment methods that are translated are also more
likely to be used by someone native to that language, so it makes
better sense to sort as two separate sets and put the foreign
language ones on top. This commit does that for payment methods.
2024-09-19 03:11:42 -04:00