Skip to content

Commit 2cdcbdf

Browse files
committed
Resource Manager implementation
Introduces the DefaultResourceManager struct. The core of methods that will be used to inform the HTLC forward decisions are add/resolve_htlc. - add_htlc: Based on resource availability and reputation, it evaluates whehther to forward or fail the HTLC. - resolve_htlc: Releases the bucket resources used from a HTLC previously added and updates the channel's reputation based on HTLC fees and resolution times.
1 parent 483b950 commit 2cdcbdf

1 file changed

Lines changed: 1536 additions & 5 deletions

File tree

0 commit comments

Comments
 (0)