Giovanni Petrantoni
81f7413e87
Merge branch 'master' into gossip-one-one
2020-07-20 15:57:54 +09:00
Giovanni Petrantoni
c3af7659b0
Add more checks and fix some issues in gossip tests ( #281 )
2020-07-20 15:55:00 +09:00
Giovanni Petrantoni
d9fa9e2e84
wip
2020-07-19 12:37:45 +09:00
Dmitriy Ryajov
38eb36efae
don't use close event to stop timer ( #280 )
2020-07-18 11:00:44 -06:00
Giovanni Petrantoni
6af7909378
fix internal gossip tests
2020-07-18 21:00:44 +09:00
Giovanni Petrantoni
13c87a76c0
pubsubpeer, chronicles explicit override
2020-07-18 18:09:40 +09:00
Giovanni Petrantoni
17ac11f2b0
fix logging issue
2020-07-18 18:02:39 +09:00
Giovanni Petrantoni
88ace2c5dd
Merge branch 'master' into gossip-one-one
2020-07-18 12:08:25 +09:00
Dmitriy Ryajov
94196fee71
Connections and pubsub peers cleanup ( #279 )
...
* better peer tracking and cleanup
* check if peer and conn is nil
* test name
* make timeout more agressive
* rename method for better clarity
2020-07-17 13:46:24 -06:00
Dmitriy Ryajov
ba071cafa6
Channel timeout ( #278 )
...
* add support for channel timeouts
* tests for channel timeout
* add timeouts to standard switch
* fix mplex init
* cleanup timer on stream close
* add comment for `isConnected`
* move cleanup event
2020-07-17 12:44:41 -06:00
Dmitriy Ryajov
0348773ec9
Connection manager ( #277 )
...
* splitting out connection management
* wip
* wip conn mngr tests
* set peerinfo in contructor
* comments and documentation
* tests
* wip
* add `None` to detect untagged connections
* use `PeerID` to index connections
* fix tests
* remove useless equality
2020-07-17 09:36:48 -06:00
Giovanni Petrantoni
6b23cae3d4
wip
2020-07-17 18:01:30 +09:00
Giovanni Petrantoni
0d60a2f1c6
Merge branch 'master' into gossip-one-one
2020-07-17 17:10:49 +09:00
Giovanni Petrantoni
9e3f70896a
wip updateScores
2020-07-17 14:03:25 +09:00
Jacek Sieka
170685f9c6
gossipsub fixes ( #276 )
...
* graft up to D peers
* fix logging so it's clear who is grafting/pruning who
* clear fanout when grafting
2020-07-16 21:26:57 +02:00
Giovanni Petrantoni
6f638259ee
grafted and pruned procs
2020-07-16 22:32:43 +09:00
Giovanni Petrantoni
19d3d57d4c
small sugar
2020-07-16 21:59:33 +09:00
Giovanni Petrantoni
b0fa68022a
Merge branch 'master' into gossip-one-one
2020-07-16 21:59:03 +09:00
Giovanni Petrantoni
b3aad9e1ef
cleanups/wip
2020-07-16 21:53:45 +09:00
Jacek Sieka
c76152f2c1
Simplify send ( #271 )
...
* PubSubPeer.send single message
* gossipsub: simplify send further
2020-07-16 12:06:57 +02:00
Giovanni Petrantoni
f708874170
finishup with params
2020-07-16 16:55:59 +09:00
Giovanni Petrantoni
3039c853a2
Merge branch 'master' into gossip-one-one
2020-07-16 16:24:11 +09:00
Giovanni Petrantoni
4112e04036
Add build_p2pd script directly in this repo ( #274 )
2020-07-16 16:22:49 +09:00
Giovanni Petrantoni
0e2ff309df
parameters wip
2020-07-16 13:23:11 +09:00
Giovanni Petrantoni
66e5f41c38
Merge branch 'master' into gossip-one-one
2020-07-16 11:44:11 +09:00
Dmitriy Ryajov
f35b8999b3
some light cleanup for pub/gossip sub ( #273 )
...
* move peer table out to its own file
* move peer table
* cleanup `==` and add one to peerinfo
* add peertable
* missed equality check
2020-07-15 13:18:55 -06:00
Giovanni Petrantoni
b9759c0536
Merge branch 'master' into gossip-one-one
2020-07-15 23:22:59 +09:00
Giovanni Petrantoni
b166901f60
gossip internal tests fixes
2020-07-15 23:03:26 +09:00
Giovanni Petrantoni
255d9d0324
wip parameters
2020-07-15 17:44:23 +09:00
Eugene Kabanov
b832668768
Minprotobuf refactoring 2 ( #269 )
...
* Protobuf refactoring stage II.
* Remove NoError.
* Change trace level for invalid message.
2020-07-15 10:25:39 +02:00
Eugene Kabanov
9eb5828a42
Fix #266 . ( #270 )
...
* Fix security issue #266 .
* Add more tests.
* Fix PeerID tests should not use RSA-512 keys.
* Fix crypto tests to use vectors with 2048+ bits.
* Disable 4096bit RSA key generation for CI debug runs.
2020-07-15 10:24:04 +02:00
Giovanni Petrantoni
6eb651d43a
control prune updates (pb)
2020-07-15 17:07:17 +09:00
Giovanni Petrantoni
73972ec9ce
fix directchat build
2020-07-15 16:20:20 +09:00
Giovanni Petrantoni
ef410509e6
tests fixing
2020-07-15 15:53:19 +09:00
Giovanni Petrantoni
543ebdbdf5
support interop testing
2020-07-15 13:03:10 +09:00
Giovanni Petrantoni
d7bab37119
Fix gossip messages seqno according to spec ( #253 )
...
* Fix gossip messages seqno according to spec
* Add peers back to gossipsub table, slow down heartbeat
* Revert "Add peers back to gossipsub table, slow down heartbeat"
This reverts commit 01e2e62172
.
* make seqno a threadvar, remove from peerinfo
* seqno refactor, into pubsub
2020-07-14 21:51:33 -06:00
Giovanni Petrantoni
8078fec0f0
Merge branch 'master' into gossip-one-one
2020-07-15 08:47:43 +09:00
Giovanni Petrantoni
92623eea53
gossipsub11 -> gossipsub
2020-07-15 08:27:58 +09:00
Ștefan Talpalaru
b8b0a2b4bc
CI: build binaries with TRACE & JSON logs ( #268 )
...
Also: remove unused imports.
2020-07-14 02:02:16 +02:00
Jacek Sieka
c6c2d99907
one more log fix
2020-07-13 20:19:20 +02:00
Jacek Sieka
76853f064a
json logging again
2020-07-13 19:59:49 +02:00
Jacek Sieka
6620b7a00b
more comment fixes
2020-07-13 19:30:18 +02:00
Jacek Sieka
0d4c74b33a
comment log that can't be json-serialized
2020-07-13 18:36:49 +02:00
Jacek Sieka
061c54d3c6
logging fixes
2020-07-13 17:26:05 +02:00
Jacek Sieka
87e58c1c8d
metrics: one more pubsub peers fix
2020-07-13 16:16:46 +02:00
Jacek Sieka
c7895ccc52
metrics: fix pubsub_peers add metric
2020-07-13 16:15:27 +02:00
Giovanni Petrantoni
fcda0f6ce1
PubSubPeer tables refactor ( #263 )
...
* refactor peer tables
* tests fixing
* override PubSubPeer equality
* fix pubsubpeer comparison
2020-07-13 15:32:38 +02:00
Eugene Kabanov
efb952f18b
[WIP] Minprotobuf refactoring ( #259 )
...
* Minprotobuf initial commit
* Fix noise.
* Add signed integers support.
Add checks for field number value.
Remove some casts.
* Fix compile errors.
* Fix comments and constants.
2020-07-13 14:43:07 +02:00
Dmitriy Ryajov
181cf73ca7
Drain buffer ( #264 )
...
* drain lpchannel on reset
* move drainBuffer to bufferstream
2020-07-12 18:37:10 +02:00
Giovanni Petrantoni
503a7ec1c5
disable arm64 builds for now (travis)
2020-07-12 11:14:49 +09:00