Derrick Hammer
|
9dc698e744
|
*Update dist
|
2022-12-17 12:32:15 -05:00 |
Derrick Hammer
|
b24bc045b8
|
*Need to use _compileMessage
|
2022-12-17 12:32:02 -05:00 |
Derrick Hammer
|
46404958cf
|
*Update dist
|
2022-12-17 12:28:48 -05:00 |
Derrick Hammer
|
3a4ddbf888
|
*If we do not have this peer in our dag, then send them a direct bootstrap request to grab all their peers
|
2022-12-17 12:28:24 -05:00 |
Derrick Hammer
|
6bf6ea3595
|
*Update dist
|
2022-12-17 11:38:31 -05:00 |
Derrick Hammer
|
c476de47b6
|
*Need to convert to buffer
|
2022-12-17 11:38:14 -05:00 |
Derrick Hammer
|
7d5f3719f9
|
*Update dist
|
2022-12-17 11:03:47 -05:00 |
Derrick Hammer
|
76755b4644
|
*Send all items to the peer we bootstrapped from if we have their connection
*Send all items to the peer we connect to in addPeerHandler only if we are already bootstrapped
*Extract item creation into private helpers
|
2022-12-17 11:03:29 -05:00 |
Derrick Hammer
|
0603c456ae
|
*Update dist
|
2022-12-17 10:38:31 -05:00 |
Derrick Hammer
|
e5b0c92dac
|
*Subtract us from the peer count in debug
|
2022-12-17 10:38:14 -05:00 |
Derrick Hammer
|
8640dcdb6f
|
*Update dist
|
2022-12-17 10:17:02 -05:00 |
Derrick Hammer
|
2465b80441
|
*Refactor bootstrap so for every peer we get, we will trigger a connection to it
*Move initial hello handshake to private method and remove us from the explicit peer list in case it was added via bootstrap
|
2022-12-17 10:15:24 -05:00 |
Derrick Hammer
|
638df772fa
|
*Update dist
|
2022-12-17 09:49:12 -05:00 |
Derrick Hammer
|
705bb45515
|
*Add heartbeat check for every heartbeat received
|
2022-12-17 09:48:55 -05:00 |
Derrick Hammer
|
dc1c9a1f82
|
*Change heartbeat check to 1/4 the heartBeatInterval rate
|
2022-12-17 09:46:38 -05:00 |
Derrick Hammer
|
ef4a6f60e9
|
*Update dist
|
2022-12-17 09:07:18 -05:00 |
Derrick Hammer
|
a3c61e2b66
|
*Change casting
|
2022-12-17 09:07:03 -05:00 |
Derrick Hammer
|
225537fc39
|
*Refactor so every call to addPeerHandler, we only add if it's not there, vs aborting completely if in connectedTo. This will ensure we stay alive via heartbeats even in edge cases
|
2022-12-17 09:05:48 -05:00 |
Derrick Hammer
|
dd21b0fa30
|
*Update dist
|
2022-12-16 13:56:06 -05:00 |
Derrick Hammer
|
35d6d7153e
|
*Increase default heartbeat to 1 minute
|
2022-12-16 11:32:16 -05:00 |
Derrick Hammer
|
a3efcf130b
|
*Use bufId not id
|
2022-12-16 09:47:36 -05:00 |
Derrick Hammer
|
3c7501cc3f
|
*Use bufId not id
|
2022-12-16 09:46:30 -05:00 |
Derrick Hammer
|
57d35e77fc
|
*Refactor so if we emit heart beat we treat it like we added a peer then set the timestamp after, in case the peer is disconnected on one side or to handle unknown unknowns
|
2022-12-16 09:34:14 -05:00 |
Derrick Hammer
|
fbbc2a2e71
|
*Update dist
|
2022-12-07 03:02:32 -05:00 |
Derrick Hammer
|
4b13de8af1
|
*Fix log messages
|
2022-12-07 03:02:19 -05:00 |
Derrick Hammer
|
3d48ba8178
|
*Update dist
|
2022-12-07 02:29:59 -05:00 |
Derrick Hammer
|
58252606a6
|
*Change logic to abort if the signature fails
|
2022-12-07 02:29:20 -05:00 |
Derrick Hammer
|
d65d33aa18
|
*Update dist
|
2022-12-07 01:06:49 -05:00 |
Derrick Hammer
|
37ad6d304a
|
*Add loglevel with custom module logger
|
2022-12-07 01:06:29 -05:00 |
Derrick Hammer
|
90aeec6802
|
*Update dist
|
2022-12-05 15:14:12 -05:00 |
Derrick Hammer
|
35c6a0e314
|
*Make heartbeat configurable with a default time of 15 seconds
|
2022-12-05 15:13:50 -05:00 |
Derrick Hammer
|
5b2d1a3c7c
|
*Skip self
|
2022-12-05 15:03:53 -05:00 |
Derrick Hammer
|
4d6f9a81d5
|
*Update dist
|
2022-12-05 14:32:15 -05:00 |
Derrick Hammer
|
28eb7ac2d6
|
*Bug fix heartbeat math
|
2022-12-05 14:32:03 -05:00 |
Derrick Hammer
|
09b0e25f6e
|
*Update dist
|
2022-12-05 14:15:37 -05:00 |
Derrick Hammer
|
b4eaa6c0b6
|
*add basic change detection on heartbeat
|
2022-12-05 14:14:56 -05:00 |
Derrick Hammer
|
29478e9a5a
|
*Instead of disconnecting dead peers, just use an "online" property on the node graph, and filter out dead peers in _recalculate
|
2022-12-05 14:08:15 -05:00 |
Derrick Hammer
|
52a0e41ca2
|
*Update dist
|
2022-12-05 06:59:58 -05:00 |
Derrick Hammer
|
8ecd021a1d
|
*Add heartbeat support to protocol
|
2022-12-05 06:59:46 -05:00 |
Derrick Hammer
|
c67bc2bba7
|
*Update dist
|
2022-11-27 02:12:36 -05:00 |
Derrick Hammer
|
9350daee68
|
*Prune graph on node disconnect
|
2022-11-27 02:12:21 -05:00 |
Derrick Hammer
|
1404c2b073
|
*Update dist
|
2022-11-26 19:39:22 -05:00 |
Derrick Hammer
|
b47502ac9d
|
*Set flag before event emit
|
2022-11-26 19:39:03 -05:00 |
Derrick Hammer
|
8959c644e3
|
*Update dist
|
2022-11-26 19:32:39 -05:00 |
Derrick Hammer
|
67bdf54e71
|
*bootstrapped flag needs to be set
|
2022-11-26 19:32:22 -05:00 |
Derrick Hammer
|
1158bd72c6
|
*Update dist
|
2022-11-26 18:48:18 -05:00 |
Derrick Hammer
|
c4321d3026
|
*Pass id property, not variable
|
2022-11-26 18:48:00 -05:00 |
Derrick Hammer
|
dccdbbd13d
|
*Update dist
|
2022-11-26 18:43:59 -05:00 |
Derrick Hammer
|
3d77943112
|
*Ensure id is a buffer
|
2022-11-26 18:43:35 -05:00 |
Derrick Hammer
|
5eb86d6acd
|
*Update dist
|
2022-11-26 17:28:46 -05:00 |