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
- Alphabetic
- By Inheritance
- BitcoindConfig
- Serializable
- Product
- Equals
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val bind: URI
Defaults to localhost
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val datadir: File
- def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def debug(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def debug(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def error(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def error(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def info(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def info(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def isDebugEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isErrorEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isInfoEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isWarnEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def loggerName: String
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val network: NetworkParameters
The blockchain network associated with this
bitcoind
config - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- lazy val password: Option[String]
- lazy val port: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- lazy val rpcUri: URI
- lazy val rpcbind: URI
Defaults to localhost
- lazy val rpcport: Int
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val toWriteableString: String
Converts the config back to a string that can be written to file, and passed to
bitcoind
- def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def trace(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def trace(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- lazy val uri: URI
- lazy val username: Option[String]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def warn(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def warn(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def withDatadir(newDatadir: File): BitcoindConfig
- 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
- def withOption(key: String, value: String): BitcoindConfig
Creates a new config with the given keys and values appended
- lazy val zmqpubhashblock: Option[InetSocketAddress]
- lazy val zmqpubhashtx: Option[InetSocketAddress]
- lazy val zmqpubrawblock: Option[InetSocketAddress]
- lazy val zmqpubrawtx: Option[InetSocketAddress]