d2193e980a
* Generate secondary hashXNotification(s) on every headerNotification. * Attempt LBCD connection with rpc.Client. * Optional --daemon-url. * Correct HashXStatusKey field. Should be HASHX_LEN. * Connect to lbcd using lbcd/rpcclient library. * Handle deprecation of node.js 12 actions. * Add --daemon-ca-path argument and establish HTTPS connection if specified. * Remove dead code. Tighten definition of TransactionBroadcastReq. * Correct default daemon URL.
19 lines
520 B
Go
19 lines
520 B
Go
package server
|
|
|
|
import (
|
|
"github.com/lbryio/herald.go/db"
|
|
"github.com/lbryio/lbcd/chaincfg"
|
|
"github.com/lbryio/lbry.go/v3/extras/stop"
|
|
)
|
|
|
|
func (s *Server) AddPeerExported() func(*Peer, bool, bool) error {
|
|
return s.addPeer
|
|
}
|
|
|
|
func (s *Server) GetNumPeersExported() func() int64 {
|
|
return s.getNumPeers
|
|
}
|
|
|
|
func NewSessionManagerExported(server *Server, db *db.ReadOnlyDBColumnFamily, args *Args, grp *stop.Group, chain *chaincfg.Params) *sessionManager {
|
|
return newSessionManager(server, db, args, grp, chain, nil)
|
|
}
|