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
e910233b4c
Add null check
2016-05-16 21:32:42 +02:00
Manfred Karrer
cfd2e837e9
Add null check
2016-05-16 21:32:19 +02:00
Manfred Karrer
c538ad1ba6
Merge remote-tracking branch 'origin/Development' into Development
2016-05-16 11:27:40 +02:00
Manfred Karrer
c1ac65345d
Add try/catch around offerBookListItems.clear();
2016-05-16 11:26:46 +02:00
Manfred Karrer
d7f609a970
Added Moin
2016-05-16 11:26:22 +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
7c5c533027
Added Gridcoin
2016-05-14 11:50:17 +02:00
Manfred Karrer
f37b069340
Added OKCash
2016-05-14 11:40:25 +02:00
Manfred Karrer
1dae1dd096
Use long instead of int for bytes in statistics
2016-05-12 23:46:05 +02:00
Manfred Karrer
1335238591
Check for crypto currency before fiat (ESP -> Spanish pesetas as it was an old fiat ISO code), refactor repeated code
2016-05-11 00:16:09 +02:00
Manfred Karrer
42cbe6e2ca
Fix wrong equal check, check for cryptocurrency before fiat
2016-05-11 00:10:28 +02:00
Manfred Karrer
37c7993d19
Merge pull request #442 from ivilata/DemoteKeepaliveWarning
...
Demote keepalive warning to debug entry
2016-05-10 11:37:49 +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
d99b5ade5e
Publish arbitrator after bootstrap completed
2016-05-09 16:34:43 +02:00
Manfred Karrer
cb1de4a9c9
Added Pinkcoin
2016-05-09 15:45:48 +02:00
Manfred Karrer
a59dfbf2ea
Add Jumbucks
2016-05-08 23:14:19 +02:00
Manfred Karrer
cbac2d2a22
Deactivate detailed logging for seed node
2016-05-08 22:02:27 +02:00
Manfred Karrer
5b7bff1a89
Add null check
2016-05-08 22:01:57 +02:00
Manfred Karrer
625a249051
Change refresh/republish time
2016-05-08 12:59:13 +02:00
Manfred Karrer
dc3c630770
Change TTL from 4 to 6 min.
2016-05-08 12:58:34 +02:00
Manfred Karrer
f14facfef1
Improve error msg
2016-05-07 13:18:04 +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