Derrick Hammer
|
26e0a4c9df
|
fix: GetMetadataByCID has bad logic
|
2024-01-09 11:01:57 -05:00 |
Derrick Hammer
|
71192c4169
|
fix: use our logger
|
2024-01-09 11:01:25 -05:00 |
Derrick Hammer
|
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
|
2024-01-09 10:42:21 -05:00 |
Derrick Hammer
|
13be047bf8
|
fix: revert back to only passing the network id if its set, due to dart bug being fixed
|
2024-01-09 10:39:58 -05:00 |
Derrick Hammer
|
8281729888
|
refactor: need to add in node level wait group to optionally wait and keep the node running
|
2024-01-09 09:11:36 -05:00 |
Derrick Hammer
|
ff1db75f14
|
fix: need to run OnNewPeer in a goroutine
|
2024-01-09 08:39:52 -05:00 |
Derrick Hammer
|
ed2a47fca3
|
refactor: rename CID decode to CIDFromString
|
2024-01-09 08:23:35 -05:00 |
Derrick Hammer
|
58cc6153bd
|
refactor: update node interface
|
2024-01-09 08:20:19 -05:00 |
Derrick Hammer
|
18bc518dad
|
feat: implement DownloadBytesByHash and GetMetadataByCID
|
2024-01-09 08:18:41 -05:00 |
Derrick Hammer
|
ee20d2a560
|
refactor: change NewStorageLocationProvider to use a splat for locationTypes
|
2024-01-09 08:17:56 -05:00 |
Derrick Hammer
|
62bc189678
|
refactor: add empty metadata struct constructors
|
2024-01-09 08:16:42 -05:00 |
Derrick Hammer
|
2b3a5c98c2
|
fix: metadata structs need to inherit BaseMetadata
|
2024-01-09 08:16:14 -05:00 |
Derrick Hammer
|
661e2bb517
|
dep: add resty
|
2024-01-09 08:15:21 -05:00 |
Derrick Hammer
|
2341915b8e
|
refactor: need a getter for Location
|
2024-01-09 08:15:13 -05:00 |
Derrick Hammer
|
4de11b414f
|
feat: implement HashQuery EncodeMsgpack
|
2024-01-09 07:07:00 -05:00 |
Derrick Hammer
|
88c48aa996
|
refactor: make SignedStorageLocationImpl props private, add NodeId getter, re-organize,
|
2024-01-09 07:01:19 -05:00 |
Derrick Hammer
|
6c2ebb1152
|
feat: implement StorageLocationProvider
|
2024-01-09 07:00:00 -05:00 |
Derrick Hammer
|
bb68bf3be1
|
feat: implement SendHashRequest, UpVote, DownVote
|
2024-01-09 06:59:12 -05:00 |
Derrick Hammer
|
e11f3065d3
|
feat: implement saveNodeVotes
|
2024-01-09 06:58:03 -05:00 |
Derrick Hammer
|
266f9ada0e
|
fix: add missing return
|
2024-01-09 06:57:26 -05:00 |
Derrick Hammer
|
6e34f052f3
|
feat: add NewHashRequest
|
2024-01-09 06:57:06 -05:00 |
Derrick Hammer
|
47847ea124
|
refactor: use types.StorageLocationType
|
2024-01-09 06:56:44 -05:00 |
Derrick Hammer
|
27cc49fb45
|
refactor: ReadNodeScore does not need to be in the interface
|
2024-01-09 06:56:03 -05:00 |
Derrick Hammer
|
62fb8da6aa
|
refactor: rename ReadNodeScore to readNodeVotes
|
2024-01-09 06:55:37 -05:00 |
Derrick Hammer
|
04611d83eb
|
refactor: add interface check
|
2024-01-09 06:54:46 -05:00 |
Derrick Hammer
|
75db7bcc7a
|
feat: implement upvote and downvote
|
2024-01-09 06:54:22 -05:00 |
Derrick Hammer
|
f9e94ce205
|
fix: ensure NewNodeVotes defaults to 0
|
2024-01-09 06:53:51 -05:00 |
Derrick Hammer
|
45ffa1a98a
|
refactor: switch GetCachedStorageLocations to use types.StorageLocationType
|
2024-01-09 06:53:17 -05:00 |
Derrick Hammer
|
f0a1bf45c8
|
feat: add storage types
|
2024-01-09 05:14:08 -05:00 |
Derrick Hammer
|
83be618dc0
|
feat: register hash query in protocol
|
2024-01-08 12:42:02 -05:00 |
Derrick Hammer
|
d51f5e4590
|
refactor: update HandleMessage and add hash to routing table
|
2024-01-08 12:41:38 -05:00 |
Derrick Hammer
|
350d9c8244
|
fix: switch to using hash cid and fix handling of list
|
2024-01-08 12:40:40 -05:00 |
Derrick Hammer
|
a593cac1ce
|
fix: always send networkId due to bug in dart implementation
|
2024-01-08 12:13:28 -05:00 |
Derrick Hammer
|
b70d350447
|
fix: need to store connectionUris
|
2024-01-08 12:11:54 -05:00 |
Derrick Hammer
|
8a47faecac
|
feat: implement HandshakeDone HandleMessage
|
2024-01-08 12:11:34 -05:00 |
Derrick Hammer
|
deee8b0e0f
|
feat: implement AnnouncePeers EncodeMsgpack
|
2024-01-08 12:10:56 -05:00 |
Derrick Hammer
|
5f3f3e98dc
|
refactor: add getters, peersToSend property, NewAnnounceRequest constructor, remove connected property
|
2024-01-08 12:10:41 -05:00 |
Derrick Hammer
|
75b0d36b84
|
refactor: add AddPeer and SendPublicPeersToPeer to interfaces
|
2024-01-08 12:09:21 -05:00 |
Derrick Hammer
|
1fe2940fc4
|
refactor: send every message in a coroutine and manage errors in a dedicated channel
|
2024-01-08 12:08:15 -05:00 |
Derrick Hammer
|
e011d452d5
|
refactor: ToMessage isnt needed
|
2024-01-08 12:07:19 -05:00 |
Derrick Hammer
|
2a0a817006
|
fix: OnNewPeer needs to use a wait group with OnNewPeerListen
|
2024-01-08 12:06:53 -05:00 |
Derrick Hammer
|
a7f7963f1c
|
fix: DecodeMsgpackURLArray needs to parse urls and create *url.URL
|
2024-01-08 12:04:21 -05:00 |
Derrick Hammer
|
17d7eda377
|
fix: handle delay being nil
|
2024-01-08 10:51:38 -05:00 |
Derrick Hammer
|
b41c763be8
|
refactor: add getter/setter for isConnected connectionURIs
|
2024-01-08 09:52:57 -05:00 |
Derrick Hammer
|
a785031255
|
refactor: add getter/setter for isConnected
|
2024-01-08 08:44:47 -05:00 |
Derrick Hammer
|
3c1a9cc526
|
refactor: add getter for nodeId
|
2024-01-08 08:40:18 -05:00 |
Derrick Hammer
|
61faaf5694
|
test: add tests for DecodeMessage
|
2024-01-08 08:28:10 -05:00 |
Derrick Hammer
|
b3a6d6ddcc
|
fix: DecodeMessage needs to be by ref
|
2024-01-08 08:21:18 -05:00 |
Derrick Hammer
|
a5ac5af154
|
test: add tests for EncodeMsgpack
|
2024-01-08 07:55:23 -05:00 |
Derrick Hammer
|
1020293b35
|
test: add tests for HandleMessage
|
2024-01-08 07:15:30 -05:00 |