Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
Types ¶
type Config ¶
type Config struct { // Listeners defines a slice of listeners for which the RPC server will // take ownership of and accept connections. Since the RPC server takes // ownership of these listeners, they will be closed when the RPC server // is stopped. Listeners []net.Listener ListenerTLS []bool // MaxClients is the amount of clients that are allowed to connect to the // electrum server. Set to -1 to have no limits. MaxClients int32 // WatchOnlyWallet is the wallet that keeps track of the balances and relevant // utxos. WatchOnlyWallet *wallet.WatchOnlyWalletManager Params *chaincfg.Params BlockChain *blockchain.BlockChain FeeEstimator *mempool.FeeEstimator Mempool *mempool.TxPool MinRelayFee btcutil.Amount AddRebroadcastInventory func(iv *wire.InvVect, data interface{}) RelayTransactions func(txns []*mempool.TxDesc) AnnounceNewTransactions func(txns []*mempool.TxDesc) }
Config is a configuration struct used to initialize a new electrum server.
type ElectrumServer ¶
type ElectrumServer struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *Config) (*ElectrumServer, error)
New constructs a new instance of the electrum server.
func (*ElectrumServer) Start ¶
func (s *ElectrumServer) Start()
func (*ElectrumServer) Stop ¶
func (s *ElectrumServer) Stop()
type GetMerkleRes ¶
type HeadersResponse ¶
type IDFromPosRes ¶
type ScriptHashHistory ¶
type ServerFeaturesResponse ¶
type ServerFeaturesResponse struct { GenesisHash string `json:"genesis_hash"` Hosts map[string]HostPort `json:"hosts"` ProtocolMax string `json:"protocol_max"` ProtocolMin string `json:"protocol_min"` Pruning bool `json:"pruning,omitempty"` ServerVersion string `json:"server_version"` HashFunction string `json:"hash_function"` }
Click to show internal directories.
Click to hide internal directories.