lightningdevkit.org icon indicating copy to clipboard operation
lightningdevkit.org copied to clipboard

Better document distinction between channel/chain monitor

Open ConorOkus opened this issue 4 years ago • 4 comments

For some/many users, a unified API would be preferable. Abstraction layer might be convenient?

ConorOkus avatar Nov 29 '21 11:11 ConorOkus

ChainMonitor is the abstraction layer. I'm not entirely sure what's to be done here?

TheBlueMatt avatar Nov 29 '21 18:11 TheBlueMatt

Is there a preferred module to use here, as it seems like ChainMonitor & ChannelMonitor do quite similar things?

Opened this as there seemed to be confusion from one of our users, @arik-so any thoughts?

I'm happy to close if we feel it's a non issue.

ConorOkus avatar Nov 30 '21 14:11 ConorOkus

I think the confusion stems from the objects sounding so similar, even though they clearly refer to very different components. This is a hard one, but imo, definitely a big source of confusion.

arik-so avatar Nov 30 '21 18:11 arik-so

Hmm, they do sound somewhat similar. Some of the confusion may stem from the fact that we have a generic interface a user could implement, but they probably want to just use a ChainMonitor. Is https://lightningdevkit.org/architecture/ not clear on this matter, or should we increase visibility of that page?

TheBlueMatt avatar Nov 30 '21 22:11 TheBlueMatt