Packages

case class CLightningConfig(lines: Seq[String], datadir: File) extends BitcoinSLogger with Product with Serializable

This class represents a parsed lightning.conf file. It respects the different ways of writing options in lightning.conf: Raw options, network-prefixed options and options within network sections. It also tries to conform to the way clightning gives precedence to the different properties.

Not all options are exposed from this class. We only expose those that are of relevance when making RPC requests.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CLightningConfig
  2. Serializable
  3. Product
  4. Equals
  5. BitcoinSLogger
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CLightningConfig(lines: Seq[String], datadir: File)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. lazy val bitcoindBinding: URI
  6. lazy val bitcoindPass: String
  7. lazy val bitcoindUser: String
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. val datadir: File
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. lazy val instance: CLightningInstanceLocal
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. lazy val listenBinding: URI
  16. lazy val logFileOpt: Option[File]
  17. def logger: Logger
    Definition Classes
    BitcoinSLogger
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. lazy val network: BitcoinNetwork

    The blockchain network associated with this lightning config

  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def productElementNames: Iterator[String]
    Definition Classes
    Product
  23. lazy val rpcFile: File
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. lazy val toWriteableString: String

    Converts the config back to a string that can be written to file, and passed to lightning

  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. def withDatadir(newDatadir: File): CLightningConfig
  30. def withOption(key: String, value: String): CLightningConfig

    Creates a new config with the given keys and values appended

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BitcoinSLogger

Inherited from AnyRef

Inherited from Any

Ungrouped