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 |
Derrick Hammer
|
7261b35f94
|
refactor: switch to composing routes vs using a handler so we can control the api better outside the library, and only define what the library absolutely needs
|
2024-01-16 11:26:27 -05:00 |
Derrick Hammer
|
28444ca456
|
feat: add s5 login and register endpoints
|
2024-01-16 10:16:43 -05:00 |
Derrick Hammer
|
dced32ab21
|
fix: use PutUInt
|
2024-01-15 14:13:27 -05:00 |
Derrick Hammer
|
1b6925c296
|
refactor: change abused to abuser
|
2024-01-15 13:50:04 -05:00 |
Derrick Hammer
|
d0d6745d60
|
fix: only log if peer was not flagged for abuse
|
2024-01-15 13:49:07 -05:00 |
Derrick Hammer
|
c2ab3b4651
|
refactor: switch to EndForAbuse
|
2024-01-15 13:37:49 -05:00 |
Derrick Hammer
|
5e80831335
|
fix: only block and log if we are actually blocking, and make it all debug messages
|
2024-01-15 13:19:46 -05:00 |
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
|
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
|
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 |