Commit graph

7592 commits

Author SHA1 Message Date
Alejandro García
c079407cf6
Merge pull request #7351 from thecockatiel/fix_short_id_and_pre_condition
fix: Utilities.getShortId and FluentProtocol.preCondition usage
2025-01-15 20:25:52 +00:00
Alejandro García
c8e05fc2ee
Merge pull request #7350 from suddenwhipvapor/swp-mediator
Add suddenwhipvapor mediator instance onion
2025-01-15 20:25:29 +00:00
Alejandro García
cd815371f6
Merge pull request #7348 from thecockatiel/fix_bugs
fix: remove unnecessary null check, use correct marker class, add mis…
2025-01-15 20:24:41 +00:00
HenrikJannsen
6473071eba
Refactor: rename
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2025-01-14 23:52:38 +07:00
HenrikJannsen
5c547c2994
Implements: https://github.com/bisq-network/proposals/issues/469Change
MIN_BUYER_SECURITY_DEPOSIT and SELLER_SECURITY_DEPOSIT values to 0.0003 BTC after activation date of 1.3.2025

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2025-01-14 23:52:23 +07:00
Alva Swanson
4ec4477ddf
DaoSnapshot: Fix resyncDaoStateFromResources race condition 2025-01-09 20:23:54 +00:00
Alva Swanson
15f6b8ece5
DaoSnapshot: Fix race condition in applySnapshot 2025-01-09 20:23:53 +00:00
Alva Swanson
3de36509f0
DaoSnapshot: Fix isParseBlockChainComplete field data race 2025-01-09 20:23:53 +00:00
Alva Swanson
f5a0b6982e
DaoSnapshot: Skip snapshot creation early if another in progress
Check if another snapshot creation is in progress before doing any
computation.
2025-01-09 20:23:52 +00:00
Alva Swanson
3b5ccd267b
DaoSnapshot: Fix persistingBlockInProgress data race
The persistingBlockInProgress field is read by the block parsing thread.
However, the block parsing thread and user thread write to the
persistingBlockInProgress field. The block parsing thread might see the
update too late and trigger another snapshot before the previous was
done.
2025-01-09 20:23:52 +00:00
Alva Swanson
ba333f225c
Refactor baseCurrencyNetwork field to getter access 2025-01-09 20:20:37 +00:00
thecockatiel
61c90bfd39
chore: add small comment to preCondition 2025-01-05 13:55:09 +03:30
thecockatiel
1c8b906d61
fix: warn extra preCondition handler & fix usage 2025-01-05 13:49:49 +03:30
thecockatiel
a9b01707e0
fix: Preferences.setRpcUser if statement 2025-01-04 22:52:04 +03:30
thecockatiel
6af0cafe0d
fix: add curly braces and else 2025-01-04 22:42:27 +03:30
suddenwhipvapor
78770b2960
Add onion for suddenwhipvapor mediator instance 2025-01-04 15:59:02 +00:00
thecockatiel
ae21be24e7
fix: remove unnecessary null check, use correct marker class, add missing return keyword 2025-01-04 12:45:08 +03:30
Alva Swanson
f82cf97d58
Fix crash due to broken filter provided nodes merge
The filter provided nodes were added to a read-only List and this lead
to crashes at start-up. We didn't catch the bug before because the lists
in the tests are mutable. Now the FederatedBtcNodeProvider.getNodes
method operates on Streams.
2025-01-01 20:20:08 +00:00
Alejandro García
aa521c7e88
Merge pull request #7326 from myuubunny/master
Fix typo in Argentinian Peso (ARS) message
2024-12-27 06:11:10 +00:00
Alejandro García
0dde5eac72
Merge pull request #7330 from alvasw/test_HistoricalDataStoreService.getMapSinceVersion
Write tests for HistoricalDataStoreService.getMapSinceVersion(...)
2024-12-27 06:03:38 +00:00
Alva Swanson
bd95df95a4
Write tests for HistoricalDataStoreService.getMapSinceVersion(...) 2024-12-21 00:11:08 +00:00
Alva Swanson
0ba23b5a50
api: Include my offers in getoffers 2024-12-20 23:59:48 +00:00
Alva Swanson
c3fbc859f1
getoffers: Include offers that can't be taken
The getoffers api doesn't return any offers until the user has created
his payment accounts. Afterward the api will only return offers that the
user can take. This behavior is confusing and frustrating for new
developers. The new behavior is to show all offers for a given market
(direction, currency).
2024-12-20 23:59:47 +00:00
Alva Swanson
462144eb8f
api: Remove getoffers' --all option 2024-12-20 23:59:42 +00:00
myuu
eb836d4122
Fix typo in Argentinian Peso (ARS) message 2024-12-17 14:19:46 -03:00
Alva Swanson
f098ece85e
BitcoinjBsqTests: Create per test BSQ wallet
At the moment, some tests are sharing the same BSQ wallets. This change
creates a separate wallet for indenpendent tests to improve the tests's
reliability.
2024-12-09 10:32:38 +00:00
Alva Swanson
53467f953a
RegtestWalletAppKit: Implement createNewBsqWallet method
The createNewBsqWallet method creates a new BitcoinJ wallet and
registers it with BitcoinJ's BlockChain and PeerGroup.
2024-12-09 10:29:33 +00:00
Alva Swanson
b78f3abb29
Add send more BSQ than in wallet test 2024-12-09 10:26:59 +00:00
Alva Swanson
848694ad86
Add send BSQ from empty wallet test 2024-12-09 10:24:22 +00:00
Alva Swanson
5ac81f9945
BitcoinjRegtestSetup: Implement wallet funding
The fundWallet method sends the given amount to the BitcoinJ wallet from
the Bitcoin Core miner wallet, mines one block, and waits until the
BitcoinJ wallet updates its wallet balance.
2024-12-09 10:15:33 +00:00
Alva Swanson
1aa4a3d048
BsqWalletV2Test: Add invalid and dust send tests
The tests try to send 0 BSQ and the current dust amount in BSQ.
2024-12-09 09:58:40 +00:00
Alejandro García
10a3a048c1
Merge pull request #7294 from alvasw/sendBsq_Throw_InsufficientMoneyException_when_BSQ_balance_too_low
sendBsq: Throw InsufficientMoneyException when BSQ balance too low
2024-11-20 05:49:03 +00:00
Alejandro García
7a6ef6b8e9
Merge pull request #7293 from alvasw/core_Implement_sendBsqTest
core: Implement sendBsqTest
2024-11-20 05:48:20 +00:00
Alejandro García
dc2cd1792b
Merge pull request #7312 from alvasw/FederatedBtcNodeProvider_Compare_banned_node_address_and_port
FederatedBtcNodeProvider: Compare banned node address and port
2024-11-20 05:47:35 +00:00
Alejandro García
d67a234e3e
Merge pull request #7311 from alvasw/BtcNodeProvider_Fix_BTC_node_banning
BtcNodeProvider: Fix BTC node banning
2024-11-20 05:47:01 +00:00
Alejandro García
9aed52f2b3
Merge pull request #7309 from alvasw/BtcNodes_Fix_hostname_parsing
BtcNodes: Fix hostname parsing
2024-11-20 05:45:57 +00:00
Alejandro García
633c9c1599
Merge pull request #7308 from alvasw/Add_FederatedBtcNodeProviderTest.onlyHardcodedNodes_test
Add FederatedBtcNodeProviderTest.onlyHardcodedNodes test
2024-11-20 05:45:30 +00:00
Alejandro García
624467a90d
Merge pull request #7307 from alvasw/Pass_list_of_nodes_instead_of_BtcNodes_class_to_FederatedBtcNodeProvider
Pass nodes instead of BtcNodes class to FederatedBtcNodeProvider
2024-11-20 05:45:04 +00:00
Alejandro García
1ba9d842ea
Merge pull request #7306 from alvasw/Move_federated_BTC_node_selection_to_FederatedBtcNodeProvider
Move federated BTC node selection to FederatedBtcNodeProvider
2024-11-20 05:43:48 +00:00
Alejandro García
0ddbd30e6b
Merge pull request #7305 from alvasw/BtcNode_Make_port_field_final
BtcNode: Make port field final
2024-11-20 05:43:14 +00:00
Alejandro García
f3c986ce47
Merge pull request #7304 from alvasw/Fix_duplicates_in_BtcNode_list
Fix duplicates in BtcNode list
2024-11-20 05:42:45 +00:00
Alejandro García
42f757fa1d
Merge pull request #7303 from alvasw/fix_typo_from_pr_7120
FeedbackWindow: Fix double wording from PR #7120
2024-11-20 05:41:45 +00:00
Alejandro García
33e760b49e
Merge pull request #7297 from alvasw/fix_bitcoin_core_peer_selection
BtcNetworkConfig: Shuffle Bitcoin Core peers
2024-11-20 05:41:06 +00:00
Alva Swanson
17d48d989a
FederatedBtcNodeProvider: Compare banned node address and port 2024-11-18 22:22:22 +00:00
Alva Swanson
0da22ab3b0
BtcNodeProvider: Fix BTC node banning
The FederatedBtcNodeProvider compared the list of banned nodes with each
BtcNode's hostname instead of checking a BtcNode's hostname, ip address,
and onion address.
2024-11-18 22:20:26 +00:00
Alva Swanson
41fbb75468
BtcNodes: Fix hostname parsing
The fromFullAddress method parsed hostnames as IPV4 addresses instead as
hostnames.
2024-11-18 22:17:08 +00:00
Alva Swanson
f7d80ee1a8
Add FederatedBtcNodeProviderTest.onlyHardcodedNodes test 2024-11-18 22:15:16 +00:00
Alva Swanson
c4e82d59ec
Pass filterProvidedBtcNodes and bannedBtcNodes to FederatedBtcNodeProvider 2024-11-18 22:13:01 +00:00
Alva Swanson
bc6954e53a
Pass list of nodes instead of BtcNodes class to FederatedBtcNodeProvider 2024-11-18 22:10:12 +00:00
Alva Swanson
b90b7b5e21
Move federated BTC node selection to FederatedBtcNodeProvider 2024-11-18 22:08:13 +00:00