mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
multi: add nochainbackend option
This commit is contained in:
@@ -690,6 +690,22 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) {
|
||||
return nil, nil, err
|
||||
}
|
||||
}
|
||||
|
||||
case "nochainbackend":
|
||||
backend := &NoChainBackend{}
|
||||
source := &NoChainSource{
|
||||
BestBlockTime: time.Now(),
|
||||
}
|
||||
|
||||
cc.ChainNotifier = backend
|
||||
cc.ChainView = backend
|
||||
cc.FeeEstimator = backend
|
||||
|
||||
cc.ChainSource = source
|
||||
cc.HealthCheck = func() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
default:
|
||||
return nil, nil, fmt.Errorf("unknown node type: %s",
|
||||
homeChainConfig.Node)
|
||||
|
Reference in New Issue
Block a user