bitcoin-client

bitcoin client library for price ticker and wallet

git clone https://9o.is/git/bitcoin-client.git

commit 759a9ead8c0c0ba36973d1b818e9d5958677e54c
parent f9d7c4f992646d6f5687756069781c1432e733cd
Author: Jul <jul@9o.is>
Date:   Fri,  3 Oct 2014 21:03:56 -0400

minor changes in Helper traits

Diffstat:
Msrc/main/scala/inc/pyc/bitcoin/ticker/Helper.scala | 6+++---
Msrc/main/scala/inc/pyc/bitcoin/wallet/Helper.scala | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/scala/inc/pyc/bitcoin/ticker/Helper.scala b/src/main/scala/inc/pyc/bitcoin/ticker/Helper.scala @@ -23,7 +23,7 @@ trait PriceTickerHelper { * Creates a price ticker actor */ def priceTicker(service: BitcoinService.Value) = - context.system.actorOf(Props(classOf[PriceTicker], service), "PriceTicker") + context.system.actorOf(Props(classOf[PriceTicker], service), "Ticker") /** * Get current set price. @@ -33,7 +33,7 @@ trait PriceTickerHelper { /** * Get current set price. */ - def price: Price = Await.result(priceFuture, 500 millis) + def price: Price = Await.result(priceFuture, 1 second) /** * Update price. @@ -48,6 +48,6 @@ trait PriceTickerHelper { /** * Change bitcoin service provider. */ - def changeBitcoinService(service: BitcoinService.Value) = + def tickerService(service: BitcoinService.Value) = priceTicker ! ChangeBitcoinService(service) } \ No newline at end of file diff --git a/src/main/scala/inc/pyc/bitcoin/wallet/Helper.scala b/src/main/scala/inc/pyc/bitcoin/wallet/Helper.scala @@ -28,7 +28,7 @@ trait WalletHelper { * Creates a wallet actor */ def wallet(service: BitcoinService.Value) = - context.system.actorOf(Props(classOf[Wallet], service), "BitcoinWallet") + context.system.actorOf(Props(classOf[Wallet], service), "Wallet") def initBalance: Unit = wallet ! InitBalance @@ -66,7 +66,7 @@ trait WalletHelper { (wallet ? ValidateAddress(address)).mapTo[AddressValidation] - def changeBitcoinService(service: BitcoinService.Value) = + def walletService(service: BitcoinService.Value) = wallet ! ChangeBitcoinService(service)