Commit graph

341 commits

Author SHA1 Message Date
Christoph Sturm
1c0fe2673f split pb.java file into separate files. 2019-07-25 13:40:02 +02:00
Christoph Sturm
b4a0d620fc fix format string 2019-07-25 10:26:04 +02:00
Christoph Sturm
c3d21806c4 rename Clock to ClockWatcher
* this class is not a clock but it watches the clock, detects standby
and runs periodic tasks.
* there is already a jdk method called clock
First i thought it should be called PeriodicTaskManager, now i find
ClockWatcher more fitting.
2019-07-24 16:39:03 +02:00
Christoph Atteneder
7f26f20e79
Update data stores 2019-07-15 10:02:50 +02:00
Christoph Atteneder
d9e088f469
Merge pull request #2952 from freimair/envelope_of_envelopes
Envelope of envelopes #2
2019-07-12 10:29:22 +02:00
Florian Reimair
31a4ba3ff6
Only send bundle if necessary 2019-07-10 16:32:53 +02:00
Florian Reimair
b44cb452f9
Rename stuff 2019-07-10 16:31:58 +02:00
Christoph Atteneder
7b29511415
Merge pull request #2939 from freimair/envelope_of_envelopes
Bundle of envelopes
2019-07-08 19:45:34 +02:00
Florian Reimair
7b6c55808d
Formatting 2019-07-08 18:48:35 +02:00
Florian Reimair
7a942cfbd7
Cleanup 2019-07-08 16:23:36 +02:00
Florian Reimair
3fb8be3481
Rename 2019-07-08 09:33:50 +02:00
Florian Reimair
8dd993fd54
Still maintain DoS protection 2019-07-06 14:24:12 +02:00
Florian Reimair
0733379141
Split on resulting message size 2019-07-06 14:23:24 +02:00
Florian Reimair
bdc860be9f
Optimized memory footprint of DoS protection 2019-07-05 09:19:41 +02:00
Florian Reimair
f73fa94984
Use EnvelopeOfEnvelopes message type 2019-06-24 16:59:56 +02:00
Florian Reimair
b101035d99
Sketch of businesslogic regarding EnvelopeOfEnvelopes 2019-06-24 16:55:58 +02:00
Florian Reimair
16392f5f0a
Added EnvelopeOfEnvelopes Network Message 2019-06-24 16:53:53 +02:00
Devin Bileck
ac66c97728
Fix AckMessage failure
When taking an offer, ack messages for
OfferAvailablilityRequest/Response were failing to be sent with the
following error.

> Jun-23 22:35:38.129 [JavaFX Application Thread] ERROR
> b.c.o.a.OfferAvailabilityProtocol: AckMessage for
> OfferAvailabilityResponse failed. AckMessage=AckMessage{
>      uid='8779f9ae-22e9-4f16-bbbb-4da89fe23cdf',
>      senderNodeAddress=localhost:3333,
>      sourceType=OFFER_MESSAGE,
>      sourceMsgClassName='OfferAvailabilityResponse',
>      sourceUid='df1a50c5-c6e7-4c81-8ad4-a100d622a053',
>      sourceId='pexluolj-2e5e5d9f-5aca-4a3d-b66a-60b72afe3d2c-112',
>      success=true,
>      errorMessage='null'
> } NetworkEnvelope{
>      messageVersion=12
> }, makersNodeAddress=localhost:3632, errorMessage=We did not send the
> EncryptedMessage because the peer does not support the capability.
2019-06-23 22:50:38 -07:00
Christoph Atteneder
abc0909ffe
Merge pull request #2870 from freimair/monitor-bsqblocks
Monitor knows about the DAO
2019-06-06 14:02:16 +02:00
Florian Reimair
afcc7c00f5
Renamed classes 2019-06-05 19:39:54 +02:00
Florian Reimair
4e5cd50e64
Increase max message size until a greater refactoring 2019-06-05 17:50:59 +02:00
Florian Reimair
7442d2a428
Fix NullPointerEx in Monitor 2019-06-05 17:50:58 +02:00
Christoph Atteneder
fbd49a2cce
Update stores 2019-06-04 10:14:58 +02:00
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