Binaries: add cuprated skeleton (#258)

* add cuprated skeleton

* fmt and add deny exception
This commit is contained in:
Boog900 2024-08-20 22:56:18 +00:00 committed by GitHub
parent 5648bf0da0
commit 7207fbd17b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 52 additions and 1 deletions

4
Cargo.lock generated
View file

@ -881,6 +881,10 @@ dependencies = [
"thiserror", "thiserror",
] ]
[[package]]
name = "cuprated"
version = "0.1.0"
[[package]] [[package]]
name = "curve25519-dalek" name = "curve25519-dalek"
version = "4.1.3" version = "4.1.3"

View file

@ -2,6 +2,7 @@
resolver = "2" resolver = "2"
members = [ members = [
"binaries/cuprated",
"consensus", "consensus",
"consensus/fast-sync", "consensus/fast-sync",
"consensus/rules", "consensus/rules",

View file

@ -0,0 +1,13 @@
[package]
name = "cuprated"
version = "0.1.0"
edition = "2021"
description = "The Cuprate Monero Rust node."
license = "AGPL-3.0-only"
authors = ["Boog900", "hinto-janai", "SyntheticBird45"]
repository = "https://github.com/Cuprate/cuprate/tree/main/binaries/cuprated"
[dependencies]
[lints]
workspace = true

View file

@ -0,0 +1,6 @@
//! Blockchain
//!
//! Will contain the chain manager and syncer.
mod manager;
mod syncer;

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@
//! cuprated config

View file

@ -0,0 +1,9 @@
mod blockchain;
mod config;
mod p2p;
mod rpc;
mod txpool;
fn main() {
todo!()
}

View file

@ -0,0 +1,5 @@
//! P2P
//!
//! Will handle initiating the P2P and contains a protocol request handler.
mod request_handler;

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,5 @@
//! RPC
//!
//! Will contain the code to initiate the RPC and a request handler.
mod request_handler;

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,3 @@
//! Transaction Pool
//!
//! Will handle initiating the tx-pool, providing the preprocessor required for the dandelion pool.

View file

@ -133,7 +133,7 @@ confidence-threshold = 0.8
# aren't accepted for every possible crate as with the normal allow list # aren't accepted for every possible crate as with the normal allow list
exceptions = [ exceptions = [
# Cuprate (AGPL-3.0) # Cuprate (AGPL-3.0)
# { allow = ["AGPL-3.0"], name = "cuprated", version = "*" } { allow = ["AGPL-3.0"], name = "cuprated", version = "*" }
# Each entry is the crate and version constraint, and its specific allow # Each entry is the crate and version constraint, and its specific allow
# list # list