Documentation ¶
Index ¶
Constants ¶
View Source
const MaskNone = Mask(0)
MaskNone represents the empty Mask, in which no breakpoints are active.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct{}
Config is an empty struct disabling command line hodl flags in production.
type Flag ¶
type Flag uint32
Flag represents a single breakpoint where an HTLC should be dropped during forwarding. Flags can be composed into a Mask to express more complex combinations.
const ( // ExitSettle drops an incoming ADD for which we are the exit node, // before processing in the link. ExitSettle Flag = 1 << iota // AddIncoming drops an incoming ADD before processing if we are not // the exit node. AddIncoming // SettleIncoming drops an incoming SETTLE before processing if we // are not the exit node. SettleIncoming // FailIncoming drops an incoming FAIL before processing if we are // not the exit node. FailIncoming // AddOutgoing drops an outgoing ADD before it is added to the // in-memory commitment state of the link. AddOutgoing // SettleOutgoing drops an SETTLE before it is added to the // in-memory commitment state of the link. SettleOutgoing // FailOutgoing drops an outgoing FAIL before is is added to the // in-memory commitment state of the link. FailOutgoing // Commit drops all HTLC after any outgoing circuits have been // opened, but before the in-memory commitment state is persisted. Commit // BogusSettle attempts to settle back any incoming HTLC for which we // are the exit node with a bogus preimage. BogusSettle )
Click to show internal directories.
Click to hide internal directories.