@node-dlc/core
Version:
18 lines (16 loc) • 434 B
text/typescript
/**
* Direction, from our node's perspective, of an HTLC.
*/
export enum HtlcDirection {
/**
* We have offered this HTLC to pay a node directly or on behalf
* of a forward request.
*/
Offered = 0,
/**
* We have accepted this HTLC from the counterparty. We may be the
* final hop in a chain (and would posssess) the preimage or we may
* be a processing hop in a sequence of payments.
*/
Accepted = 1,
}