feat: ✨ server side basics
This commit is contained in:
parent
5111196588
commit
7f31e76881
11 changed files with 266 additions and 440 deletions
15
src/lib.rs
15
src/lib.rs
|
@ -1,2 +1,17 @@
|
|||
use std::net::IpAddr;
|
||||
|
||||
pub mod block;
|
||||
pub mod blockchain;
|
||||
pub mod network;
|
||||
mod test;
|
||||
pub mod utils;
|
||||
|
||||
pub enum Runner {
|
||||
Server,
|
||||
Client,
|
||||
}
|
||||
pub struct ServerConfig {
|
||||
pub server_address: IpAddr,
|
||||
pub port: u16,
|
||||
pub difficulty: u8,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue