Commit Graph

  • 4cb78852d6 [NOD-1120] Don't expose server.Connection outside netAdapter - expose a wrapper instead Mike Zak 2020-07-16 10:04:05 +03:00
  • 1ab95abf35 Merge remote-tracking branch 'origin/v0.6.0-libp2p' into nod-1128-convert-message-type-to-uint32 Ori Newman 2020-07-15 18:17:59 +03:00
  • 0ca174d920 [NOD-1125] Fix merge errors. stasatdaglabs 2020-07-15 18:14:19 +03:00
  • fe29f13d50 Merge remote-tracking branch 'origin/v0.6.0-libp2p' into nod-1125-ibd stasatdaglabs 2020-07-15 18:11:50 +03:00
  • 0acdd24b59 [NOD-1128] Change message command to uint32 Ori Newman 2020-07-15 18:07:51 +03:00
  • 9939671ccc
    [NOD-1147] Implement address exchange (#795) Ori Newman 2020-07-15 17:19:46 +03:00
  • e07b89e806 [NOD-1147] Rename addr to address in protocol package Ori Newman 2020-07-15 17:07:23 +03:00
  • 26c2e39133 [NOD-1125] Fix compilation errors. stasatdaglabs 2020-07-15 17:06:12 +03:00
  • 8562549c6c [NOD-1125] Implement HandleGetBlocks. stasatdaglabs 2020-07-15 17:05:24 +03:00
  • 2b2b8de735 [NOD-1147] CmdAddr -> CmdAddress Ori Newman 2020-07-15 17:04:25 +03:00
  • f21904d4a1 [NOD-1147] Remove redundant files Ori Newman 2020-07-15 16:50:28 +03:00
  • 19673a3702 [NOD-1147] Rename fakeSrcAddr->fakeSourceAddress Ori Newman 2020-07-15 16:50:07 +03:00
  • a8c22b4982 [NOD-1147] Rename MsgAddr->MsgAddresses Ori Newman 2020-07-15 16:49:28 +03:00
  • c3d55d31b3 [NOD-1147] Rename MsgGetAddr->MsgGetAddresses Ori Newman 2020-07-15 16:45:55 +03:00
  • 65af77ba71 [NOD-1147] Rename MsgGetAddr->MsgGetAddresses Ori Newman 2020-07-15 16:25:37 +03:00
  • 7be716bbc1 [NOD-1147] Use EnqueueWithTimeout for outgoingRoute Ori Newman 2020-07-15 16:19:54 +03:00
  • d892344b20 [NOD-1147] Fix typo Ori Newman 2020-07-15 16:18:50 +03:00
  • cf86401266 [NOD-1147] Move defer to its correct place Ori Newman 2020-07-15 16:17:51 +03:00
  • bd7bb13b64 [NOD-1120] Move continue to correct place + reshuffle logging code Mike Zak 2020-07-15 16:18:12 +03:00
  • 77b510d406 [NOD-1125] Fix compilation error. stasatdaglabs 2020-07-15 16:05:15 +03:00
  • 1a51c982e2 [NOD-1148] Reshuffle checkRequestedConnections to make more sense Mike Zak 2020-07-15 15:59:04 +03:00
  • 49923e023b [NOD-1125] Fix wrong timeout. stasatdaglabs 2020-07-15 16:03:56 +03:00
  • 5ad75ea717 [NOD-1125] Implement HandleGetBlockLocator. stasatdaglabs 2020-07-15 16:01:57 +03:00
  • d786181017 [NOD-1120] Log connection failure out of initiateConnection Mike Zak 2020-07-15 15:53:02 +03:00
  • 683be697b9 [NOD-1120] Enhance comment Mike Zak 2020-07-15 15:41:55 +03:00
  • 01d0c8a5eb Merge remote-tracking branch 'origin/v0.6.0-libp2p' into nod-1120-conn-manager Mike Zak 2020-07-15 14:59:54 +03:00
  • 36e847a081 [NOD-1120] Move dial timeout to constant Mike Zak 2020-07-15 14:54:09 +03:00
  • 3ac84a4f55 [NOD-1120] Add check that both --connect and --addpeer aren't used Mike Zak 2020-07-15 14:51:47 +03:00
  • 52a1768bc1 [NOD-1120] Cleanup in SeedDNS, and move call outside of connection manager Mike Zak 2020-07-15 14:47:28 +03:00
  • eaa8515442
    [NOD-1150] Add in netadapter function to disconnect router (#797) Ori Newman 2020-07-15 14:42:17 +03:00
  • e36381625b [NOD-1120] cleanup in checkOutgoingConnections Mike Zak 2020-07-15 14:36:03 +03:00
  • 315b383910 [NOD-1120] Moved checkIncomingConnections to it's own file Mike Zak 2020-07-15 14:32:43 +03:00
  • 0fd3d1e910 [NOD-1120] Made some order in ConnectionManager Mike Zak 2020-07-15 14:29:30 +03:00
  • 7495ea6981 [NOD-1150] Fix comment Ori Newman 2020-07-15 14:29:23 +03:00
  • 3c04b94bd7 [NOD-1120] Remove overuse of if-else in checkConnectionRequests Mike Zak 2020-07-15 14:22:10 +03:00
  • 6fff9af469 [NOD-1120] add ok bool to connectionSet.get Mike Zak 2020-07-15 14:19:36 +03:00
  • e5ae000b63 [NOD-1125] Write a skeleton for the rest of the IBD requests. stasatdaglabs 2020-07-15 14:04:52 +03:00
  • 90ed8646d5 [NOD-1150] Add in netadapter function to disconnect router Ori Newman 2020-07-15 13:55:08 +03:00
  • 99bc6519dd [NOD-1125] Write a skeleton for requesting selected tip hashes. stasatdaglabs 2020-07-15 13:54:15 +03:00
  • 5bd86f06f0 [NOD-1125] Fix message types for HandleIBD. stasatdaglabs 2020-07-15 13:47:58 +03:00
  • 34d3d27b27 [NOD-1125] Implement msgIBDBlock. stasatdaglabs 2020-07-15 13:32:37 +03:00
  • f26a49d04a [NOD-1125] Implement msgIBDBlock. stasatdaglabs 2020-07-15 13:32:08 +03:00
  • a313111b4c [NOD-1147] Remove redundant const Ori Newman 2020-07-15 13:28:48 +03:00
  • db253cc443 [NOD-1147] Use rand.Shuffle Ori Newman 2020-07-15 13:26:59 +03:00
  • da2fe64a1d [NOD-1147] Remove needAddresses from MsgGetAddr Ori Newman 2020-07-15 13:23:21 +03:00
  • 12a4aff326 [NOD-1125] Implement downloadBlocks. stasatdaglabs 2020-07-15 13:13:39 +03:00
  • 8631589c30 [NOD-1125] Rename findIBDLowHash to findHighestSharedBlockHash. stasatdaglabs 2020-07-15 12:00:35 +03:00
  • f1c746a506 [NOD-1125] Finish implementing findIBDLowHash. stasatdaglabs 2020-07-15 11:53:56 +03:00
  • 016ab07b3b [NOD-1147] Add comment Ori Newman 2020-07-15 11:48:40 +03:00
  • 393186c222 [NOD-1147] Fix tests Ori Newman 2020-07-15 11:42:37 +03:00
  • 59b1e66e0f [NOD-1147] Put placeholder for source address Ori Newman 2020-07-15 11:24:42 +03:00
  • 3dd9e513ae [NOD-1120] Don't try to remove from connSet a connection that doesn't exist Mike Zak 2020-07-15 10:28:51 +03:00
  • af3d3f8bab [NOD-1120] cancel the context for DialContext in gRPCServer.Connect Mike Zak 2020-07-15 09:26:25 +03:00
  • efac1aa256 [NOD-1120] Add comments to exported methods Mike Zak 2020-07-15 09:17:03 +03:00
  • 2157978909 [NOD-1147] Implement address exchange Ori Newman 2020-07-14 18:28:32 +03:00
  • 8edd8686cf [NOD-1125] Begin implementing findIBDLowHash. stasatdaglabs 2020-07-14 18:17:03 +03:00
  • 6a11d429db [NOD-1120] Remove errChan from grpcConnection Mike Zak 2020-07-14 18:14:30 +03:00
  • d1ebd8e4da [NOD-1120] Minor bug fixes Mike Zak 2020-07-14 18:10:08 +03:00
  • 4de23bcba3 [NOD-1125] Implement sendGetBlockLocator. stasatdaglabs 2020-07-14 18:01:46 +03:00
  • abf53ad0c7 [NOD-1120] Add call for addressManager.Good Mike Zak 2020-07-14 17:46:15 +03:00
  • 1df09fae0a [NOD-1120] Don't enter connections to add loop if none needed Mike Zak 2020-07-14 17:38:09 +03:00
  • 85e66861f1 [NOD-1120] Added timeout to connect Mike Zak 2020-07-14 17:35:30 +03:00
  • 8753939ef6 [NOD-1120] Allow buffer to not be bytes.Buffer Mike Zak 2020-07-14 17:31:53 +03:00
  • 0b3d331dfb [NOD-1125] Fix a comment. stasatdaglabs 2020-07-14 17:30:50 +03:00
  • a44100ff5e [NOD-1125] Fix merge errors. stasatdaglabs 2020-07-14 17:28:29 +03:00
  • e9a5b29068 Merge remote-tracking branch 'origin/v0.6.0-libp2p' into nod-1120-conn-manager Mike Zak 2020-07-14 17:26:33 +03:00
  • 0aa29ed378 Merge remote-tracking branch 'origin/v0.6.0-libp2p' into nod-1125-ibd stasatdaglabs 2020-07-14 17:25:57 +03:00
  • 63411b4634 [NOD-1125] Move functions around. stasatdaglabs 2020-07-14 17:24:33 +03:00
  • 04b578cee1
    [NOD-1137] Implement handshake protocol (#792) Ori Newman 2020-07-14 17:20:29 +03:00
  • 5c45710f7b [NOD-1137] Use EnqueueWithTimeout everywhere in protocol Ori Newman 2020-07-14 17:16:07 +03:00
  • cbc8ad7bc5 [NOD-1137] Change comment Ori Newman 2020-07-14 17:09:56 +03:00
  • 94613ee608 [NOD-1137] Unremove ErrTimeout Ori Newman 2020-07-14 17:07:16 +03:00
  • ad3e54ac26 [NOD-1120] Integrated connmanager into kaspad + added call for dnsseeder Mike Zak 2020-07-14 17:02:12 +03:00
  • 672b721e3d [NOD-1137] Remove ErrTimeout Ori Newman 2020-07-14 16:56:15 +03:00
  • adf5e709ed [NOD-1137] Add comments Ori Newman 2020-07-14 16:32:47 +03:00
  • b337592fed [NOD-1137] Replace idFromBytes->id.FromBytes Ori Newman 2020-07-14 16:28:45 +03:00
  • 0673c209c2 [NOD-1137] Log error only if exists Ori Newman 2020-07-14 16:24:46 +03:00
  • 2889d921a2 [NOD-1125] Add WaitForIBDStart to Peer. stasatdaglabs 2020-07-14 16:23:58 +03:00
  • 7e011e2106 [NOD-1137] Add ErrTimeout Ori Newman 2020-07-14 16:23:27 +03:00
  • 0bdb3bb635 Merge remote-tracking branch 'origin/v0.6.0-libp2p' into nod-1137-handshake Ori Newman 2020-07-14 16:23:07 +03:00
  • f8e53d309c
    [NOD-1142] Implement EnqueueWithTimeout and DequeueWithTimeout (#794) stasatdaglabs 2020-07-14 16:14:27 +03:00
  • c2efbb333d [NOD-1137] Add protocol error Ori Newman 2020-07-14 16:10:59 +03:00
  • 7b63ebfb2f [NOD-1120] Implement all connection manager methods Mike Zak 2020-07-14 16:08:46 +03:00
  • dd64316867 [NOD-1142] Add comments about the new methods. stasatdaglabs 2020-07-14 14:54:30 +03:00
  • 854f11459f [NOD-1142] Use DequeueWithTimeout in readMsgBlock. stasatdaglabs 2020-07-14 14:50:14 +03:00
  • f328f0ae30 [NOD-1142] Implement EnqueueWithTimeout and DequeueWithTimeout. stasatdaglabs 2020-07-14 14:45:58 +03:00
  • 210f833eda [NOD-1125] Write a skeleton for starting IBD. stasatdaglabs 2020-07-14 13:56:38 +03:00
  • ed156bf51e Merge remote-tracking branch 'origin/v0.6.0-libp2p' into nod-1137-handshake Ori Newman 2020-07-14 13:45:26 +03:00
  • 1e16ce0592 [NOD-1137] Add FromBytes to id package Ori Newman 2020-07-14 13:44:39 +03:00
  • 03c198eb1a [NOD-1137] Remove version and verack message types when handshake is over Ori Newman 2020-07-14 13:43:07 +03:00
  • c6d5411fcc [NOD-1137] Handle external IP on GetBestLocalAddress Ori Newman 2020-07-14 13:38:53 +03:00
  • 4da14d1209 Merge remote-tracking branch 'origin/v0.6.0-libp2p' into nod-1120-conn-manager Mike Zak 2020-07-14 13:06:03 +03:00
  • 4fd177de8b [NOD-1137] Fix bug in GetReadyPeerIDs Ori Newman 2020-07-14 12:59:08 +03:00
  • 13bb13af2d [NOD-1137] Fix erroneous condition on Dequeue Ori Newman 2020-07-14 12:56:27 +03:00
  • 2b8caef1df [NOD-1137] Move errors.Is inside err!=nil branch Ori Newman 2020-07-14 12:54:34 +03:00
  • 455befbb8d [NOD-1137] Rename variables Ori Newman 2020-07-14 12:54:10 +03:00
  • 6076309b3e
    [NOD-1142] Implement ping flow (#793) stasatdaglabs 2020-07-14 12:41:37 +03:00
  • 9c934cbb32 [NOD-1142] Rephrase a comment. stasatdaglabs 2020-07-14 12:29:57 +03:00
  • fe43716223 [NOD-1142] Move pingInterval to within SendPings. stasatdaglabs 2020-07-14 12:28:36 +03:00
  • 553765bde2 [NOD-1142] Rename HandleIncomingPings to ReceivePings and StartSendingPings to SendPings. stasatdaglabs 2020-07-14 12:28:11 +03:00