Guest User

Untitled

a guest
Oct 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class Node(nodeId: String) extends Actor with ActorLogging {
  2.  
  3. import Node._
  4.  
  5. implicit lazy val timeout = Timeout(5.seconds)
  6.  
  7. val broker = context.actorOf(Broker.props)
  8. val miner = context.actorOf(Miner.props)
  9. val blockchain = context.actorOf(Blockchain.props(EmptyChain, nodeId))
  10.  
  11. miner ! Ready
  12.  
  13. //Code...
  14. }
Add Comment
Please, Sign In to add comment