Commit graph

1005 commits

Author SHA1 Message Date
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
Alejandro García
6db1c9e21b
Merge branch 'master' into release/v1.9.18 2024-12-23 05:13:02 +00:00
Alva Swanson
bd95df95a4
Write tests for HistoricalDataStoreService.getMapSinceVersion(...) 2024-12-21 00:11:08 +00:00
Alejandro García
55ec429bcb
Update data stores for v1.9.18 2024-11-21 19:50:39 +00:00
Alva Swanson
bb66c827b9
NodeAddress: Fix broken IPV6 parsing
Bisq accepts IPV6 node addresses but the NodeAddress can't parse them.
2024-11-21 19:38:22 +00:00
Alva Swanson
c4ac0b16fa
NodeAddress: Fix broken IPV6 parsing
Bisq accepts IPV6 node addresses but the NodeAddress can't parse them.
2024-11-18 22:18:57 +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
HenrikJannsen
f96511f0fa
Dont log bridges if empty
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-07-05 16:11:14 +07:00
Alva Swanson
7731996dac
Fix v1.9.16 datastores 2024-06-16 12:36:37 +00:00
HenrikJannsen
1a75e36039
Add ExcludeForHashAwareProto interface to DataAndSeqNrPair
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:06:43 +00:00
HenrikJannsen
78287da8a3
Improve logs
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:06:43 +00:00
HenrikJannsen
55878c7b15
Fix tests
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:05:54 +00:00
HenrikJannsen
19a9526d55
Refactor: Replace toProtoMessage().toByteArray() calls to serialize() or serializeForHash() methods.
Currenty serializeForHash just calls serialize. This will be change in later commits
2024-06-12 00:05:53 +00:00
HenrikJannsen
07b8bcfb34
Update resource files
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:02:42 +00:00
HenrikJannsen
1b0bd5f9c6
Add Socks5ProxyInternalFactory interface and use in Socks5ProxyProvider
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-10 19:58:11 +07:00
HenrikJannsen
cb565bdbb2
Add ExcludeForHashAwareProto interface to DataAndSeqNrPair
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-08 16:51:43 +07:00
HenrikJannsen
b3288e3839
Improve logs
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-08 15:02:05 +07:00
HenrikJannsen
23af560adb
Fix tests
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-08 15:01:14 +07:00
HenrikJannsen
5661409bbc
Refactor: Replace toProtoMessage().toByteArray() calls to serialize() or serializeForHash() methods.
Currenty serializeForHash just calls serialize. This will be change in later commits
2024-06-08 13:15:42 +07:00
HenrikJannsen
61ec749fc9
Update resource files
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 14:38:37 +07:00
HenrikJannsen
32a8091484
Add inventory module and dependencies 2024-06-02 15:02:05 +07:00
Alejandro García
daab50c1e9
Update data stores for v1.9.16 2024-06-01 03:22:59 +02:00
HenrikJannsen
dcb736d497
Increase GetDataRequestHandler.MAX_ENTRIES to 20 000.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-25 18:42:16 +02:00
HenrikJannsen
9460dfe1ff
Increase GetDataRequestHandler.MAX_ENTRIES to 20 000.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-24 23:29:33 +07:00
HenrikJannsen
2e40a8cc24
Add BsqBlocks
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:11:16 +07:00
HenrikJannsen
acbcbd2ad6
Add DAO resource files
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:11:15 +07:00
HenrikJannsen
a375f18fca
Remove TempProposalStore_BTC_MAINNET resource files
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:11:15 +07:00
HenrikJannsen
40ffea465e
Add resource files
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-21 11:11:14 +07:00
Gabriel Bernard
db04961300
Merge pull request #7101 from bisq-network/release/v1.9.15
Release/v1.9.15
2024-05-12 17:17:41 +00:00
Steven Barclay
23f871a78b
Fix data race in IgnoredMailboxMap
Make the 'dataMap' field a ConcurrentHashMap instead of a HashMap, to
prevent a ConcurrentModificationException, which was recently observed
when calling 'IgnoredMailboxMap::toProtoMessage' from the persistence
manager inside the user thread during startup of bisq-desktop. Tracing
through the code, this likely happened during an iteration through the
keyset of 'dataMap' (to check for nulls, inside the proto serialisation
logic during persistence), while simultaneously adding ignored mailbox
messages to the map on a separate thread spawned from the method,
'MailboxMessageService::threadedBatchProcessMailboxEntries'. (The latter
was made asynchronous so as not to block the UI.)

