lnd: add initial skeleton functions for RequiredRemoteDelay+ NumRequiredConfs

This commit is contained in:
Olaoluwa Osuntokun 2017-07-30 16:01:59 -07:00
parent a73589f3e9
commit db10772bd0
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

11
lnd.go
View File

@ -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