diff --git a/src/main/scala/com/github/fluency03/blockchain/api/actors/BlockPoolActor.scala b/src/main/scala/com/github/fluency03/blockchain/api/actors/BlockPoolActor.scala index 143a5aa..0a132eb 100644 --- a/src/main/scala/com/github/fluency03/blockchain/api/actors/BlockPoolActor.scala +++ b/src/main/scala/com/github/fluency03/blockchain/api/actors/BlockPoolActor.scala @@ -26,6 +26,8 @@ class BlockPoolActor extends ActorSupport { override def preStart(): Unit = log.info("{} started!", this.getClass.getSimpleName) override def postStop(): Unit = log.info("{} stopped!", this.getClass.getSimpleName) + import context.dispatcher + val blockchainActor: ActorSelection = context.actorSelection(PARENT_UP + BLOCKCHAIN_ACTOR_NAME) val networkActor: ActorSelection = context.actorSelection(PARENT_UP + NETWORK_ACTOR_NAME) val txPoolActor: ActorSelection = context.actorSelection(PARENT_UP + TX_POOL_ACTOR_NAME) @@ -44,12 +46,6 @@ class BlockPoolActor extends ActorSupport { case _ => unhandled _ } - /** - * TODO (Chang): new APIS: - * - CreateBlock - * - */ - /** * Handlers for each of the Messages. */ diff --git a/src/main/scala/com/github/fluency03/blockchain/api/routes/BlockPoolRoutes.scala b/src/main/scala/com/github/fluency03/blockchain/api/routes/BlockPoolRoutes.scala index a055787..cfb3faf 100644 --- a/src/main/scala/com/github/fluency03/blockchain/api/routes/BlockPoolRoutes.scala +++ b/src/main/scala/com/github/fluency03/blockchain/api/routes/BlockPoolRoutes.scala @@ -19,12 +19,6 @@ trait BlockPoolRoutes extends RoutesSupport { def blockPoolActor: ActorRef - /** - * TODO (Chang): new APIS: - * - CreateBlock - * - */ - lazy val blockPoolRoutes: Route = pathPrefix(BLOCK_POOL) { path(BLOCKS) {