Commit Graph

216 Commits

Author SHA1 Message Date
parazyd
71cd3064d6 Update license year. 2022-12-28 13:06:00 +01:00
Dastan-glitch
6215a0fc50 bin/ircd: add the ability to save recoverd public key to a file with -o 2022-12-24 17:07:56 +03:00
parazyd
9acfed6402 Clippy lints. 2022-12-14 12:30:27 +01:00
parazyd
88caee7f42 Update and clean up dependencies. 2022-12-13 15:19:09 +01:00
Dastan-glitch
f975326386 bin/ircd: recover public key from private key 2022-12-12 23:15:10 +03:00
parazyd
905586a638 cargo fix 2022-12-07 12:53:52 +01:00
aggstam
3692735012 rpc/server: detach request handling 2022-11-25 18:05:35 +02:00
parazyd
f2dd798f2d Clear up most warnings and have test units pass. 2022-11-06 21:17:36 +01:00
parazyd
8ae84ad7f9 Add license header to source files. 2022-10-31 18:16:13 +01:00
Luther Blissett
5e4b663b13 Apply new path to serial crate throughout codebase. 2022-10-15 20:06:28 +02:00
Luther Blissett
47dbf1363f Clean up async_daemonize for less imports and use smol. 2022-10-14 14:07:06 +02:00
Luther Blissett
88abda32ce make fix and cargo fmt. 2022-10-06 14:21:56 +02:00
ghassmo
09d04ca29f doc/book: hashchain: add EventsQueue type 2022-09-29 12:29:28 +04:00
ghassmo
e6f06d6095 bin/ircd/model: skip serializing read_confirms inside Event 2022-09-29 11:56:27 +04:00
ghassmo
043a50a03f bin/ircd/model: create EventQueue to handle communications between View
and Model
2022-09-29 11:56:27 +04:00
ghassmo
d91f2e40f6 bin/ircd/view: little fix to the HashMap type 2022-09-28 21:51:36 +04:00
ghassmo
7e2a9ff947 bin/ircd: change view seen list to hashmap 2022-09-28 15:37:37 +04:00
ghassmo
00ee54b917 bin/ircd: split model and view into separate modules 2022-09-27 12:47:14 +04:00
ghassmo
25279861ed bin/ircd/mvc: implement protocol_privmsg2 for hashchain 2022-09-27 12:36:18 +04:00
ghassmo
5fd12cb5cc bin/ircd/mvc: add public api functions && more intensive tests 2022-09-27 12:35:38 +04:00
Luther Blissett
5a8361e94e irc/client: rstrip debug message in reply() 2022-09-26 18:03:36 +02:00
Luther Blissett
73ffece558 ircd/meetbot: Use try/except to reconnect if needed. 2022-09-26 17:42:05 +02:00
ghassmo
b70f83303f bin/ircd: remove buffers and sync messages 2022-09-26 19:22:04 +04:00
Luther Blissett
e79ef3ab21 ircd/meetbot: Write nick of person adding the topic. 2022-09-26 17:13:21 +02:00
ghassmo
6b1a6ff3e8 bin/ircd: fix the tests 2022-09-26 17:09:25 +04:00
ghassmo
0a3d6b7ef0 bin/ircd: little clean up & fix typo 2022-09-26 17:04:02 +04:00
ghassmo
6837634d62 bin/ircd: major fix to clean the tree and update the root 2022-09-26 16:58:17 +04:00
ghassmo
321eb1007e bin/ircd: mvc: remove mutex and arc from EventNode childern and use EventId for parent and childern 2022-09-25 15:59:00 +04:00
ghassmo
0b1d6af102 bin/ircd: make mvc as module & create new protocol for events 2022-09-25 13:34:07 +04:00
Luther Blissett
fb372fda77 ircd: Changes for new serial module. 2022-09-24 16:02:19 +02:00
ghassmo
a1440a185a bin/ircd: mvc: update root 2022-09-24 14:29:54 +04:00
ghassmo
fb971da5c3 bin/ircd: mvc add find_ancestor function 2022-09-23 16:20:04 +04:00
ghassmo
b715fc3d98 bin/ircd: mvc: remove old forks from the tree 2022-09-23 15:13:57 +04:00
ghassmo
5cf661d815 bin/ircd: mvc little clean up 2022-09-23 13:45:35 +04:00
ghassmo
e9cb0f8355 bin/ircd: mvc: Discard events from too low forks 2022-09-23 13:02:57 +04:00
ghassmo
abdc2383f4 bin/ircd: add mvc draft 2022-09-23 11:37:19 +04:00
ghassmo
d41328844c bin/ircd: POC messages model based on hashes and chains 2022-09-19 14:41:29 +04:00
ghassmo
40889ff9cf bin/ircd: fix duplicate messages issue 2022-09-17 14:17:47 +04:00
ghassmo
4a47efb330 bin/ircd: print the privmsg on send and receive 2022-09-17 13:41:14 +04:00
ghassmo
230fd7edfc bin/ircd: major bug fix for syncing messages 2022-09-17 12:47:47 +04:00
ghassmo
cd4d7ed0a9 bin/taud: clean up and change config file 2022-09-14 14:39:07 +04:00
ghassmo
d2c0e47805 bin/ircd: more optimization for the buffer code and clean up 2022-09-14 13:06:45 +04:00
ghassmo
400c66cb88 net: remove an address from the hosts list if doesn't match 2022-09-13 15:18:32 +04:00
ghassmo
93760b5f54 bin/ircd: bump version 0.4.0 2022-09-13 14:42:12 +04:00
ghassmo
de28a50705 bin/ircd: add LastTerm dispatcher 2022-09-13 14:32:35 +04:00
ghassmo
cea9dde460 update sync protocol and ordering algo:
sync protocol: every 4 seconds the node broadcast last_term msg, once the other nodes received that msg they will compare it to their last term if the last_term is less than self_last_term they will send back a vector which contain msgs with a term greater than last_term

ordering algorithm: for ordering algorithm: on receiving new private message,it will check if the same term exist in the buffers if so it will check the timestamp difference if it's more than 3 minute then it will ignore the received msg
2022-09-13 13:58:04 +04:00
Luther Blissett
8f541ea8e9 Revert "Simplify app_version assignment with option_env macro."
This reverts commit 7cfcad95eb.
2022-09-12 22:12:16 +02:00
Luther Blissett
7cfcad95eb Simplify app_version assignment with option_env macro. 2022-09-12 21:36:16 +02:00
aggstam
d433dbd02e p2pnet: optional app_version implemented 2022-09-12 22:05:04 +03:00
Luther Blissett
3337ae249f ircd: More robust handling of TOML in parse_configured_contacts.
This is done to avoid thread panics which would not exit the program and
leave it in some weird limbo. Take note, and add this elsewhere where
applicable and be careful about indexing which you haven't confirmed
exists.
2022-09-07 13:15:34 +02:00