Commit Graph

414 Commits

Author SHA1 Message Date
Derrick Hammer d76bfc6daf
fix: use Get/PutUInt 2024-01-15 13:10:15 -05:00
Derrick Hammer 3ddf2595b9
fix: use Get/PutUInt 2024-01-15 13:03:49 -05:00
Derrick Hammer 743ba71e4b
fix: use PutUInt 2024-01-15 12:58:46 -05:00
Derrick Hammer 6e2b08dd05
feat: add GetUInt and PutUInt 2024-01-15 12:57:47 -05:00
Derrick Hammer def05376f5
fix: only block peer id if we can get the id 2024-01-15 12:13:17 -05:00
Derrick Hammer 0ce9b139b1
fix: use outgoingPeerBlocklist 2024-01-15 12:09:25 -05:00
Derrick Hammer bbb407b0e1
fix: add incoming peer to ip block too, and add more logging 2024-01-15 11:45:25 -05:00
Derrick Hammer ab53dbdf08
fix: only block peer if we have the id, and the maps were flipped 2024-01-15 11:38:38 -05:00
Derrick Hammer fc10a265a7
feat: implement GetIP 2024-01-15 11:15:11 -05:00
Derrick Hammer e7026459b4
fix: if peer sends us someone we have blocked outbound, block them inbound too 2024-01-15 11:04:41 -05:00
Derrick Hammer 3f0af1587b
fix: set outgoingPeerBlocklist and incomingPeerBlockList correctly 2024-01-15 10:59:45 -05:00
Derrick Hammer b9bf531663
fix: init outgoingPeerFailures 2024-01-15 10:58:03 -05:00
Derrick Hammer 883f50b198
feat: add incoming and outgoing peer blocking to handle abuse 2024-01-15 10:54:31 -05:00
Derrick Hammer d79455c68c
refactor: rename GetHandler to GetHttpRouter 2024-01-14 22:06:57 -05:00
Derrick Hammer 3d12cff53e
refactor: use setter for the http handler 2024-01-14 22:06:18 -05:00
Derrick Hammer 38e330e02b
feat: add an interface for handling http methods to be handled abstractly and implement the basic upload endpoint 2024-01-14 20:53:44 -05:00
Derrick Hammer 3d41119f74
fix: add a new property on messages and peers to prevent messages from being processed before the handshake is done 2024-01-13 11:22:01 -05:00
Derrick Hammer 36f087dc83
fix: malformed selfConnectionUri 2024-01-12 15:10:24 -05:00
Derrick Hammer f38c02adb9
fix: dummy file to make go get happy 2024-01-12 07:55:39 -05:00
Derrick Hammer cc7cbcd212
fix: dummy file to make go get happy 2024-01-12 07:54:10 -05:00
Derrick Hammer 7e9815fb00
cleanup: remove unneeded file 2024-01-11 20:58:42 -05:00
Derrick Hammer 7b17c1898b
fix: bad debug formatting 2024-01-10 11:25:46 -05:00
Derrick Hammer 5df9ac2256
fix: need to add peer to wg 2024-01-10 11:21:07 -05:00
Derrick Hammer 19fb3b9967
fix: move everything using endian to uint64 2024-01-10 11:00:01 -05:00
Derrick Hammer f9a0bd863c
fix: typo 2024-01-10 09:53:45 -05:00
Derrick Hammer bc9e5f187c
fix: encode stringified URL 2024-01-10 09:53:35 -05:00
Derrick Hammer ac11da28c0
fix: pass SelfConnectionUris to NewHandshakeDoneRequest 2024-01-10 09:37:27 -05:00
Derrick Hammer 7ab602ce23
feat: store http api config in selfConnectionUris 2024-01-10 09:36:55 -05:00
Derrick Hammer 8a91b912c0
feat: add http config structs 2024-01-10 09:35:47 -05:00
Derrick Hammer 584057fb8a
feat: initial HTTP service with version and P2P endpoints 2024-01-10 09:19:21 -05:00
Derrick Hammer 3f42a66fa8
test: add mock generation for registry 2024-01-10 09:18:45 -05:00
Derrick Hammer ad55a2e0b1
feat: add build package to allow build time consts 2024-01-10 09:18:09 -05:00
Derrick Hammer cd71371768
refactor: we don't need to define Node() twice 2024-01-10 08:11:15 -05:00
Derrick Hammer 123f28ac19
refactor: run initial peer connect async 2024-01-10 07:42:04 -05:00
Derrick Hammer 6591b2a79f
fix: need to spin emit off 2024-01-10 07:32:34 -05:00
Derrick Hammer b542de3cb0
fix: need to decode the original message as its not msgpack 2024-01-10 07:20:33 -05:00
Derrick Hammer 773a66207d
fix: we use fire, as the event name 2024-01-10 07:20:09 -05:00
Derrick Hammer 180b76ee3c
feat: add listen method 2024-01-10 07:05:13 -05:00
Derrick Hammer 2cfbacbcd7
refactor: remove un-needed else 2024-01-10 06:47:30 -05:00
Derrick Hammer 65727b8cc5
fix: ensure registry is setup in construction 2024-01-10 06:42:17 -05:00
Derrick Hammer 7578665ba4
refactor: add All method so that we can range over services dynamically 2024-01-10 06:33:21 -05:00
Derrick Hammer 6bf557346d
feat: initial registry service support 2024-01-10 06:29:03 -05:00
Derrick Hammer 528e1a6c27
chore: remove debug lines 2024-01-09 17:17:45 -05:00
Derrick Hammer f6e005c497
feat: add support for directories in GetMetadataByCID 2024-01-09 16:34:07 -05:00
Derrick Hammer 712e216150
feat: add DownloadBytesByCID 2024-01-09 16:18:49 -05:00
Derrick Hammer f6dc2c1d53
fix: we are checking value's length and i dont know why or where this came from... 2024-01-09 16:14:31 -05:00
Derrick Hammer 5ed286a639
fix: need to manually process address slice 2024-01-09 16:13:53 -05:00
Derrick Hammer 1e94f378f3
fix: save the node votes 2024-01-09 15:51:02 -05:00
Derrick Hammer 646f69e920
fix: dont use a callback with CreateBucket 2024-01-09 15:50:43 -05:00
Derrick Hammer b7107989d3
fix: rewrite StorageLocationMap DecodeMsgpack as it only works with a temporary map 2024-01-09 15:50:14 -05:00