Chris Beams
a72bb72473
Rename classes from Node* => SeedNode* as appropriate
...
Each of the classes here are in fact specific to seed nodes, so have
been renamed accordingly, e.g. from NodeAddresses => SeedNodeAddresses.
2018-02-21 10:45:21 +01:00
Chris Beams
b392864661
Rename CoreSeedNodeRepository => DefaultSeedNodeRepository
...
The original name was intended to distinguish that this implementation
is the implentation that lives within Bisq's 'core' module. This commit
renames the class to DefaultSeedNodeRepository as this is more idiomatic
and intention-revealing. This implementation is in fact the only one
ever gets used; it is the 'default' (and only) implementation.
2018-02-21 10:33:20 +01:00
Chris Beams
4ac45d7fe8
Rename SeedNodesRepository => SeedNodeRepository
...
The idiomatic approach to naming domain-driven design (DDD)-style
repositories is to use the singular form of the object being
encapsulated by the repository, e.g. BookRepository vs. BooksRepository.
Thus far, the repository interfaces and implementations created here in
Bisq have used the latter, plural form, but going forward we should
revert to the norm. To this end, this commit renames SeedNodesRepository
and its single implementation to SeedNodeRepository and
CoreSeedNodeRepository respectively.
2018-02-21 10:33:20 +01:00
Chris Beams
a737194d39
Make CoreSeedNodesRepository#seedNodeAddresses final
...
Also remove the @NotThreadSafe annotation as this class is now stateless
and immutable and therefore naturally threadsafe.
See https://github.com/bisq-network/exchange/pull/1362#discussion_r169143759
for context.
2018-02-21 10:33:20 +01:00
Chris Beams
9c77f4ce57
Simplify CoreSeedNodesRepository#isSeedNode stream pipeline
2018-02-21 10:33:19 +01:00
Chris Beams
b5af59dee0
Remove NetworkStressTest to simplify CoreSeedNodesRepository
...
NetworkStressTest has been ignored for months because it had become
"outdated" and is therefore now dead code. It is the only place that the
CoreSeedNodesRepository#setTorSeedNodeAddresses
and #setLocalhostSeedNodeAddresses methods were called. Removing it
completely allows for removing these methods and marking the underlying
fields in CoreSeedNodesRepository as final.
2018-02-21 10:33:19 +01:00
tau3
5bb91a3fd3
Fixed factory method for NodeAddresses in case of empty string
2018-02-21 13:17:08 +04:00
Sergey Rozhnov
6f10d7d75e
Added headers to new classes
2018-02-15 17:50:50 +04:00
Sergey Rozhnov
bd4439ce2c
Made DefaultNodeAddresses impossible to instantiate
2018-02-15 17:48:38 +04:00
Sergey Rozhnov
81b9b8be99
Bound NodeAddressLookup to all necessary modules
2018-02-15 17:41:31 +04:00
Sergey Rozhnov
eea28c3d73
Implemented unit test for NodeAddressLookup
2018-02-15 17:10:53 +04:00
Sergey Rozhnov
60ca9fb14b
Implemented unit test for NodeAddresses
2018-02-15 16:59:12 +04:00
Sergey Rozhnov
96528a0fc5
Implemented unit test for ImmutableSetDecorator
2018-02-15 16:41:02 +04:00
Sergey Rozhnov
9889144d90
Extracted AbstractImmutableSetDecorator class
2018-02-15 16:26:44 +04:00
Sergey Rozhnov
180eb6bf9f
Refactored some TODOs in NodeAddress and NodeAddressLookup
2018-02-15 15:49:53 +04:00
Sergey Rozhnov
9c2f0d5c00
Refactored CoreSeedNodesRepository using NodeAddressLookup
2018-02-15 15:34:13 +04:00
Sergey Rozhnov
3e13a0f226
Extracted default addresses into a separate class
2018-02-15 15:19:51 +04:00
Sergey Rozhnov
628b14c93c
Fixed compilation errors in CoreSeedNodeRepositoryFactory
2018-02-15 14:21:50 +04:00
Sergey Rozhnov
196137b30c
Moved NodeAddresses into a separate class
2018-02-15 14:06:20 +04:00
Sergey Rozhnov
05f515741d
Moved creation logic into a separate class
2018-02-14 23:32:51 +04:00
Manfred Karrer
ff629542e7
Use camelCase
2018-02-13 20:56:23 -05:00
Manfred Karrer
14035e58a6
Merge pull request #1355 from sqrrm/comp-req-refactor
...
Comp req refactor
2018-02-13 20:55:29 -05:00
Manfred Karrer
0a1dc70ec0
Fix sorting of altcoins
2018-02-13 20:37:26 -05:00
Manfred Karrer
f8850dfd0a
Merge branch 'list-odn-coin' of https://github.com/Manbearpixel/exchange into Manbearpixel-list-odn-coin
...
# Conflicts:
# core/src/main/java/io/bisq/core/trade/statistics/TradeStatisticsManager.java
2018-02-13 20:23:02 -05:00
Manfred Karrer
879d8e0660
Merge branch 'add-darx-altcoin' of https://github.com/bitdaric/exchange into bitdaric-add-darx-altcoin
...
# Conflicts:
# core/src/main/java/io/bisq/core/trade/statistics/TradeStatisticsManager.java
# gui/src/main/java/io/bisq/gui/util/validation/AltCoinAddressValidator.java
# gui/src/test/java/io/bisq/gui/util/validation/AltCoinAddressValidatorTest.java
2018-02-13 20:19:14 -05:00
Manfred Karrer
22a3b94d40
Add Yenten
2018-02-13 20:16:53 -05:00
Manfred Karrer
2f04d1ca89
Merge pull request #1342 from reverendus/list-dai-token
...
Add DAI Token
2018-02-13 20:11:56 -05:00
Manfred Karrer
0064e5052f
Merge pull request #1332 from tau3/refactor/config-peer-nodes
...
Refactoring: WalletSetup#configPeerNodes
2018-02-13 13:14:16 -05:00
sqrrm
ab47148079
Move compensation request domain specifics out of gui
2018-02-13 15:26:03 +01:00
sqrrm
f73395f6f1
Fix log spelling
2018-02-13 14:03:08 +01:00
sqrrm
3fdb4fb860
Only warn on duplicate foreign compensation requests
2018-02-13 14:02:40 +01:00
sqrrm
d06746e78b
Change warning log to info
2018-02-13 13:48:48 +01:00
Manbearpixel
abe20f1b97
Added ODN Address Validation
2018-02-11 14:02:21 -06:00
bitdaric
9ca3876472
add BitDaric
2018-02-11 10:45:26 +03:30
Poompon
fc94fb564e
Add YENTEN [YTN] validaion
2018-02-10 15:34:52 +03:00
reverendus
0b83d9de23
Add DAI Token
2018-02-10 11:34:40 +01:00
Sergey Rozhnov
707fd5c986
Implemented unit test for BtcNodeConverter
2018-02-07 01:19:14 +04:00
Sergey Rozhnov
f9ab2614a8
Implemented unit test for PeerAddressRepository
2018-02-07 00:15:38 +04:00
Sergey Rozhnov
862de72666
Implemented unit test for WalletSetupPreferences
2018-02-06 23:38:00 +04:00
Sergey Rozhnov
cd05c8767c
Implemented unit test for WalletNetworkConfig
2018-02-06 23:27:31 +04:00
Sergey Rozhnov
6c250b135a
Minor refactorings in new code
2018-02-06 23:09:16 +04:00
sqrrm
8ec499888c
Simplyfy BsqParser test case setup
2018-02-06 19:26:09 +01:00
sqrrm
a6341ec7f1
Test parseBlocks and BsqBlockChain population
2018-02-06 19:21:37 +01:00
Sergey Rozhnov
bfb380e305
Replaced WalletsSetup#configPeerNodes method
2018-02-06 21:29:12 +04:00
Sergey Rozhnov
f68a997d04
Extracted ConfigPeerNodes.setUpMinBroadcastConnections method
2018-02-06 19:01:00 +04:00
Sergey Rozhnov
913873991c
Implemented PeerAddressesRepository class
2018-02-06 18:23:57 +04:00
Sergey Rozhnov
9a621d064f
Extracted tor nodes conversion into BtcNodeConverter
2018-02-06 17:36:40 +04:00
Sergey Rozhnov
b899304613
Added initial implementation of BtcNodeConverter class
2018-02-06 17:17:10 +04:00
Sergey Rozhnov
88e7fddc58
Split ConfigPeerNodes into smaller methods
2018-02-06 16:26:15 +04:00
Sergey Rozhnov
a62354a4bf
Copied refactored method as is into a separate class
2018-02-06 15:21:03 +04:00