Derrick Hammer
|
71cb44dc61
|
fix: check TCPAddr and log error on closing connection, then abort
|
2024-03-10 07:38:44 -04:00 |
Derrick Hammer
|
1f8d383da7
|
fix: prevent websocket loopback connections
|
2024-03-10 07:24:48 -04:00 |
Derrick Hammer
|
5f5b522e68
|
refactor: change GetIP to GetIPString
|
2024-03-10 07:16:37 -04:00 |
Derrick Hammer
|
438e76dfb8
|
feat: add config level blocklist support
|
2024-03-09 13:12:22 -05:00 |
Derrick Hammer
|
c9fe8a0819
|
feat: implement new kv database package starting with bbolt
|
2024-03-09 06:46:48 -05:00 |
Derrick Hammer
|
cc2964e80f
|
feat: split off meta parsing to ParseMetadata
|
2024-03-07 16:53:55 -05:00 |
Derrick Hammer
|
fc212ef246
|
fix: > not >=
|
2024-03-05 15:21:47 -05:00 |
Derrick Hammer
|
8f32074667
|
refactor: switch ConnectToNode to use a retries counter and make it configurable via P2PConfig
|
2024-03-05 15:13:25 -05:00 |
Derrick Hammer
|
a87bfe7ba6
|
fix: ErrTransportNotSupported check in wrong location
|
2024-03-05 15:06:42 -05:00 |
Derrick Hammer
|
cca7d881de
|
fix: if ErrTransportNotSupported, then just log and return the error, don't bother blocking
|
2024-03-05 15:01:59 -05:00 |
Derrick Hammer
|
5fcf99d97e
|
fix: if we dont get a 200, increase the retry count to prevent a possible infinite loop
|
2024-03-05 13:11:56 -05:00 |
Derrick Hammer
|
56d5ab5e6b
|
Revert "fix: use record type, not hash type"
This reverts commit 4004dd98c9 .
|
2024-03-03 12:16:51 -05:00 |
Derrick Hammer
|
4004dd98c9
|
fix: use record type, not hash type
|
2024-03-03 12:12:45 -05:00 |
Derrick Hammer
|
c6aa2cf4a2
|
fix: Get needs to actually return the entry
|
2024-03-03 11:26:44 -05:00 |
Derrick Hammer
|
73dc22a71e
|
refactor: add a local param to StorageService.GetCachedStorageLocations so we don't spam the local provider store on every poll
|
2024-03-03 09:28:33 -05:00 |
Derrick Hammer
|
a059980ff0
|
fix: check local 1st and add it to locations, then return locations in len(locationMap) check
|
2024-03-02 05:53:54 -05:00 |
Derrick Hammer
|
b75c8cd3fe
|
refactor: move local check inside GetCachedStorageLocations to be more transparent
|
2024-03-02 05:46:18 -05:00 |
Derrick Hammer
|
eb4e4a9f37
|
refactor: use static error object
|
2024-03-01 20:54:16 -05:00 |
Derrick Hammer
|
f279eb7e9d
|
fix: need to use new struct instance, not interface
|
2024-02-29 12:50:20 -05:00 |
Derrick Hammer
|
1584c38641
|
fix: check status code, and switch to more light weight http library
|
2024-02-29 12:25:21 -05:00 |
Derrick Hammer
|
5a0b742139
|
fix: add handshake check to unsigned messages as well
|
2024-02-28 14:13:44 -05:00 |
Derrick Hammer
|
82de843ad9
|
fix: only skip if we somehow get called while not started and we aren't starting
|
2024-02-27 04:10:16 -05:00 |
Derrick Hammer
|
e201c899f4
|
refactor: add new starting state
|
2024-02-27 04:07:12 -05:00 |
Derrick Hammer
|
ddde672b3c
|
refactor: add ctx to all services
|
2024-02-27 03:30:45 -05:00 |
Derrick Hammer
|
af3cb367bb
|
fix: need to provide embedded ServiceParams struct
|
2024-02-27 02:52:27 -05:00 |
Derrick Hammer
|
881e19d569
|
fix: dont shadow err
|
2024-01-30 17:09:05 -05:00 |
Derrick Hammer
|
5350eda27e
|
fix: IncomingMessageData needs Logger
|
2024-01-30 16:54:13 -05:00 |
Derrick Hammer
|
7cc5621a10
|
fix: use ServicesSetter
|
2024-01-30 16:07:22 -05:00 |
Derrick Hammer
|
fd55c0984f
|
refactor: split SetServices into its own interface
|
2024-01-30 16:06:57 -05:00 |
Derrick Hammer
|
5a2e28faba
|
fix: temp cast mediator so we can set the service data
|
2024-01-30 16:00:41 -05:00 |
Derrick Hammer
|
9919ad72da
|
fix: add init to services and node
|
2024-01-30 15:46:00 -05:00 |
Derrick Hammer
|
a51e3430e1
|
refactor: more refactoring to break import cycles, introduce a mediator between protocol and service
|
2024-01-30 00:31:31 -05:00 |
Derrick Hammer
|
05ab4e7c0f
|
chore: unneeded file
|
2024-01-29 22:56:27 -05:00 |
Derrick Hammer
|
f2d2193fc2
|
fix: fix imports, use GetMessageType not GetSignedMessageType
|
2024-01-29 22:38:52 -05:00 |
Derrick Hammer
|
ff134ece14
|
refactor: merged signed back into protocol
|
2024-01-29 22:35:40 -05:00 |
Derrick Hammer
|
af58aac985
|
refactor: base pkg is not needed
|
2024-01-29 22:25:46 -05:00 |
Derrick Hammer
|
bd08d75da4
|
refactoring: more refactoring to break import cycles
|
2024-01-29 21:38:29 -05:00 |
Derrick Hammer
|
0ee96599f1
|
refactoring: more refactoring to break import cycles
|
2024-01-29 21:03:57 -05:00 |
Derrick Hammer
|
3b3a50e419
|
refactoring: more refactoring to break import cycles
|
2024-01-29 20:52:17 -05:00 |
Derrick Hammer
|
b2c06590b1
|
refactoring: more refactoring to break import cycles
|
2024-01-29 19:24:50 -05:00 |
Derrick Hammer
|
2e8c335b7e
|
refactoring: more refactoring to break import cycles
|
2024-01-29 18:53:32 -05:00 |
Derrick Hammer
|
b60979e79d
|
refactor: further refactoring for DI, splitting node responsibilities to a new Storage service, Services, and P2P
|
2024-01-29 01:55:36 -05:00 |
Derrick Hammer
|
59a73e4266
|
refactor: use a dependency injection/IoC pattern based off uber fx
|
2024-01-29 01:10:04 -05:00 |
Derrick Hammer
|
a0dcc52d63
|
refactor: remove dedicated interfaces and minimize interfaces
|
2024-01-28 23:59:43 -05:00 |
Derrick Hammer
|
31ccfb8c0b
|
refactor: major rewrite of message structure and wiring, reducing complexity
|
2024-01-28 23:39:40 -05:00 |
Derrick Hammer
|
6b9a4fb7dc
|
fix: EncodeEndian call needs to be a length of 2
|
2024-01-24 16:33:31 -05:00 |
Derrick Hammer
|
afa38f1424
|
fix: use private key
|
2024-01-24 11:57:48 -05:00 |
Derrick Hammer
|
34bb591bfe
|
feat: implement PrepareProvideMessage
|
2024-01-24 02:53:56 -05:00 |
Derrick Hammer
|
3e76519091
|
fix: bad http verb
|
2024-01-17 17:02:39 -05:00 |
Derrick Hammer
|
3009e1dce3
|
feat: implement /s5/p2p/nodes
|
2024-01-17 15:51:41 -05:00 |