mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 06:21:40 +01:00
routing: embed FeeSchema in ChannelPolicy
This commit embeds the FeeSchema within the new struct ChannelPolicy, which also contains the TimeLockDelta for a channel.
This commit is contained in:
parent
9bdb483757
commit
0b8e7ff836
1 changed files with 12 additions and 0 deletions
|
@ -94,6 +94,18 @@ type FeeSchema struct {
|
|||
FeeRate uint32
|
||||
}
|
||||
|
||||
// ChannelPolicy holds the parameters that determine the policy we enforce
|
||||
// when fowarding payments on a channel. These parameters are communicated
|
||||
// to the rest of the network in ChannelUpdate messages.
|
||||
type ChannelPolicy struct {
|
||||
// FeeSchema holds the fee configuration for a channel.
|
||||
FeeSchema
|
||||
|
||||
// TimeLockDelta is the required HTLC timelock delta to be used
|
||||
// when forwarding payments.
|
||||
TimeLockDelta uint32
|
||||
}
|
||||
|
||||
// Config defines the configuration for the ChannelRouter. ALL elements within
|
||||
// the configuration MUST be non-nil for the ChannelRouter to carry out its
|
||||
// duties.
|
||||
|
|
Loading…
Add table
Reference in a new issue