Skip to content

Commit b89a551

Browse files
committed
pkg/types/llo: add source and tombstone to ChannelDefinition
1 parent 7a3012c commit b89a551

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkg/types/llo/types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ 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+
// 1 is always the ChannelConfigStore owner, greater values are adders.
275+
Source uint32 `json:"-"`
276+
// Tombstone is a boolean flag that indicates if the channel definition is owner a tombstone.
277+
// If true, the adder channel definition will be removed.
278+
Tombstone bool `json:"tombstone"`
271279
}
272280

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

0 commit comments

Comments
 (0)