mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-04 19:33:30 +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")
|
||||
},
|
||||
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 {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user