Commit Graph

533 Commits

Author SHA1 Message Date
Ivan Vilata-i-Balaguer
da5b59b06b Set a `UserThread` executor in network stress test
That makes it more stable against ``ConcurrentModificationException`` (see #443), but may need to allow more open files for the process.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
fa461f23e8 Wait 2 seconds per peer for preliminary data and bootstrap 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
c4bb180dbf Show exceptions after network stress test run as main class 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
0fc8a1b5c0 Add main function to run an individual network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
4b75235f33 Split network stress tests in direct and mailbox
Now they can be run independently.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
c67f724e0f Wait for preliminary data and bootstrap while setting up network stress tests
This should be common for the different tests.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
ad6c0599f6 Wait for preliminary data and bootstrap to setup of network stress tests 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
444f9d90b8 Example restarting of peer in network stress test
This mechanism will be used for the mailbox send test.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
4a264dbdc7 Make use localhost a field in network stress test
It will help with the recreation of peers for mailbox send test.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
39c9512673 Rename method to get seed node address for network stress test
This one better conveys the intention of providing a new address each time it is called.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
5a4886ffa4 Keep track of peer ports and seed nodes repo
It will be useful when recreating nodes for mailbox send test.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
7351363830 Check optional value in keyring getter, hint nullable 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
ab4491d956 Draft and describe loop for mailbox send test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
f74d88cb33 Factor out peer node creation in network stress test
This will be useful later when stopping and restarting peer nodes in mailbox send test.  I added a getter to ``P2PService`` to get its public keyring.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
9ad4f371b2 Split long line 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
0599c820be Show min/max/avg send send delay in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
6ab5daf1c1 Report ratio to max receive timeout in network stress test
My computer is able to handle 50 messages per each of 20 peers with a delay ratio around 3.  With 100 messages or 50 peers, receiving times out even if we wait 10 times the ideal max timeout.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
d9f00e6627 Wait more for message reception in network stress test
If we wait for too little there are lots of connection refused errors when stopping nodes.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
9e61f1f3db Some comments on peer creation in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
acb31003ed Set maximum connections to seed node in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
a9efa4ec15 Print network stress test steps to help locating the source of warnings 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
8eefecdc9c Report pending latch counts on network stress test timeouts 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
97e6b942d3 Customize direct message count per peer from environment variable 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
e7e45f497e Use plain system milliseconds instead of instants and durations
For consistency with the rest of the stress test.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
987b28e4e2 Use parameter-based timeouts for direct messages in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
ec216a8702 Fix direct message loop in network stress test
The logic was broken and all sends where packed in the same (min delay, max delay) period. Now a variable ensures that the random delay gets added to the previous time.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
6c188e35fa Send direct messages in network stress test in a loop
Actually each peer runs a loop to setup messages to be sent in the future with a random delay.

This is an actual stress test for the first time. Maybe the timeouts should be adjusted accordingly.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
c8e3c6d11a Random delay when sending direct message in network stress test
The delay is always longer than the one that triggers throttling.  It makes not much sense for a single sending, but it will within a loop.

Also made some ``Connection`` throttle constants package-private so they can be accessed by tests.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
da145435a1 Keep destination peer address in a variable 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
109a71cd7f Minor changes to comments and printed messages 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
53901ba798 Configure all peers once to receive direct messages in network stress test
Instead on adding a listener once per selected random destination peer.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
3e34d23b9e Convert print instruction to use helper method 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
9505a28ccc Print message receiving and sending times in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
b8d49e44b6 Send direct messages from all peers to random ones in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
97722a6ecd Check direct message receiving side in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
30dd7f0f88 Change content of network stress test messages
Otherwise the destination node can have a hard time checking its content.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
2d9ed390f0 Partial direct send/receive test between two peers in network stress test
Still need to implement checks on the receiving side.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
9f728c19c3 Check minimum peers in network stress test
In preparation for direct send message test.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
a99c0ffc07 Keep Tor hidden service key when preserving network stress test data 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
a9973808b2 Make the number of peers in network stress test selectable with environment variable 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
bfbda2c38e Turn detailed logging of network stress test into a constant 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
d439058392 Check that network stress test data directory variable is not empty 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
f100ef6384 Only keep peer keys when reusing network stress test directory 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
6c5c3371e6 Rename "temporary" to "test data" directory in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
b02c5bf2be Move test data removal logic to instance method 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
e12d61d026 Keep network stress test data if environment variable `STRESS_TEST_DIR` is specified 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
3a7359247b Use sequentially named directories for peers in network stress test
This may allow to reuse the directory (to avoid regenerating keys, basically).
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
b3932d0bf4 Separate seed and peer listeners in network stress test
In this way we ensure that latches are not accidentally modified if the semantics on callbacks change, so we may be more sure that latch initial values are ok.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
1910b66aef Wait for peer nodes bootstrap in network stress test
Once it threw a ``ConcurrentModificationException`` while shutting down but I've not been able to reproduce it, so keep an eye on it happening again.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
fe9b3ec5f6 Use localhost port ending in net id digit
Otherwise ``SeedNodesRepository`` ignores the address and peers fail to connect to the seed node.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
59f66f8ef9 Some comments to separate declarations 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
1f2d755c64 Check reception of preliminary data in peers in network stress test
Need to check that the seed node boots first to avoid spurious failures.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
a2d130219c Rename latch and failure variables in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
f4aa8480f7 Fix removal of temporary directory in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
29c72cdc49 Create peer keys in network stress test
We should keep an eye on the setup phase getting too slow (and eating the computer's randomness) because of the generation of peer keys.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
67e68cca85 Add creation of peer nodes to network stress test
Only one peer for the moment, still not working since no encryption service and key ring are created.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
f7625796c8 Tune creation of seed node address in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
f238870bce Extract constant with regtest network id 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
30e980748d Make methods for seed node address and setup listener creation
This will ease redefining node type (Tor or localhost) and creating more nodes that can report setup result.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
2c61596871 Add property to check if network stress test thread report setup failure 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
9c58d9f740 Minor changes to network stress test
I was going to override the ``runBare()`` method to cleanup on ``setUp()`` failures, but ``tearDown()`` is called all the same.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
260840a9b2 Do not wait on seed node if not created in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
718c935fef Some comments and better names in network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
dc149f30e3 Wait for 30 seconds in test
To allow test connections.  Also remove stale print.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
9f0dfb5512 Use variable to indicate whether a localhost address is being used 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
c9f0155473 Remove unnecessary imports from network stress test 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
0977ef398b Move seed note running out of user thread, still locking 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
a9d0272e88 Start seed node in stress test, not working yet (locking) 2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
fdc0eafc67 Add skeleton for network stress unit test 2016-05-17 09:13:28 +02:00
Manfred Karrer
c745bb37a7 Merge pull request #434 from ivilata/PeerManagerInstanceMaxConn
Per-instance max connections in PeerManager
2016-05-14 12:10:59 +02:00
Manfred Karrer
1dae1dd096 Use long instead of int for bytes in statistics 2016-05-12 23:46:05 +02:00
Ivan Vilata-i-Balaguer
bd0f78b10a Demote keepalive warning to debug entry
The error is pretty obscure for a normal user to see in console, and it just reflects a network condition or some delay in the communication with another node, which may be relatively frequent.

Leaving a TODO comment to check if this can cause issues.
2016-05-10 08:28:54 +02:00
Manfred Karrer
5b7bff1a89 Add null check 2016-05-08 22:01:57 +02:00
Manfred Karrer
538751b9da Add log 2016-05-07 13:17:41 +02:00
Ivan Vilata-i-Balaguer
a1f98f2495 Rename former constant-like fields to camel case in `PeerManager` 2016-05-06 10:58:01 +02:00
Ivan Vilata-i-Balaguer
3aac3a3865 Rearrange connection limit lines in `PeerManager` 2016-05-06 10:58:01 +02:00
Ivan Vilata-i-Balaguer
f0b0b69b24 Change access of max connections constant to private in tests 2016-05-06 10:58:00 +02:00
Ivan Vilata-i-Balaguer
fd37b8999b Do pass max connections to `PeerManager`, new constructor signature
Remove calls to now instance private ``PeerManager.setMaxConnections()``.  Static fields regarding connection limits are now private instance fields.
2016-05-06 10:57:11 +02:00
Ivan Vilata-i-Balaguer
dc90a950cb Pass max connections to `SeedNode.createAndStartP2PService()`
Still keep calls to ``PeerManager.setMaxConnections()`` until it is retired.
2016-05-06 10:11:44 +02:00
Ivan Vilata-i-Balaguer
f0aec0d55c Add internal `P2PService` constructor with (unused) maximum connections argument
The value of ``P2PService.MAX_CONNECTIONS_DEFAULT`` is taken from the static block invocation of ``PeerManager.setMaxConnections()``.
2016-05-06 10:09:58 +02:00
Ivan Vilata-i-Balaguer
a50bf41803 Remove unnecessary class reference 2016-05-06 09:00:21 +02:00
Manfred Karrer
8bf4e88c1f Merge pull request #433 from ivilata/NewTimerRaceConditions
New timer race conditions
2016-05-05 13:37:07 +02:00
Manfred Karrer
b9dfa0a7a7 Merge branch 'master' into Development
# Conflicts:
#	common/pom.xml
#	common/src/main/java/io/bitsquare/app/Version.java
#	core/pom.xml
#	core/src/main/java/io/bitsquare/locale/CurrencyUtil.java
#	gui/pom.xml
#	jsocks/pom.xml
#	jtorctl/pom.xml
#	jtorproxy/pom.xml
#	network/pom.xml
#	package/linux/create_32bit_app.sh
#	package/linux/create_64bit_app.sh
#	package/mac/create_app.sh
#	package/windows/Bitsquare.iss
#	package/windows/create_32bit_app.bat
#	package/windows/create_app.bat
#	pom.xml
#	seednode/pom.xml
2016-05-05 13:30:18 +02:00
Ivan Vilata-i-Balaguer
846cdb743f Ignore data request message success or failure after a timeout 2016-05-05 10:40:59 +02:00
Ivan Vilata-i-Balaguer
00df057e09 Stop broadcasting after a timeout or cancellation 2016-05-05 10:32:52 +02:00
Ivan Vilata-i-Balaguer
0d32a3b5ce Move comment closer to timer creation
For consistency across classes.
2016-05-05 10:25:42 +02:00
Ivan Vilata-i-Balaguer
b814eff5f1 Move log message closer to actual sending 2016-05-05 10:23:57 +02:00
Ivan Vilata-i-Balaguer
e4ce976bab Avoid potential race condition on timer creation in `BroadcastHandler.broadcast()`
If the timer is created after sending the message and establishing callbacks, they may have already run on timer creation so it would be pointless (and issue a warning when triggered).

Currently there is no race condition because no callbacks are attached to the futures return by sending broadcast messages, but the timer is still created before in case they were added and for consistency with other classes.
2016-05-05 10:22:47 +02:00
Ivan Vilata-i-Balaguer
c3fa4831c5 Avoid race condition on timer creation in `RequestDataHandler.requestData()`
If the timer is created after sending the message and establishing callbacks, they may have already run on timer creation so it would be pointless (and issue a warning when triggered).
2016-05-05 10:05:17 +02:00
Ivan Vilata-i-Balaguer
b59e3ff0f8 Avoid race condition on timer creation in `GetPeersRequestHandler.handle()`
If the timer is created after sending the message and establishing callbacks, they may have already run on timer creation so it would be pointless (and issue a warning when triggered).
2016-05-05 09:45:28 +02:00
Ivan Vilata-i-Balaguer
704b985121 Avoid race condition on timer creation in `PeerExchangeHandler.sendGetPeersRequest()`
If the timer is created after sending the message and establishing callbacks, they may have already run on timer creation so it would be pointless (and issue a warning when triggered).
2016-05-05 09:36:49 +02:00
Ivan Vilata-i-Balaguer
4e95b6e6cb Avoid race condition on timer creation in `GetDataRequestHanler.handle()`
If the timer is created after sending the message and establishing callbacks, they may have already run on timer creation so it would be pointless (and issue a warning when triggered).
2016-05-05 09:13:34 +02:00
Manfred Karrer
89aed23d67 v0.4.6 2016-04-29 11:22:58 +02:00
Manfred Karrer
dd5cacb26f Version 0.4.5 2016-04-28 22:24:51 +02:00
Manfred Karrer
ae85d4e3a7 Add new seed node 2016-04-26 20:53:11 +02:00
Manfred Karrer
2c25c69beb Remove instable seed node 2016-04-26 17:33:06 +02:00
Manfred Karrer
4e09428180 Beta version 0.4.4 2016-04-26 17:29:11 +02:00
Manfred Karrer
171f61f60c Fix logging, increase throttle 2016-04-25 23:43:16 +02:00
Manfred Karrer
280574638f Add new seed node 2016-04-25 00:16:20 +02:00
Manfred Karrer
9f38374539 Fix wrong thread call on exite form sys tray 2016-04-23 03:36:55 +02:00
Manfred Karrer
b4edbe2986 Improve logging 2016-04-23 02:51:01 +02:00
Manfred Karrer
24b109421f Version 0.4.3 2016-04-23 00:12:20 +02:00
Ivan Vilata-i-Balaguer
85283b8fd0 Create some constants for maximum number of connections 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
45b1314099 Move implicit purge removal period to declared constant 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
7a7b33fc76 Add comment about check allowed public keys for adding received message 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
e8d289f577 Add comment about network node start 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
4b5a393911 Add comment on purging sequence number map 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
5d78918fb2 Extend comment on the role of Connection.InputHandler 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
9b9fd678a8 Avoid getting current time on each usage on flooding avoidance computations
Also fix some log message wording.
2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
8f7f450429 Remove comma before first argument in string representation 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
fc4babcfd7 Fix confusing comment 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
c5d760b2a0 Replace manual checks with equivalent `Optional.ofNullable()` 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
ad579bf7cc Clarify matching of seed node ports and network ids 2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
e6197938fe Read HTTP error stream before closing it
It wasn't causing problems, but it looks odd.
2016-04-20 10:03:27 +02:00
Ivan Vilata-i-Balaguer
51059fe6a9 Remove comma before first argument in string representation 2016-04-20 10:03:27 +02:00
Manfred Karrer
5a47ebbadc add comments 2016-04-19 18:17:49 +02:00
Manfred Karrer
9bbf1f0e78 Merge branch 'master' into Development 2016-04-19 12:24:33 +02:00
Manfred Karrer
613c80082a Increase take offer timeout 2016-04-19 12:24:11 +02:00
Manfred Karrer
ac6cad3ce0 Prepare v 0.4.3 2016-04-18 00:25:25 +02:00
Manfred Karrer
fbc145e755 v0.4.2 2016-04-17 21:44:00 +02:00
Manfred Karrer
be05a52e40 increase max size for attachments 2016-04-17 17:42:28 +02:00
Manfred Karrer
c02f6481b2 v0.4.2, new seednodes 2016-04-16 22:36:34 +02:00
Manfred Karrer
b97506cf51 Add listeners if pricefeed is not available 2016-04-16 15:46:45 +02:00
Ivan Vilata-i-Balaguer
5e8731bb6e Duplicated check when sending direct message, check remote and local addresses 2016-04-15 13:23:25 +02:00
Manfred Karrer
7e3d2356da v0.4.1 2016-04-13 18:38:51 +02:00
Manfred Karrer
c021ea8ea2 Fix bug when trader is offline and use password protection signing payout tx fails 2016-04-13 13:56:23 +02:00
Manfred Karrer
6e976cc351 Refactor checks for incoming data 2016-04-11 13:28:32 +02:00
Manfred Karrer
04e0935516 Start version 0.4.1 2016-04-09 03:44:00 +02:00
Manfred Karrer
333d0bf789 Version 0.4.0 2016-04-08 22:53:38 +02:00
Manfred Karrer
f0b3fa709d Small improvements... 2016-04-08 21:59:26 +02:00
Manfred Karrer
6f3f469287 Add rolling backup for to HS priv key 2016-04-08 20:40:12 +02:00
Manfred Karrer
565c44d94c Fix fee calculation, add adjustable non-trade mining fee 2016-04-06 23:26:27 +02:00
Manfred Karrer
5be80bf164 Increase simulation delay 2016-04-06 12:47:45 +02:00
Manfred Karrer
ae65561623 test update (WIP) 2016-04-06 11:38:59 +02:00
Manfred Karrer
e219331e28 Add test (WIP) 2016-04-06 11:00:42 +02:00
Manfred Karrer
7ce5beb54f Reorganize savingswallet 2016-04-06 00:28:43 +02:00
Ivan Vilata-i-Balaguer
184fc55636 Escape vertical bar when splitting seed node addresses in command line
Otherwise it is interpreted as a special regular expression character and all
characters are splitted apart, causing a ``NullPointerException`` after
further splitting on ``:``.
2016-04-05 12:45:37 +02:00
Manfred Karrer
4c0cc738e4 Add rolling backup 2016-04-05 03:31:22 +02:00
Manfred Karrer
37b31a5d0a Savings wallet (WIP) 2016-03-30 02:46:02 +02:00
Manfred Karrer
605cf27eaf Remove check for not empty seednodes (can be empty in some cases) 2016-03-20 19:23:17 +01:00
Manfred Karrer
e7967cc0e1 Add null checks 2016-03-20 19:08:37 +01:00
Manfred Karrer
19eb61f30c Add null checks 2016-03-20 19:01:02 +01:00
Manfred Karrer
5d4d7607f3 Start 0.3.7-SNAPSHOT 2016-03-20 17:28:48 +01:00
Manfred Karrer
c4a1105c09 Version 0.3.6 2016-03-20 13:38:09 +01:00
Manfred Karrer
6721131ccf Refactorings, add decryption to crypt test at startup 2016-03-16 23:59:08 +01:00
Manfred Karrer
ec62d5bc38 Add more logs 2016-03-16 22:32:59 +01:00
Manfred Karrer
bb625ad036 Use dev seed nodes, move code to data model 2016-03-16 13:09:52 +01:00
Manfred Karrer
0b93641129 Display onion address of offerer and trading peer in details windows 2016-03-16 12:39:41 +01:00
Manfred Karrer
b4581ae698 Start for version 0.3.6-SNAPSHOT 2016-03-15 14:47:36 +01:00
Manfred Karrer
62d4d50392 Version 0.3.5 2016-03-11 17:20:58 +01:00
Manfred Karrer
7c63e5ab00 Fix issues with delayed mailbox messages, handle ui state when peer is offline 2016-03-11 16:44:25 +01:00
Manfred Karrer
546b6f7510 fix null pointer, cleanups 2016-03-11 10:24:13 +01:00
Manfred Karrer
9cb9d0f88c add persistable 2016-03-11 10:23:10 +01:00
Manfred Karrer
0df473c81a dont log housekeeping msg in production 2016-03-11 10:22:45 +01:00
Manfred Karrer
44445cd411 Tests for Payment accounts matches 2016-03-10 14:06:00 +01:00
Manfred Karrer
32066b15a7 Add throttle to outgoing messages, use delays when sending msg 2016-03-04 01:24:16 +01:00
Manfred Karrer
ba727ebb16 Add spinner, status info and blocking popup at place offer 2016-03-03 01:49:54 +01:00
Manfred Karrer
2f0f58c478 Add support for customized currency lists 2016-03-01 20:40:15 +01:00
Manfred Karrer
31fb0fafa4 Add support 3 new types of bank accounts 2016-02-29 23:57:31 +01:00
Manfred Karrer
b511267340 Fix bug with missing broadcast 2016-02-27 00:44:33 +01:00
Manfred Karrer
d6e6a52010 Show rrt 2016-02-26 18:48:11 +01:00
Manfred Karrer
6daf959f78 Rename ReportedPeer to Peer 2016-02-26 18:24:00 +01:00
Manfred Karrer
586d9cdcfd add roundtrip time 2016-02-26 18:22:10 +01:00
Manfred Karrer
aecbf7ced9 Add isOwner flag for broadcasting to all peers, remove popup for disconnects of rule violations, reduce max nr of network threads 2016-02-26 14:10:22 +01:00
Manfred Karrer
60c8de796a P2P network improvements, rename MarketPriceFeed to PriceFeed 2016-02-26 02:12:05 +01:00
Manfred Karrer
4bc8c70a83 P2P network improvements 2016-02-26 00:10:44 +01:00
Manfred Karrer
f0d727e345 P2P network improvements 2016-02-25 14:48:00 +01:00
Manfred Karrer
bdc15f113e Update all statistic changes 2016-02-25 14:45:56 +01:00
Manfred Karrer
0908c6d61f Improve broadcast listener handling, add randomized delay for messages to all connected peers 2016-02-23 13:04:49 +01:00
Manfred Karrer
2de98b6af4 Fix wrong null check 2016-02-23 02:52:41 +01:00
Manfred Karrer
088f04b478 synchronize sets for connections 2016-02-23 02:42:54 +01:00
Manfred Karrer
82c96d4be7 Set uid in constructor 2016-02-23 02:23:43 +01:00
Manfred Karrer
75af3adb81 Use uid for connections set storage key, add more logs 2016-02-23 02:07:12 +01:00
Manfred Karrer
4544fe6c83 Add check for outbound connections at socket creation 2016-02-23 01:46:35 +01:00
Manfred Karrer
5dd89391df Add timeout to socket creation, remove disconnect calls, check again for inbound connections after socket is created 2016-02-23 01:42:08 +01:00
Manfred Karrer
2775c0a55d Change log level, add stopped flag, move connection listener inside success handler 2016-02-22 23:58:42 +01:00
Manfred Karrer
03b5a03048 Use connection for onMessage listeners if possible 2016-02-22 23:34:52 +01:00
Manfred Karrer
77511a43f5 Use byte array instead of PubKeys, Use uid for mailbox msg, Improve storage data structure, Renamings, Cleanup 2016-02-22 23:20:21 +01:00
Manfred Karrer
bb6334f6a0 Fix missing sequence nr and signature updates at refresh offers 2016-02-22 16:18:14 +01:00
Manfred Karrer
ca20de64d9 Use colors for buy/sell, redesign offerbook, market overview 2016-02-21 22:03:37 +01:00
Manfred Karrer
cec1e99e98 Improve OpenOfferManager disconnection handling 2016-02-20 14:20:37 +01:00
Manfred Karrer
447849900f Fix null pointer 2016-02-20 12:17:31 +01:00
Manfred Karrer
ae6b95eed8 Add disconnect/awake handlers (WIP) 2016-02-20 12:04:07 +01:00
Manfred Karrer
3efca4101a WIP (testing) 2016-02-19 23:11:57 +01:00
Manfred Karrer
78a9662220 WIP (testing) 2016-02-19 22:58:25 +01:00
Manfred Karrer
8b1c0e5e6f Add more logging, don't throw exception at timers 2016-02-19 22:21:56 +01:00
Manfred Karrer
bd3b55cf47 Use FXTimer instead of Java Timer, add idle detection for republish offers 2016-02-19 19:56:17 +01:00
Manfred Karrer
79de2bcb11 Optimize RefreshTTLMessage, add UIClock 2016-02-19 18:13:45 +01:00
Manfred Karrer
485b33acf6 Make persisted data final 2016-02-18 14:29:57 +01:00
Manfred Karrer
6a25e1c56c Use Persistable interface for local db data 2016-02-18 14:08:28 +01:00
Manfred Karrer
8792666f78 Add Payload interface 2016-02-18 13:25:27 +01:00
Manfred Karrer
7cdb779aae Moved ByteArray to P2PDataStorage class 2016-02-18 13:23:37 +01:00
Manfred Karrer
6f1efdb3c0 Rename ExpirableMessage and StorageMessage to ExpirablePayload and StoragePayload 2016-02-18 12:50:59 +01:00
Manfred Karrer
3f54cb233e Rename RequiresOwnerIsOnlineMessage to RequiresOwnerIsOnlinePayload 2016-02-18 12:48:39 +01:00
Manfred Karrer
89201de40e Fix missing removal of map entry 2016-02-18 01:17:36 +01:00
Manfred Karrer
58bb1868a3 Handle offer removal on disconnects 2016-02-18 00:42:22 +01:00
Manfred Karrer
17c780639f Handle offer removal on disconnect, cleanup 2016-02-17 17:33:53 +01:00
Manfred Karrer
db363fac48 Handle offer removal on disconnect (WIP) 2016-02-16 13:18:25 +01:00
Manfred Karrer
92ad387d70 Fix bug with missing broadcast. Add total traffic info 2016-02-16 01:51:51 +01:00
Manfred Karrer
fc1ab8a346 Cleanup 2016-02-15 23:33:20 +01:00
Manfred Karrer
540f49f1e1 Add KeepAlive handling, add statistics, add table in network view for statistics, reduce connection timeout 2016-02-15 18:28:29 +01:00
Manfred Karrer
850b6d209c UI improvements, P2P network WIP 2016-02-14 12:58:30 +01:00
Manfred Karrer
3dbcfb650a Renaming of storage messages, add comments 2016-02-11 13:26:38 +01:00
Manfred Karrer
fa2da8dbe5 Put DataAndSeqNrPair into P2PDataStorage 2016-02-11 13:21:35 +01:00
Manfred Karrer
04b32a35a2 Add maintenance package, use connected peers for reported peers (WIP) 2016-02-11 13:18:20 +01:00
Manfred Karrer
e5faad5d05 Add new seednodes for v0.3.5 2016-02-11 11:09:40 +01:00
Manfred Karrer
d2e8c6afd7 Add market price feed 2016-02-10 01:59:46 +01:00
Manfred Karrer
30f7ca69f8 Start v0.3.5-SNAPSHOT 2016-02-09 01:46:53 +01:00
Manfred Karrer
86284fe644 v0.3.4 2016-02-09 00:36:59 +01:00
Manfred Karrer
2c8bc3053b Dont store disconnected nodes with wrong version/invalid data... 2016-02-04 19:00:16 +01:00
Manfred Karrer
a264fa4e0b Use PopupManager for queuing popups, improve version handling, deactivate focus requests, add popup when getting disconnection because of version conflict 2016-02-04 13:16:40 +01:00
Manfred Karrer
a286e3e9b3 Add update notification to alert system 2016-02-03 20:23:25 +01:00
Manfred Karrer
85b2cb1d44 Improve close connection and shutdown handling 2016-02-02 21:07:45 +01:00
Manfred Karrer
9d9ce5918b Fix nullpointer, add check for miningfee 2016-02-02 02:39:06 +01:00
Manfred Karrer
4232a10f47 Improve loggings 2016-02-01 20:11:03 +01:00
Manfred Karrer
5efd69bad4 stop when shutdown 2016-02-01 20:10:40 +01:00
Manfred Karrer
6e1f92a05b Improve loggings 2016-02-01 19:26:21 +01:00
Manfred Karrer
406bcd31ef Cleanups, improve loggings 2016-02-01 19:21:04 +01:00
Manfred Karrer
bee9d2c610 Cleanups, improve loggings 2016-02-01 13:26:41 +01:00
Manfred Karrer
186f85c44e Refactorings, small improvements/fixes 2016-01-31 00:38:03 +01:00
Manfred Karrer
0b5cdc2581 use new seednodes for dev 2016-01-31 00:36:57 +01:00
Manfred Karrer
9dd9decb96 Bugfixes, refactorings,... 2016-01-30 23:43:58 +01:00
Manfred Karrer
26270b209a add msg/sec throttle 2016-01-30 23:23:21 +01:00
Manfred Karrer
067bf07a83 add penalty for failed connections, increase duration for maintenance 2016-01-30 04:33:23 +01:00
Manfred Karrer
98a3855742 change conn. timeout 2016-01-30 04:32:05 +01:00
Manfred Karrer
623b07dfcc UI bugfixes and improvements 2016-01-28 21:49:10 +01:00
Manfred Karrer
87e2119b84 Allow sorting in tables 2016-01-28 13:26:57 +01:00
Manfred Karrer
43047b3727 Add shuffling to seednodes 2016-01-27 22:48:19 +01:00
Manfred Karrer
d8086ffba9 Set mainnet as default 2016-01-27 22:28:09 +01:00
Manfred Karrer
495616edea version 0.3.3 2016-01-27 19:02:01 +01:00
Manfred Karrer
2af38f70d6 add new onion addresses for mainnet seed nodes for v 0.3.3 2016-01-27 18:47:45 +01:00
Manfred Karrer
a856fa36d3 Refactor handshake out for peers request 2016-01-27 18:26:51 +01:00
Manfred Karrer
cd5ecbb168 Refactor handshake out for data request 2016-01-27 15:08:13 +01:00
Manfred Karrer
c68c06d598 Add maintenance task 2016-01-27 03:38:16 +01:00
Manfred Karrer
579c3797bc Fix peer exchange 2016-01-27 03:09:05 +01:00
Manfred Karrer
3ddd2bd408 Fix too early started timer 2016-01-27 02:12:14 +01:00
Manfred Karrer
a91822803f Fix mailbox behaviour, renamings 2016-01-27 01:56:56 +01:00
Manfred Karrer
7b87c39ffd Renamed MailMessage to DirectMessage 2016-01-27 01:02:56 +01:00
Manfred Karrer
602c503cea Add callback for broadcaster when sending mailbox msg 2016-01-27 00:04:03 +01:00
Manfred Karrer
991ab56a97 Cleanup, apply code inspection suggestions 2016-01-26 20:56:16 +01:00
Manfred Karrer
991a4350ac P2P network / UI improvements 2016-01-26 16:37:08 +01:00
Manfred Karrer
2ad72938ec Remove authentication for P2P network, UI improvements 2016-01-24 20:30:33 +01:00
Manfred Karrer
1dfc7357ca Make fields final (from code inspect.) 2016-01-21 13:11:34 +01:00
Manfred Karrer
8aee8b617d Misc. cleanups 2016-01-21 13:08:40 +01:00
Manfred Karrer
c180491430 Rename Address to NodeAddress 2016-01-21 12:32:16 +01:00
Manfred Karrer
cb685d3b5c Run reformat and organize imports 2016-01-21 02:48:44 +01:00
Manfred Karrer
3a16897350 Add markets spreads view 2016-01-19 22:32:33 +01:00
Manfred Karrer
9506bfd17d Remove wrong thread names 2016-01-19 19:15:58 +01:00
Manfred Karrer
23b1adbe7e Cleanups, better logging 2016-01-19 15:27:46 +01:00
Manfred Karrer
6312ce31d4 add random delay to timer based tasks 2016-01-18 19:13:57 +01:00