bitcoin-client

bitcoin client library for price ticker and wallet

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

BtcWallet.scala

(664B)


      1 package inc.pyc.bitcoin
      2 package provider
      3 
      4 import net.liftweb.json._
      5 import akka.actor._
      6 
      7 // TODO implement
      8 
      9 class BtcWallet extends Actor
     10   with ActorLogging
     11   with WssWallet {
     12 
     13   val config = Settings(context.system).bitcoin.getConfig("btcwallet")
     14   val walletUri = config.getString("wallet-uri")
     15   val rpcUser = config.getString("rpc-user")
     16   val rpcPass = config.getString("rpc-pass")
     17   val walletPass = config.getString("wallet-pass")
     18   val keyStoreFile = new java.io.File(config.getString("keystore-file"))
     19   val keyStorePass = config.getString("keystore-pass")
     20 
     21   def receive = bitcoinWallet orElse websocket
     22 
     23   def handleNotification = {
     24     case _ =>
     25   }
     26 }