mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-05 04:30:16 +02:00
peer+lnd: make BestBlockView available to Brontide
This commit is contained in:
parent
74b30a71cb
commit
ac265812fc
@ -233,6 +233,10 @@ type Config struct {
|
|||||||
// transaction.
|
// transaction.
|
||||||
ChainNotifier chainntnfs.ChainNotifier
|
ChainNotifier chainntnfs.ChainNotifier
|
||||||
|
|
||||||
|
// BestBlockView is used to efficiently query for up-to-date
|
||||||
|
// blockchain state information
|
||||||
|
BestBlockView chainntnfs.BestBlockView
|
||||||
|
|
||||||
// RoutingPolicy is used to set the forwarding policy for links created by
|
// RoutingPolicy is used to set the forwarding policy for links created by
|
||||||
// the Brontide.
|
// the Brontide.
|
||||||
RoutingPolicy models.ForwardingPolicy
|
RoutingPolicy models.ForwardingPolicy
|
||||||
|
@ -3837,6 +3837,7 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
|
|||||||
SigPool: s.sigPool,
|
SigPool: s.sigPool,
|
||||||
Wallet: s.cc.Wallet,
|
Wallet: s.cc.Wallet,
|
||||||
ChainNotifier: s.cc.ChainNotifier,
|
ChainNotifier: s.cc.ChainNotifier,
|
||||||
|
BestBlockView: s.cc.BestBlockTracker,
|
||||||
RoutingPolicy: s.cc.RoutingPolicy,
|
RoutingPolicy: s.cc.RoutingPolicy,
|
||||||
Sphinx: s.sphinx,
|
Sphinx: s.sphinx,
|
||||||
WitnessBeacon: s.witnessBeacon,
|
WitnessBeacon: s.witnessBeacon,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user