routing: enforce cltv limit in path finding

This commit is contained in:
Joost Jager
2019-02-13 10:08:53 +01:00
parent c5961d4904
commit 6006549ed5
3 changed files with 127 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ type nodeWithDist struct {
// amount that includes also the fees for subsequent hops.
amountToReceive lnwire.MilliSatoshi
// incomingCltv is the expected cltv value for the incoming htlc of this
// node. This value does not include the final cltv.
incomingCltv uint32
// fee is the fee that this node is charging for forwarding.
fee lnwire.MilliSatoshi
}