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:
Johan T. Halseth 2017-12-15 21:54:07 +01:00
parent 9bdb483757
commit 0b8e7ff836
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

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