Commit graph

6 commits

Author SHA1 Message Date
Boog900
6875a9a11d
add try_from/from conversion between Message and
`Request`/`Response`
2023-07-27 00:45:28 +01:00
Boog900
c0fa56ab0c
remove peer set for now 2023-07-25 19:40:00 +01:00
Boog900
e5d5730ad6
change the peer module to use the new API + fix a couple bugs 2023-07-21 15:26:00 +01:00
Boog900
8981260750
start re-working p2p to work with change monero-wire
adds back some changes from #22
2023-07-19 17:43:18 +01:00
Boog900
d2a94f1909
start re-working p2p to work with change monero-wire 2023-07-19 15:23:36 +01:00
Boog900
a187d9a357
initial p2p code (#8)
* init

* save

* use macro to create the levin body enum

* add protocol docs and cargo fmt

* add response validation

* add client functionality to connection + fmt

* Add new cuprate-common crate
this crate will hold stuff needed across cuprate crates

+ init handshaker

* add stagenet & testnet hardforks + tests

+ cargo fmt

* split peer and protocol into separate crates
+ add sync state watcher

* finish initial sync states and add some tests

* save

* add initial address book

* cargo fmt

* save

* add pruning module to cuprate-common

* more address book updates
- added an address book client
- add some more address book requests
- add "NetZone"

* lots of changes

* cargo fmt

* combine p2p into one crate
they were all linked anyway

* cargo fmt

* turn the handshaker into a statemachine

* cargo fmt

* reduce the amt of copies when decoding

+ remove reliance on monero-rs

* update time_from_timestamp func

* cargo fmt
+ change qr code link
+ remove clippy.toml
2023-04-24 22:37:40 +01:00