(Since there is a call to 'PersistenceManager::requestPersistence' after
every addition to the ignored mailbox map, there hopefully won't be any
missed entries in the final persisted map, even though the snapshot of
ConcurrentHashMap being iterated through won't be fresh as long as new
entries are simultaneously added.)
2024-05-08 18:18:30 +02:00
Steven Barclay
437f81ff08
Remove unused imports from MailboxMessageService 2024-05-08 17:28:05 +02:00
HenrikJannsen
31ce213a98
Increase MAX_REPEATED_REQUESTS from 20 to 30 and in case we are a seed node to 100.
In case the other seed node has not updated the historical data is not taken into account, thus we would get more repeated requests until all data is received. To avoid that we get stuck we increase the limit.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-04-01 14:50:59 +07:00
Alejandro García
b03c2880d6
Update data stores for v1.9.15 2024-02-12 13:17:00 +02:00
Steven Barclay
99f639a589
Replace MockitoSession with the Mockito test extension
Now that 'mockito-junit-jupiter' has been added to the build test
dependencies, we may replace the manual setup & tear down of a Mockito
session with the 'MockitoExtension' JUnit 5 test extension, as the old
Mockito JUnit 4 test runner was no longer available upon upgrading to
Jupiter. This slightly simplifies the tests which use '@Mock', '@Spy',
etc.
2024-02-03 02:36:31 +08:00
Alejandro García
237c7054be
Merge pull request #6949 from stejbac/change-burning-man-capping-algorithm
Change burning man capping algorithm
2023-12-20 04:59:40 +00:00
Steven Barclay
32d4a8f50d
Replace deprecated 'initMocks' calls with MockitoSession
Since the 'MockitoAnnotations.initMocks' method used to initialise
@Mock, @Spy, etc. fields is deprecated, use MockitoSession instead, as
suggested by the Javadoc. (Or just remove the call, if the test class is
not actually using any Mockito annotations.)

This allows strict stubbing (the default for Mockito 4), though it must
be configured to be lenient in the P2P test classes, to prevent failures
due to unused stubs.
2023-11-28 03:36:25 +08:00
djing chan
34857c9d89
Add flag to avoid multiple calls of onDataReceived
Only start requesting blocks after wallet is synced.
Update connection state when doing repeated block requests.
Improve logs.
2023-11-19 16:42:37 +07:00
djing chan
536a29f76a
Improve logs for block requests 2023-11-19 15:22:38 +07:00
djing chan
c8fd897e54
Merge branch 'improve-logs' into fix-initial-data-request-handling 2023-11-19 14:48:43 +07:00
djing chan
08118e387e
Use onDataReceived instead of onUpdatedDataReceived for considering p2p network state as initialized 2023-11-19 14:47:52 +07:00
djing chan
8aa9d7cf42
Increase num repeated request limit from 10 to 20.
Make logmore visible.
2023-11-19 14:47:04 +07:00
djing chan
8ee67e555d
Change log level to debug for non-essential logs
Set loge level for org.berndpruenster.netlayer.tor.Tor to WARN (we get repeated logs about HS announced to network from netlayer - would be better to change in netlayer).
Make data request/response logs more visible with line breaks
2023-11-19 14:40:24 +07:00
jmacxx
b8d1c92cd4
Download all P2P data before announcing P2P ready. 2023-11-13 19:03:00 -06:00
Alejandro García
e9bdee6400
Merge branch 'master' into release/v1.9.14 2023-10-16 19:47:43 +00:00
Alejandro García
13c87b2a05
Merge pull request #6905 from alvasw/external_tor_wait_until_bootstrapped
tor: Wait until external Tor bootstrapped
2023-10-10 23:24:36 +00:00
Alva Swanson
887fc39509
tor: Wait until external Tor bootstrapped 2023-10-10 20:10:03 +02:00