mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-19 01:04:32 +00:00
Boog900
10aac8cbb2
* impl async buffer * clippy * p2p changes * clippy * a few more docs * init cuprate-p2p * remove some unrelated code and add some docs * start documenting client_pool.rs * add more docs * typo * fix docs * use JoinSet in connection maintainer * small changes * add peer sync state svc * add broadcast svc * add more docs * add some tests * add a test * fix merge * add another test * unify PeerDisconnectFut and add more docs * start network init * add an inbound connection server * remove crate doc for now * fix address book docs * fix leak in client pool * correct comment * fix merge + add some docs * review comments * init block downloader * fix doc * initial chain search * add chain_tracker * move block downloader to struct * spawn task whe getting blocks * check for free peers and handle batch response * add test bin * working block downloader * dynamic batch sizes * dandelion_tower -> dandelion-tower * fix async-buffer builds * check if incoming peers are banned * add interface methods * update docs * use a JoinSet for background network tasks * dynamic batch size changes * Keep a longer of queue of blocks to get * more checks on incoming data * fix merge * fix imports * add more docs * add some limits on messages * keep peers that dont have the current need data * fix clippy * fix .lock * fix stopping the block downloader * clean up API and add more docs * tracing + bug fixes * fix panic * doc changes * remove test_init * remove spammy log * fix previous merge * add a test * fix test * remove test unwrap * order imports correctly * clean up test * add a timeout * fix tests * review fixes * make `BlockDownloader` pub * make `initial_chain_search` pub * make `block_downloader` private * Apply suggestions from code review Co-authored-by: hinto-janai <hinto.janai@protonmail.com> * split some sections into separate modules * split chain requests * sort imports * check previous ID is correct * fix typos * Apply suggestions from code review Co-authored-by: hinto-janai <hinto.janai@protonmail.com> --------- Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
39 lines
1.4 KiB
TOML
39 lines
1.4 KiB
TOML
[package]
|
|
name = "cuprate-p2p"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
authors = ["Boog900"]
|
|
|
|
[dependencies]
|
|
fixed-bytes = { path = "../../net/fixed-bytes" }
|
|
monero-wire = { path = "../../net/monero-wire" }
|
|
monero-p2p = { path = "../monero-p2p", features = ["borsh"] }
|
|
monero-address-book = { path = "../address-book" }
|
|
monero-pruning = { path = "../../pruning" }
|
|
cuprate-helper = { path = "../../helper", features = ["asynch"], default-features = false }
|
|
async-buffer = { path = "../async-buffer" }
|
|
|
|
monero-serai = { workspace = true, features = ["std"] }
|
|
|
|
tower = { workspace = true, features = ["buffer"] }
|
|
tokio = { workspace = true, features = ["rt", "rt-multi-thread"] }
|
|
rayon = { workspace = true }
|
|
tokio-util = { workspace = true }
|
|
tokio-stream = { workspace = true, features = ["sync", "time"] }
|
|
futures = { workspace = true, features = ["std"] }
|
|
pin-project = { workspace = true }
|
|
dashmap = { workspace = true }
|
|
|
|
thiserror = { workspace = true }
|
|
bytes = { workspace = true, features = ["std"] }
|
|
rand = { workspace = true, features = ["std", "std_rng"] }
|
|
rand_distr = { workspace = true, features = ["std"] }
|
|
hex = { workspace = true, features = ["std"] }
|
|
tracing = { workspace = true, features = ["std", "attributes"] }
|
|
|
|
[dev-dependencies]
|
|
cuprate-test-utils = { path = "../../test-utils" }
|
|
indexmap = { workspace = true }
|
|
proptest = { workspace = true }
|
|
tokio-test = { workspace = true }
|