All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sss.openstar.nodebuilder.UtxoMonitorBuilder.scala Maven / Gradle / Ivy

package sss.openstar.nodebuilder

import sss.openstar.db.Builder.RequireDb
import sss.openstar.message.{UtxoMonitor, UtxoQuery, UtxoWatch}

trait UtxoMonitorBuilder {

  self: RequireDb
    with RequireNodeConfig
    with RequireActorContext
    with RequireMessageEventBus =>

  lazy val maxRowBeforePrune: Int = nodeConfig.conf.getInt("utxomonitor.maxRowsBeforePrune")
  lazy val utxoMonitor = new UtxoMonitor(maxRowBeforePrune)

  lazy implicit val utxoQuery: UtxoQuery = utxoMonitor.query
  lazy implicit val utxoWatch: UtxoWatch = utxoMonitor.utxoWatch
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy