Commit Graph

127 Commits

Author SHA1 Message Date
Manfred Karrer
96138e759b
Cleanups 2019-05-11 12:55:29 +02:00
Manfred Karrer
fa07957c24
Call setAllowDisconnectSeedNodes from LiteNode after blocks received
Instead of the 3 minutes delay we set the flag from the lite node once
the blocks are received. We delay 20 seconds to allow multiple getBlocksRequests
to finish.
2019-05-11 12:55:09 +02:00
Manfred Karrer
a8b1524d8d
Fix issue with too early disconnect to seeds
As soon we are over our connection target we start disconnecting seed
nodes though that can be too early as getBlocks requests are still
pending. We delay the disconnect seed handling to 3 minutes after our
first connection so give it enough time to receive the getBlocksResponse.
2019-05-11 12:22:59 +02:00
Christoph Atteneder
1d18029b1c
Update dbs 2019-05-02 18:00:35 +02:00
Manfred Karrer
1008e9bc51
Add UTF8 for getBytes calls
Fixes https://github.com/bisq-network/bisq/issues/2729
2019-04-17 19:56:21 -05:00
Manfred Karrer
ab0c81804c
Make GetBlocksRequest implement SendersNodeAddressMessage and SupportedCapabilitiesMessage
When we request at startup the blocks from a seed which has not yet
received out capabilities or node address we will not get a response.
We do not want to depend on the state in the getData domain in the
p2p network by using only a seed which has already responded but we
prefer to make sure the seednode will get all the data by our request
to be able to respond.
2019-04-16 22:52:20 -05:00
Manfred Karrer
7e0a7a4f02
Only set capabilities if not null 2019-04-16 22:48:32 -05:00
Manfred Karrer
b0fef9819b
Add check for nullable senderNodeAddress 2019-04-16 22:33:46 -05:00
Manfred Karrer
ba4a3a8918
Avoid logging calls from monitor nodes
Monitor nodes have only one capability set. We don't want to get tons
of logs from those (trade statistics, account witness,....).
2019-04-16 15:09:52 -05:00
Manfred Karrer
2410f38796
Apply formatting (no code change) 2019-04-16 15:07:14 -05:00
Christoph Atteneder
1664a72788
Update Mainnet dbs and remove old test dbs 2019-04-15 14:13:53 +02:00
Christoph Atteneder
27a2772875
Update DBs 2019-04-08 11:11:00 +02:00
Manfred Karrer
e86238d840
Remove unneeded db files, add trade stats 2019-04-01 13:48:12 -05:00
Christoph Atteneder
38728a1132
Update DBs 2019-04-01 15:43:53 +02:00
Manfred Karrer
4d56ce9a10
Apply ExtraDataMapValidator for all extraDataMap fields 2019-03-31 17:35:14 -05:00
Manfred Karrer
9b2c5a2d2a
Increase timeouts
See discussion at https://github.com/bisq-network/bisq/issues/2547
2019-03-25 12:44:54 -05:00
Manfred Karrer
eb8feece58
Add missing @EqualsAndHashCode(exclude = {"date"})
Was unintendely removed in latest refactorings
2019-03-22 20:44:37 -05:00
Manfred Karrer
68894ea2ce
Update db files 2019-03-22 12:25:45 -05:00
Manfred Karrer
b20cb39e5a
Update db files 2019-03-22 12:19:17 -05:00
Manfred Karrer
628705787f
Merge pull request #2552 from freimair/refactor_capabilities
Refactor capabilities
2019-03-18 14:08:40 -05:00
Manfred Karrer
a7dacbf4d5
Merge pull request #2538 from devinbileck/fix-handling-exception-during-tor-setup
Fix exception handling during Tor setup
2019-03-18 14:00:25 -05:00
Florian Reimair
afc241c52a
Renamed hasCapabilities to isEmpty 2019-03-18 12:59:09 +01:00
Florian Reimair
ede3a3c721
Introduced Capabilities.addAll 2019-03-18 12:55:19 +01:00
Florian Reimair
837b4dffb3
Refactor Capabilities for Peer 2019-03-18 12:46:32 +01:00
Florian Reimair
7a03aba02e
Refactor Capabilities for Connection 2019-03-18 12:29:09 +01:00
Manfred Karrer
0b152466f4
Add updated db files 2019-03-16 12:43:12 -05:00
Manfred Karrer
e93358428d
Remove db store file 2019-03-16 12:09:03 -05:00
Manfred Karrer
ccbb5780ab
Add peer to log 2019-03-15 22:58:04 -05:00
Devin Bileck
8ccbe9e39e
Fix exception handling during Tor setup
A recent change in the netlayer is now seeing exceptions wrapped in
a TorCtlException if an error occurs while setting up Tor.

