Global Feed Post Login
Replying to Avatar bob

lnrpc.ChannelCloseSummary does not give remote channel balance on close. We can derive it.

remote balance = channel capacity - local balance - sum(pending htlcs) - commit fee(miner fee) - any anchors

the pending htlcs, commit fee, and anchors are inside the resolutions field

Avatar
bob 2y ago

someone audit me

Reply to this note

Please Login to reply.

Discussion

No replies yet.