mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 23:22:48 +02:00
lnd: add initial skeleton functions for RequiredRemoteDelay+ NumRequiredConfs
This commit is contained in:
11
lnd.go
11
lnd.go
@@ -158,6 +158,17 @@ func lndMain() error {
|
|||||||
return nil, fmt.Errorf("unable to find channel")
|
return nil, fmt.Errorf("unable to find channel")
|
||||||
},
|
},
|
||||||
DefaultRoutingPolicy: activeChainControl.routingPolicy,
|
DefaultRoutingPolicy: activeChainControl.routingPolicy,
|
||||||
|
NumRequiredConfs: func(chanAmt btcutil.Amount, pushAmt btcutil.Amount) uint16 {
|
||||||
|
// TODO(roasbeef): add configurable mapping
|
||||||
|
// * simple switch initially
|
||||||
|
// * assign coefficient, etc
|
||||||
|
return 1
|
||||||
|
},
|
||||||
|
RequiredRemoteDelay: func(chanAmt btcutil.Amount) uint16 {
|
||||||
|
// TODO(roasbeef): add additional hooks for
|
||||||
|
// configuration
|
||||||
|
return 4
|
||||||
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user