Implemented P2P network protocol. Refactored project structure.
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user