Commit graph

2226 commits

Author SHA1 Message Date
Manfred Karrer
3048e0f385
Fix failed unit test 2018-02-22 12:23:30 -05:00
Manfred Karrer
43ce9f796f
Fix issue #1386: Offers with Cash deposit cannot be taken.
Fix handling for Sepa related accounts.
Optimize handling for same bank and specific banks.
Add comments
2018-02-22 12:10:25 -05:00
Bernard Labno
051694dfdb Make USE_DEV_PRIVILEGE_KEYS flag configurable 2018-02-21 16:29:57 +01:00
Chris Beams
22f54d1a9e
Indent multiline constructor args
The convention throughout most of the Bisq codebase is this kind of
stacked alignment for multiline constructor arguments.
2018-02-21 10:45:22 +01:00
Chris Beams
3e9e7490b7
Add @Override where appropriate 2018-02-21 10:45:21 +01:00
Chris Beams
1760fccc89
Move io.bisq.core.network.{* => .p2p.seed.*}
Prior to this change, the contents of io.bisq.core.network were in fact
all seednode-related, and the main public type in this package,
DefaultSeedNodeRepository, is an implementation of
io.bisq.network.p2p.seed.SeedNodeRepository. This repackaging makes
better reflects these facts, making it more obvious to the unitiated
what this package is all about, and preserving the unqualified
io.bisq.core.network package for future expansion into non-seednode
related areas.
2018-02-21 10:45:21 +01:00
Chris Beams
08ca7ee0f9
Sort static factory methods at bottom 2018-02-21 10:45:21 +01:00
Chris Beams
fb856aea95
Favor public visibility for non-private members of package-private types
Public members of package-private classes are in effect still
package-private. Leaving the public modifier in place on these members
(as opposed to marking all members package-private) is beneficial for
two reasons:

 1. It leaves these members looking "normal" to the trained Java eye.
Readers are not left wondering why constructors and methods are
package-private. They can notice, if and when appropriate, that the
class itself is package-private, and can understand the transitive
visibility of each member on that basis.  Otherwise, the class is left
looking conventional, unsurprising, and therefore as easy as possible to
read and understand.

 2. It leaves the visibility of these members controlled by a single
modifier at the class level as opposed to N+1 modifiers (one for every
member + the class itself). Should the class in question for some reason
need to be promoted to public visibility, for example if it were to be
moved to a different package, its members would automatically inherit
the now-public visibility of the class, which is likely to be the
desired state, because if the class needs to be public, at least some of
its members will need to be public too. The maintainer making that
change can (and should) reduce the visibility of any members that should
remain package-private (e.g. those that exist only for for testing
purposes), but in doing so, they make an explicit and self-documenting
decision that will show up at the level of a Git diff.
2018-02-21 10:45:21 +01:00
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
sqrrm
86c3516890
Fix comments from PR 2018-02-19 13:53:57 +01:00
Manfred Karrer
1ee6117831
Fix Cashdeposit account bug 2018-02-19 06:55:19 -05:00
Manfred Karrer
fbc2761bf7
Update comment for price node operator 2018-02-19 05:57:24 -05:00
Manfred Karrer
c52441c704
Update comment for price node operator 2018-02-19 05:54:18 -05:00
Manfred Karrer
66f65411fc
Remove Venmo 2018-02-18 20:54:23 -05:00
Manfred Karrer
dd86ead7d8
Add popmoney (#1273) 2018-02-18 20:20:04 -05:00
Manfred Karrer
378134c413
Add holder name to venmo 2018-02-18 19:38:44 -05:00
Manfred Karrer
a129d06863
Use Cashtag only for CashApp 2018-02-18 19:38:27 -05:00
Manfred Karrer
7654a5d8ff
Add payment method Venmo (#1347) 2018-02-18 19:08:03 -05:00
Manfred Karrer
beaaf59b70
Add feature for deactivating an offer #1368 2018-02-18 14:45:02 -05:00
sqrrm
07007ea51e
Forgot to check in 2018-02-17 17:33:28 +01:00
sqrrm
7773127676
Allow compensation request with no bsq output
The case where the Bsq input equals the compensation request fee will
generate a transaction with no bsq output. It's still an allowed
compensation request. There should still be an issuance output that's
not yet considered bsq.
2018-02-17 17:00:05 +01:00
sqrrm
fa2c33e5d1
Check that min comp req is more than comp req fee 2018-02-17 16:54:48 +01:00
Christoph Atteneder
a6ff095234
Add isRange method 2018-02-16 09:54:54 +01: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
sqrrm
80a0829c2a
Some cleanup of CompensationRequestManager 2018-02-14 12:57:29 +01:00
Manfred Karrer
521dd62114
Change max. deviation of market price #1356 2018-02-13 21:10:55 -05: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
bd6b70a8ba
Add new altcoins: Stellite, Dai Stablecoin, Obsidian, BitDaric, Yenten 2018-02-13 20:34:43 -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