From 3b0a94a8daac72ef0718a46174c13207129f7787 Mon Sep 17 00:00:00 2001 From: fluency03 Date: Sat, 5 May 2018 18:13:15 +0200 Subject: [PATCH] fix block pool routes --- .../fluency03/blockchain/api/actors/BlockPoolActor.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 c2e703d..143a5aa 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 @@ -4,7 +4,6 @@ import akka.actor.{ActorRef, ActorSelection, Props} import akka.pattern.ask import com.github.fluency03.blockchain.api.actors.BlockPoolActor._ import com.github.fluency03.blockchain.api._ -import com.github.fluency03.blockchain.api.actors.BlockchainActor import com.github.fluency03.blockchain.core.Block import scala.collection.mutable @@ -90,7 +89,7 @@ class BlockPoolActor extends ActorSupport { case Success(blockOpt) => blockOpt match { case Some(block) => blocksPool += (block.hash -> block) - Some(block) + theSender ! Some(block) case None => theSender ! None } case Failure(_) => theSender ! None