So when an issue such as "Auth cookie not created" (#2398) occurs,
which was previously raised as an IOException, it was restarting Tor
rather than showing the error message to the user.
2019-03-14 16:33:39 -07:00
Manfred Karrer
03023d6338
Remove myAddress from docs and scripts as it is not used/needed anymore 2019-03-08 10:58:53 -05:00
Florian Reimair
b27befed63
--myAddress property is not needed anymore 2019-03-07 17:08:49 +01:00
Florian Reimair
de93a6fa1b
Revert "Revert 2473067b090603dec983fa18995453bdd6d8de94"
This reverts commit a9ee15d9f6.
2019-03-07 17:08:49 +01:00
Manfred Karrer
80fa5c029f
Merge pull request #2507 from freimair/monitor
Monitor tweaks, fixes and a new Metric
2019-03-07 10:46:41 -05:00
Florian Reimair
9f464b3d50
Remove HS from Snapshot Metrics 2019-03-07 12:51:54 +01:00
Manfred Karrer
13dfadddcb
Change log level for log when msgThrottle is triggered 2019-03-06 22:46:02 -05:00
Manfred Karrer
9638f58f7b
Add callSuper = true to EqualsAndHashCode in Peer 2019-03-06 18:39:43 -05:00
Florian Reimair
4bafea83ee
Inline declaration of default value 2019-03-06 09:50:30 +01:00
Florian Reimair
22b4ef921b
Use Lombok Getter 2019-03-06 09:50:30 +01:00
Florian Reimair
7c5210856b
Capabilities optimizations 2019-03-06 09:50:11 +01:00
Florian Reimair
24501178e4
Removed closeConnectionReason from class scope 2019-03-06 09:35:06 +01:00
Florian Reimair
3bb38b81ce
Compressed shutdown members 2019-03-06 09:35:06 +01:00
Florian Reimair
b85075affe
Removed superfluous imports 2019-03-06 09:35:06 +01:00
Florian Reimair
b501a203f4
Removed field that is only used once 2019-03-06 09:35:06 +01:00
Florian Reimair
d21bf3d710
Merged methods that did the same 2019-03-06 09:35:06 +01:00
Florian Reimair
0320261901
Simplified connection shutdown 2019-03-06 09:35:06 +01:00
Florian Reimair
4d21d25fa9
Get rid of 'InputHandler' in 'Connection' class 2019-03-06 09:35:06 +01:00
Florian Reimair
7fa5c190aa
Get rid of 'sharedModel' in 'Connection' class 2019-03-06 09:35:06 +01:00
Florian Reimair
ed799b7018
Removed duplicate and superfluous code 2019-03-06 09:29:46 +01:00
Florian Reimair
00872427de
Get rid of Capability ordinals
github.com/AlDanial/cloc v 1.80  T=0.19 s (5.3 files/s, 5.3 lines/s)
-------------------------------------------------------------------------------
                             files          blank        comment           code
-------------------------------------------------------------------------------
 same                            0              0            913           3405
 modified                       28              0              6            145
 added                           1             18             36             58
 removed                         0              9              3            103
-------------------------------------------------------------------------------
2019-03-06 09:29:26 +01:00
Manfred Karrer
92b91ba391
Merge pull request #2500 from ManfredKarrer/remove-dev-logging
Remove Log.traceCall methods
2019-03-05 11:52:21 -05:00