@@ -33,7 +33,7 @@ use crate::chain::channelmonitor::{ChannelMonitor, ChannelMonitorUpdate, Balance
3333use crate :: chain:: transaction:: { OutPoint , TransactionData } ;
3434use crate :: ln:: types:: ChannelId ;
3535use crate :: ln:: msgs:: { self , BaseMessageHandler , Init , MessageSendEvent } ;
36- use crate :: ln:: our_peer_storage:: OurPeerStorage ;
36+ use crate :: ln:: our_peer_storage:: DecryptedOurPeerStorage ;
3737use crate :: sign:: ecdsa:: EcdsaChannelSigner ;
3838use crate :: sign:: { EntropySource , PeerStorageKey } ;
3939use crate :: events:: { self , Event , EventHandler , ReplayEvent } ;
@@ -709,8 +709,8 @@ where C::Target: chain::Filter,
709709
710710 let random_bytes = self . entropy_source . get_secure_random_bytes ( ) ;
711711 let serialised_channels = Vec :: new ( ) ;
712- let our_peer_storage = OurPeerStorage :: DecryptedPeerStorage { data : serialised_channels } ;
713- let cipher = our_peer_storage. encrypt_peer_storage ( & self . our_peerstorage_encryption_key , random_bytes) ;
712+ let our_peer_storage = DecryptedOurPeerStorage :: new ( serialised_channels) ;
713+ let cipher = our_peer_storage. encrypt ( & self . our_peerstorage_encryption_key , random_bytes) ;
714714
715715 log_debug ! ( self . logger, "Sending Peer Storage to {}" , log_pubkey!( their_node_id) ) ;
716716 let send_peer_storage_event = MessageSendEvent :: SendPeerStorage {
0 commit comments