You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use KeysInterface::read_chan_signer for all channel keys deser
This drops any direct calls to a generic `ChannelKeys::read()` and
replaces it with the new `KeysInterface::read_chan_signer()`. Still,
under the hood all of our own `KeysInterface::read_chan_signer()`
implementations simply call out to a `Readable::read()` implemention.
for(outpoint,(update_id, monitor_ser)) in old_monitors.drain(){
314
-
monitors.insert(outpoint, <(BlockHash,ChannelMonitor<EnforcingChannelKeys>)>::read(&mutCursor::new(&monitor_ser)).expect("Failed to read monitor").1);
315
+
monitors.insert(outpoint, <(BlockHash,ChannelMonitor<EnforcingChannelKeys>)>::read(&mutCursor::new(&monitor_ser),&OnlyReadsKeysInterface{}).expect("Failed to read monitor").1);
let deserialized_copy = <(BlockHash, channelmonitor::ChannelMonitor<EnforcingChannelKeys>)>::read(&mutCursor::new(&w.0)).unwrap();
31
+
let deserialized_copy = <(BlockHash, channelmonitor::ChannelMonitor<EnforcingChannelKeys>)>::read(&mutCursor::new(&w.0),&OnlyReadsKeysInterface{}).unwrap();
let chain_mon = test_utils::TestChainMonitor::new(Some(&chain_source),&chanmon_cfgs[0].tx_broadcaster,&logger,&chanmon_cfgs[0].fee_estimator,&persister);
0 commit comments