Open
Description
Figured I should document the goal I had in my head for ChannelKeys. I think we should:
a) cache the local keys currently fetched via ChannelKeys::pubkeys() in Channel and ChannelMonitor,
b) only ever have one instance of a ChannelKeys per channel - fetching it during Channel init, shoving it into the created ChannelMonitor (this implies finally removing the channel_monitor from Channel, but we're really close to that), and then moving it into the OnchainTxHandler.
c) Drop the Clone requirement from ChannelKeys (though maybe implementing Clone for ChannelMonitor only if ChannelKeys has it, and documenting this).
Metadata
Metadata
Assignees
Labels
No labels