Skip to content

Commit c708eca

Browse files
committed
pkg/types/llo: add source to ChannelDefinition
1 parent 3b2bf34 commit c708eca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/types/llo/types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ type ChannelDefinition struct {
268268
//
269269
// May be nil
270270
Opts ChannelOpts `json:"opts"`
271+
// Source is the source of the channel definition.
272+
// It is set by the LLO channel definitions cache.
273+
// The source is the id of the role that added the channel definition (i.e. the channel adder)
274+
// 0 is always the ChannelConfigStore owner, greater values are adders.
275+
Source uint32 `json:"-"`
271276
}
272277

273278
func (a ChannelDefinition) Equals(b ChannelDefinition) bool {

0 commit comments

Comments
 (0)