feat: server side basics

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-05-23 04:13:05 +03:00
parent 5111196588
commit 7f31e76881
11 changed files with 266 additions and 440 deletions

View file

@ -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,
}