Implemented P2P network protocol. Refactored project structure.

This commit is contained in:
Revertron
2021-02-05 22:24:28 +01:00
parent 562c004b0d
commit 9e7a1b8834
20 changed files with 524 additions and 101 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ impl Miner {
}
// Get last block for mining
let last_block = { context.lock().unwrap().blockchain.get_last_block() };
let last_block = { context.lock().unwrap().blockchain.last_block() };
match last_block {
None => {
println!("Mining genesis block");