Commit Graph

72 Commits

Author SHA1 Message Date
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 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 17d7eda377
fix: handle delay being nil 2024-01-08 10:51:38 -05:00
Derrick Hammer a9fb6aedb9
fix: need to store a reference to the handler to itself so we can access it by the proper type in a parent method 2024-01-07 10:37:42 -05:00
Derrick Hammer 00c8a081f6
feat: add secure message signing and encoding 2024-01-07 09:13:02 -05:00
Derrick Hammer 2e9b07c6bd
refactor: dont use pointers with interfaces 2024-01-07 06:47:01 -05:00
Derrick Hammer 52b7426a7a
refactor: change how we manage peers, create getter/setters on Peer/BasePeer, and refactor WebSocketPeer to use new ws package and add Connect/NewPeer 2024-01-07 06:33:32 -05:00
Derrick Hammer 8f6ebbd3e2
fix: nil pointer reference 2024-01-07 05:31:24 -05:00
Derrick Hammer 581ff5120d
fix: scheme doesnt use colons 2024-01-07 05:28:05 -05:00
Derrick Hammer f7a86fd2a5
fix: don't try to init 2024-01-07 05:23:45 -05:00
Derrick Hammer 29f7563d75
fix: set inited 2024-01-07 05:23:11 -05:00
Derrick Hammer 54f0a53f77
refactor: need to crease a base protocol package to solve import cycle 2024-01-07 05:12:43 -05:00
Derrick Hammer 602ece249a
chore: delete unneeded package 2024-01-07 04:17:36 -05:00
Derrick Hammer ea872fedc4
refactor: move nodeVotes to a dedicated file 2024-01-07 04:03:36 -05:00
Derrick Hammer 4678d406fc
refactor: use interfaces, rename struct to be an impl 2024-01-07 03:57:46 -05:00
Derrick Hammer 713bcf98c3
refactor: major refactor to split major components into interfaces due to import cycles 2024-01-07 03:13:35 -05:00
Derrick Hammer 2a21ca4d60
refactor: move node and storage to its own package 2024-01-06 13:21:09 -05:00
Derrick Hammer eefbfa06d0
feat: initial node scoring support 2024-01-06 10:54:03 -05:00
Derrick Hammer 9654fadfee
refactor: abstract button creation to a generic utility method 2024-01-06 09:46:01 -05:00
Derrick Hammer 8c29a284ce
feat: wip networking 2024-01-06 06:34:15 -05:00