This website requires JavaScript.
bbb407b0e1
fix: add incoming peer to ip block too, and add more logging
Derrick Hammer
2024-01-15 11:45:25 -0500
ab53dbdf08
fix: only block peer if we have the id, and the maps were flipped
Derrick Hammer
2024-01-15 11:38:38 -0500
fc10a265a7
feat: implement GetIP
Derrick Hammer
2024-01-15 11:15:11 -0500
e7026459b4
fix: if peer sends us someone we have blocked outbound, block them inbound too
Derrick Hammer
2024-01-15 11:04:41 -0500
3f0af1587b
fix: set outgoingPeerBlocklist and incomingPeerBlockList correctly
Derrick Hammer
2024-01-15 10:59:45 -0500
b9bf531663
fix: init outgoingPeerFailures
Derrick Hammer
2024-01-15 10:58:03 -0500
883f50b198
feat: add incoming and outgoing peer blocking to handle abuse
Derrick Hammer
2024-01-15 10:54:31 -0500
d79455c68c
refactor: rename GetHandler to GetHttpRouter
Derrick Hammer
2024-01-14 22:06:57 -0500
3d12cff53e
refactor: use setter for the http handler
Derrick Hammer
2024-01-14 22:06:18 -0500
38e330e02b
feat: add an interface for handling http methods to be handled abstractly and implement the basic upload endpoint
Derrick Hammer
2024-01-14 20:53:44 -0500
3d41119f74
fix: add a new property on messages and peers to prevent messages from being processed before the handshake is done
Derrick Hammer
2024-01-13 11:22:01 -0500
36f087dc83
fix: malformed selfConnectionUri
Derrick Hammer
2024-01-12 15:10:24 -0500
f38c02adb9
fix: dummy file to make go get happy
Derrick Hammer
2024-01-12 07:55:39 -0500
cc7cbcd212
fix: dummy file to make go get happy
Derrick Hammer
2024-01-12 07:54:10 -0500
7e9815fb00
cleanup: remove unneeded file
Derrick Hammer
2024-01-11 20:58:42 -0500
7b17c1898b
fix: bad debug formatting
Derrick Hammer
2024-01-10 11:21:21 -0500
5df9ac2256
fix: need to add peer to wg
Derrick Hammer
2024-01-10 11:21:07 -0500
19fb3b9967
fix: move everything using endian to uint64
Derrick Hammer
2024-01-10 11:00:01 -0500
f9a0bd863c
fix: typo
Derrick Hammer
2024-01-10 09:53:45 -0500
bc9e5f187c
fix: encode stringified URL
Derrick Hammer
2024-01-10 09:53:35 -0500
ac11da28c0
fix: pass SelfConnectionUris to NewHandshakeDoneRequest
Derrick Hammer
2024-01-10 09:37:27 -0500
7ab602ce23
feat: store http api config in selfConnectionUris
Derrick Hammer
2024-01-10 09:36:55 -0500
8a91b912c0
feat: add http config structs
Derrick Hammer
2024-01-10 09:35:47 -0500
584057fb8a
feat: initial HTTP service with version and P2P endpoints
Derrick Hammer
2024-01-10 09:19:21 -0500
3f42a66fa8
test: add mock generation for registry
Derrick Hammer
2024-01-10 09:18:45 -0500
ad55a2e0b1
feat: add build package to allow build time consts
Derrick Hammer
2024-01-10 09:18:09 -0500
cd71371768
refactor: we don't need to define Node() twice
Derrick Hammer
2024-01-10 08:11:15 -0500
123f28ac19
refactor: run initial peer connect async
Derrick Hammer
2024-01-10 07:42:04 -0500
6591b2a79f
fix: need to spin emit off
Derrick Hammer
2024-01-10 07:32:34 -0500
b542de3cb0
fix: need to decode the original message as its not msgpack
Derrick Hammer
2024-01-10 07:20:33 -0500
773a66207d
fix: we use fire, as the event name
Derrick Hammer
2024-01-10 07:20:09 -0500
180b76ee3c
feat: add listen method
Derrick Hammer
2024-01-10 07:05:13 -0500
2cfbacbcd7
refactor: remove un-needed else
Derrick Hammer
2024-01-10 06:47:30 -0500
65727b8cc5
fix: ensure registry is setup in construction
Derrick Hammer
2024-01-10 06:42:17 -0500
7578665ba4
refactor: add All method so that we can range over services dynamically
Derrick Hammer
2024-01-10 06:33:21 -0500
6bf557346d
feat: initial registry service support
Derrick Hammer
2024-01-10 06:21:03 -0500
528e1a6c27
chore: remove debug lines
Derrick Hammer
2024-01-09 17:17:45 -0500
f6e005c497
feat: add support for directories in GetMetadataByCID
Derrick Hammer
2024-01-09 16:34:07 -0500
712e216150
feat: add DownloadBytesByCID
Derrick Hammer
2024-01-09 16:18:49 -0500
f6dc2c1d53
fix: we are checking value's length and i dont know why or where this came from...
Derrick Hammer
2024-01-09 16:14:31 -0500
5ed286a639
fix: need to manually process address slice
Derrick Hammer
2024-01-09 16:13:53 -0500
1e94f378f3
fix: save the node votes
Derrick Hammer
2024-01-09 15:51:02 -0500
646f69e920
fix: dont use a callback with CreateBucket
Derrick Hammer
2024-01-09 15:50:43 -0500
b7107989d3
fix: rewrite StorageLocationMap DecodeMsgpack as it only works with a temporary map
Derrick Hammer
2024-01-09 15:50:14 -0500
c137d75b24
fix: we need to run all bucket actions via transactions and cannot store a pointer to the bucket
Derrick Hammer
2024-01-09 15:49:23 -0500
1f01f40338
fix: implement Parts getter
Derrick Hammer
2024-01-09 14:55:52 -0500
1e7baabcb3
fix: switch to using the originally stored message since we need everything to do message verification
Derrick Hammer
2024-01-09 14:54:59 -0500
8806e69a66
fix: register RecordTypeStorageLocation
Derrick Hammer
2024-01-09 13:58:11 -0500
ed97c03d16
refactor: switch to using a normal map
Derrick Hammer
2024-01-09 13:57:35 -0500
6b6e7d4fc4
refactor: add record types to protocol
Derrick Hammer
2024-01-09 13:47:26 -0500
cd8e747656
refactor: we have changed to use our own manual Init for the protocol registration for safety
Derrick Hammer
2024-01-09 12:51:54 -0500
316e3cddb0
refactor: add Original to interface
Derrick Hammer
2024-01-09 12:50:52 -0500
185d0636ef
refactor: use Kind
Derrick Hammer
2024-01-09 12:50:28 -0500
799be312e1
refactor: add kind to interface
Derrick Hammer
2024-01-09 12:49:16 -0500
1458cbe1d9
fix: ensure we use int everywhere for kind to try and avoid any weird bitwise or implied conversions
Derrick Hammer
2024-01-09 12:47:58 -0500
2622f2b9d0
fix: pass both StorageLocationTypeFull and StorageLocationTypeFile
Derrick Hammer
2024-01-09 11:43:33 -0500
26e0a4c9df
fix: GetMetadataByCID has bad logic
Derrick Hammer
2024-01-09 11:01:57 -0500
71192c4169
fix: use our logger
Derrick Hammer
2024-01-09 11:01:25 -0500
1678b40d82
fix: add a peerPending map to track and ensure we don't try to connect to a peer again until removed, even if we haven't gotten a handshake done
Derrick Hammer
2024-01-09 10:42:21 -0500
13be047bf8
fix: revert back to only passing the network id if its set, due to dart bug being fixed
Derrick Hammer
2024-01-09 10:39:58 -0500
8281729888
refactor: need to add in node level wait group to optionally wait and keep the node running
Derrick Hammer
2024-01-09 09:11:36 -0500
ff1db75f14
fix: need to run OnNewPeer in a goroutine
Derrick Hammer
2024-01-09 08:39:52 -0500
ed2a47fca3
refactor: rename CID decode to CIDFromString
Derrick Hammer
2024-01-09 08:23:35 -0500
58cc6153bd
refactor: update node interface
Derrick Hammer
2024-01-09 08:20:19 -0500
18bc518dad
feat: implement DownloadBytesByHash and GetMetadataByCID
Derrick Hammer
2024-01-09 08:18:41 -0500
ee20d2a560
refactor: change NewStorageLocationProvider to use a splat for locationTypes
Derrick Hammer
2024-01-09 08:17:56 -0500
62bc189678
refactor: add empty metadata struct constructors
Derrick Hammer
2024-01-09 08:16:42 -0500
2b3a5c98c2
fix: metadata structs need to inherit BaseMetadata
Derrick Hammer
2024-01-09 08:16:14 -0500
661e2bb517
dep: add resty
Derrick Hammer
2024-01-09 08:15:21 -0500
2341915b8e
refactor: need a getter for Location
Derrick Hammer
2024-01-09 08:15:13 -0500
4de11b414f
feat: implement HashQuery EncodeMsgpack
Derrick Hammer
2024-01-09 07:07:00 -0500
88c48aa996
refactor: make SignedStorageLocationImpl props private, add NodeId getter, re-organize,
Derrick Hammer
2024-01-09 07:01:19 -0500
6c2ebb1152
feat: implement StorageLocationProvider
Derrick Hammer
2024-01-09 07:00:00 -0500
bb68bf3be1
feat: implement SendHashRequest, UpVote, DownVote
Derrick Hammer
2024-01-09 06:59:12 -0500
e11f3065d3
feat: implement saveNodeVotes
Derrick Hammer
2024-01-09 06:58:03 -0500
266f9ada0e
fix: add missing return
Derrick Hammer
2024-01-09 06:57:26 -0500
6e34f052f3
feat: add NewHashRequest
Derrick Hammer
2024-01-09 06:57:06 -0500
47847ea124
refactor: use types.StorageLocationType
Derrick Hammer
2024-01-09 06:56:44 -0500
27cc49fb45
refactor: ReadNodeScore does not need to be in the interface
Derrick Hammer
2024-01-09 06:56:03 -0500
62fb8da6aa
refactor: rename ReadNodeScore to readNodeVotes
Derrick Hammer
2024-01-09 06:55:37 -0500
04611d83eb
refactor: add interface check
Derrick Hammer
2024-01-09 06:54:46 -0500
75db7bcc7a
feat: implement upvote and downvote
Derrick Hammer
2024-01-09 06:54:22 -0500
f9e94ce205
fix: ensure NewNodeVotes defaults to 0
Derrick Hammer
2024-01-09 06:53:51 -0500
45ffa1a98a
refactor: switch GetCachedStorageLocations to use types.StorageLocationType
Derrick Hammer
2024-01-09 06:53:09 -0500
f0a1bf45c8
feat: add storage types
Derrick Hammer
2024-01-09 05:14:08 -0500
83be618dc0
feat: register hash query in protocol
Derrick Hammer
2024-01-08 12:42:02 -0500
d51f5e4590
refactor: update HandleMessage and add hash to routing table
Derrick Hammer
2024-01-08 12:41:38 -0500
350d9c8244
fix: switch to using hash cid and fix handling of list
Derrick Hammer
2024-01-08 12:40:40 -0500
a593cac1ce
fix: always send networkId due to bug in dart implementation
Derrick Hammer
2024-01-08 12:13:28 -0500
b70d350447
fix: need to store connectionUris
Derrick Hammer
2024-01-08 12:11:54 -0500
8a47faecac
feat: implement HandshakeDone HandleMessage
Derrick Hammer
2024-01-08 12:11:34 -0500
deee8b0e0f
feat: implement AnnouncePeers EncodeMsgpack
Derrick Hammer
2024-01-08 12:10:56 -0500
5f3f3e98dc
refactor: add getters, peersToSend property, NewAnnounceRequest constructor, remove connected property
Derrick Hammer
2024-01-08 12:10:41 -0500
75b0d36b84
refactor: add AddPeer and SendPublicPeersToPeer to interfaces
Derrick Hammer
2024-01-08 12:09:21 -0500
1fe2940fc4
refactor: send every message in a coroutine and manage errors in a dedicated channel
Derrick Hammer
2024-01-08 12:08:15 -0500
e011d452d5
refactor: ToMessage isnt needed
Derrick Hammer
2024-01-08 12:07:19 -0500
2a0a817006
fix: OnNewPeer needs to use a wait group with OnNewPeerListen
Derrick Hammer
2024-01-08 12:06:53 -0500
a7f7963f1c
fix: DecodeMsgpackURLArray needs to parse urls and create *url.URL
Derrick Hammer
2024-01-08 12:04:21 -0500
17d7eda377
fix: handle delay being nil
Derrick Hammer
2024-01-08 10:51:38 -0500
b41c763be8
refactor: add getter/setter for isConnected connectionURIs
Derrick Hammer
2024-01-08 09:52:57 -0500