| 27 | |
| 28 | #[tokio::main] |
| 29 | async fn main() -> Result<()> { |
| 30 | // TODO(ddimaria): remove hard-coded values and implement a genesis file (or via command line when starting the chain) |
| 31 | // let storage = Arc::new(Storage::new(None)?); |
| 32 | // let blockchain = BlockChain::new(storage)?; |
| 33 | // let _server = serve("127.0.0.1:8545", Arc::new(Mutex::new(blockchain))).await?; |
| 34 | |
| 35 | let (blockchain, _, _) = crate::helpers::tests::setup().await; |
| 36 | let _server = serve("127.0.0.1:8545", blockchain).await?; |
| 37 | |
| 38 | // create a future that never resolves |
| 39 | futures::future::pending().await |
| 40 | } |