Skip to content

Commit

Permalink
fix block pool routes
Browse files Browse the repository at this point in the history
  • Loading branch information
fluency03 committed May 5, 2018
1 parent 720ef1b commit 3b0a94a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3b0a94a

Please sign in to comment.