Packages

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

This class represents a parsed bitcoin.conf file. It respects the different ways of writing options in bitcoin.conf: Raw options, network-prefixed options and options within network sections. It also tries to conform to the way Bitcoin Core 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.

See also

https://github.com/bitcoin/bitcoin/blob/master/doc/bitcoin-conf.md

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

Instance Constructors

  1. new BitcoindConfig(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 bind: URI

    Defaults to localhost

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val datadir: File
  8. def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  9. def debug(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  10. def debug(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  13. def error(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  14. def error(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  18. def info(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  19. def info(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  20. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  21. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  22. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  25. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  26. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  27. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. lazy val network: NetworkParameters

    The blockchain network associated with this bitcoind config

  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. lazy val password: Option[String]
  33. lazy val port: Int
  34. def productElementNames: Iterator[String]
    Definition Classes
    Product
  35. lazy val rpcUri: URI
  36. lazy val rpcbind: URI

    Defaults to localhost

  37. lazy val rpcport: Int
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. lazy val toWriteableString: String

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

  40. def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def trace(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def trace(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. lazy val uri: URI
  44. lazy val username: Option[String]
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  48. def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. def warn(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  50. def warn(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  51. def withDatadir(newDatadir: File): BitcoindConfig
  52. def withOption(key: String, value: String, network: NetworkParameters): BitcoindConfig

    Creates a new config with the given key and values, with the given network prefixed to the key

    Creates a new config with the given key and values, with the given network prefixed to the key

    Old config:

    rpcport=4000

    New config:

    withOption("rpcport", "2000", MainNet) =
    main.rpcport=2000
    rpcport=4000
  53. def withOption(key: String, value: String): BitcoindConfig

    Creates a new config with the given keys and values appended

  54. lazy val zmqpubhashblock: Option[InetSocketAddress]
  55. lazy val zmqpubhashtx: Option[InetSocketAddress]
  56. lazy val zmqpubrawblock: Option[InetSocketAddress]
  57. lazy val zmqpubrawtx: Option[InetSocketAddress]

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped