Commit graph

445 commits

Author SHA1 Message Date
Manfred Karrer
4938f0ba4a Change ip flag to s to avoid conflict with other flags 2014-11-08 16:42:36 +01:00
Manfred Karrer
4440bf1007 Add basic SeedNode class, rename previous one to SeedNodeUsingAkka 2014-11-08 16:39:21 +01:00
Manfred Karrer
3033a19b46 Change default port, Add ip to args, pass namespace to messageModule 2014-11-08 16:28:49 +01:00
Manfred Karrer
d72d7299df Add missing RepeatRule, Simplify SeedNodeForTesting 2014-11-07 18:33:59 +01:00
Manfred Karrer
8cfdf1907e Use server seed node and testnet 2014-11-07 18:28:43 +01:00
Manfred Karrer
222cda53d1 Add IPv4 filter 2014-11-07 16:07:13 +01:00
Manfred Karrer
9e69822a40 Improve Splash screen info, Refactor WalletFacade (user executor, gui defines Platform.runlater as executor) 2014-11-07 16:03:14 +01:00
Manfred Karrer
7dd61b35f6 Use Localhost 2014-11-07 13:47:55 +01:00
Manfred Karrer
089be0ca16 Use compatible version with latest TomP2P lib 2014-11-07 00:58:24 +01:00
Manfred Karrer
7049ab3a78 Fix broken preferences path 2014-11-07 00:17:21 +01:00
Chris Beams
ca070941dc
Rename io.bitsquare.{Abstract=>}BitsquareModule 2014-11-06 16:58:29 +01:00
Chris Beams
1546285b8b
Move io.bitsquare.{network=>util}.tomp2p.BaseFutureUtil 2014-11-06 16:58:28 +01:00
Chris Beams
486cd9824e
Introduce app.gui.MainModule 2014-11-06 16:58:23 +01:00
Chris Beams
21098afd45
Optimize imports 2014-11-06 16:58:22 +01:00
Chris Beams
96fa93f608
Introduce io.bitsquare.msg.tomp2p package 2014-11-06 16:58:20 +01:00
Chris Beams
467f76fd76
Introduce io.bitsquare.offer.tomp2p package 2014-11-06 16:57:42 +01:00
Chris Beams
57f2b43845
Extract isSuccess(BaseFuture) method into util class 2014-11-06 16:57:41 +01:00
Chris Beams
000302d29e
Merge branch 'master'
Conflicts:
	src/main/java/io/bitsquare/gui/main/trade/offerbook/OfferBook.java
	src/main/java/io/bitsquare/msg/TomP2PMessageFacade.java
2014-11-06 14:32:31 +01:00
Chris Beams
e201bf88ce
Rename i.b.network.{BootstrapNode=>BootstrapNodes} 2014-11-06 14:00:36 +01:00
Chris Beams
36b3b82e52
Refactor Node from interface to value type
The modeling of BootstrapNode as an enum implementing the Node interface
became awkward, requiring an ugly, package-private 'NodeImpl' class and
other problems.

This change eliminates NodeImpl, refactors Node from being an interface
to being a value type [1,2], and refactors BootstrapNode from being an
enum to being an interface (the #all method there takes the place of
what was the enum's inherited #values method). This is slightly more
verbose in the end than being modeled as an enum, but in the end, we
were never using BootstrapNode as an enum (e.g., never used in switch
statements or == equality comparisons, etc).

[1]: http://blog.joda.org/2014/03/valjos-value-java-objects.html
[2]: http://docs.oracle.com/javase/8/docs/api/java/lang/doc-files/ValueBased.html
2014-11-06 13:52:59 +01:00
Chris Beams
655100e69f
Introduce Node#at static factory and NodeTests 2014-11-06 11:25:52 +01:00
Chris Beams
1f136de1a1
Apply consistent style to argument help text 2014-11-06 11:25:51 +01:00
Chris Beams
da163bcc97
Introduce io.bitsquare.network.Node#DEFAULT_PORT 2014-11-06 11:25:51 +01:00
Chris Beams
ce5155ebdc
Rename BootstrapNode#{LOCAL_HOST => LOCALHOST} 2014-11-06 11:24:31 +01:00
Chris Beams
1ea30fb4ae
Clarify concept of 'default network' in BitcoinModule 2014-11-06 11:24:31 +01:00
Manfred Karrer
c7524edef3 Add bootstrap info to splash screen, user final wehn possible, cleanup 2014-11-06 09:21:53 +01:00
Chris Beams
aeaef72834
Remove offer creation recovery from CreateOfferCoordinator
Recovery was never fully implemented, and removing it dramatically
simplifies things. We can return to this with a proper analysis of
finite state machine libraries when the time comes.
2014-11-06 08:43:38 +01:00
Chris Beams
72423dce8a
Remove unused MessageFacade from CreateOfferCoordinator 2014-11-06 08:43:38 +01:00
Chris Beams
40d7da8d10
Inline BroadCastOfferFeeTx#run into CreateOfferCoordinator 2014-11-06 08:43:38 +01:00
Chris Beams
2adac9475e
Inline CreateOfferFeeTx#run into CreateOfferCoordinator 2014-11-06 08:43:37 +01:00
Chris Beams
7fffa81f02
Replace VerifyOffer class with Offer#validate method 2014-11-06 08:43:37 +01:00
Chris Beams
b3670c5201
Inline CreateOfferCoordinator#onFailed 2014-11-06 08:43:36 +01:00
Chris Beams
45a4bf7c09
Rename methods used to implement *Handler lambdas 2014-11-06 08:43:36 +01:00
Chris Beams
44dc76e07e
Rename *Handler methods 2014-11-06 08:43:36 +01:00
Chris Beams
f72bdf5f71
Move generic *Handler types to new util.task package 2014-11-06 08:43:35 +01:00
Chris Beams
aac4731f80
Replace AddOfferListener Result/Fault handlers
This change begins the process of simplifying the trade protocol by
eliminating extra callback layers such as AddOfferListener and task
layers such as PublishOfferToDHT in favor of calling directly into
Repository interfaces.
2014-11-06 08:43:35 +01:00
Chris Beams
40807b07f8
Introduce OfferRepository interface and TomP2P impl
This change begins the process of breaking up the monolithic
MessageFacade abstraction into smaller, cohesive Repositories (in the
Domain-Driven Design sense of the word) that abstract callers away from
networking details.

It also begins the process of restructuring the msg.listeners package,
such that individual *Listener interfaces are co-located with their
respective Repositories
2014-11-06 08:43:34 +01:00
Manfred Karrer
dbbe7cec49 Extract isSuccess in P2PNode, set custom log levels 2014-11-05 23:15:36 +01:00
Manfred Karrer
399842d8e2 Extract isSuccess to a method and return always true to ignore a bug from TomP2P (isSuccess returns always false) 2014-11-05 22:12:48 +01:00
Manfred Karrer
df3a507066 Change polling from 1 sec to 3 sec, refactorings 2014-11-05 22:00:55 +01:00
Manfred Karrer
c0524120e2 Use Localhost and regtest as default, cleanup seednode 2014-11-05 13:30:49 +01:00
Manfred Karrer
e665c7ebd1 Remove ServerID as default 2014-11-05 13:26:47 +01:00
Manfred Karrer
8b468f58cf Changed to protected 2014-11-05 02:39:53 +01:00
Manfred Karrer
3a1b84ce50 Add localhost 2014-11-05 02:19:08 +01:00
Chris Beams
dc7d861f8e
Rename io.bitsquare.{=>gui}.FatalException
Localize this exception within the gui package for now, as it's the only
place where it's used at the moment.
2014-11-05 01:13:31 +01:00
Chris Beams
922a2cd22f
Introduce io.bitsquare.offer package
Move io.bitsquare.trade.{Offer,Directory=>}.offer, in order to remove
the final cycle between the msg and trade packages
2014-11-05 01:13:31 +01:00
Chris Beams
8eb988616f
Rename i.b.{BitsquareArgumentParser=>ArgumentParser} 2014-11-05 01:13:30 +01:00
Chris Beams
55ef0b43d7
Rename io.bitsquare.{di=>app}.BitsquareModule 2014-11-05 01:13:30 +01:00
Chris Beams
89a68589e0
Untangle trade and msg packages 2014-11-05 01:13:29 +01:00
Chris Beams
4f66404ae8
Remove obsolete NoopMessageFacade 2014-11-05 01:13:29 +01:00