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
letmut ret = unsafe{&mut(*(this_arg.inneras*mutnativeNetworkGraph))}.update_node_from_announcement(unsafe{&*msg.inner},&bitcoin::secp256k1::Secp256k1::new());
839
+
letmut local_ret = match ret {Ok(mut o) => crate::c_types::CResultTempl::ok({0u8/*o*/}),Err(mut e) => crate::c_types::CResultTempl::err({crate::ln::msgs::LightningError{inner:Box::into_raw(Box::new(e)),is_owned:true}})};
840
+
local_ret
841
+
}
842
+
843
+
/// For an already known node (from channel announcements), update its stored properties from a
844
+
/// given node announcement without verifying the associated signatures. Because we aren't
845
+
/// given the associated signatures here we cannot relay the node announcement to any of our
letmut local_chain_access = if chain_access == std::ptr::null_mut(){None}else{Some({unsafe{*Box::from_raw(chain_access)}})};
867
+
letmut ret = unsafe{&mut(*(this_arg.inneras*mutnativeNetworkGraph))}.update_channel_from_announcement(unsafe{&*msg.inner},&local_chain_access,&bitcoin::secp256k1::Secp256k1::new());
868
+
letmut local_ret = match ret {Ok(mut o) => crate::c_types::CResultTempl::ok({0u8/*o*/}),Err(mut e) => crate::c_types::CResultTempl::err({crate::ln::msgs::LightningError{inner:Box::into_raw(Box::new(e)),is_owned:true}})};
869
+
local_ret
870
+
}
871
+
872
+
/// Store or update channel info from a channel announcement without verifying the associated
873
+
/// signatures. Because we aren't given the associated signatures here we cannot relay the
874
+
/// channel announcement to any of our peers.
875
+
///
876
+
/// If a `chain::Access` object is provided via `chain_access`, it will be called to verify
877
+
/// the corresponding UTXO exists on chain and is correctly-formatted.
letmut local_chain_access = if chain_access == std::ptr::null_mut(){None}else{Some({unsafe{*Box::from_raw(chain_access)}})};
882
+
letmut ret = unsafe{&mut(*(this_arg.inneras*mutnativeNetworkGraph))}.update_channel_from_unsigned_announcement(unsafe{&*msg.inner},&local_chain_access);
883
+
letmut local_ret = match ret {Ok(mut o) => crate::c_types::CResultTempl::ok({0u8/*o*/}),Err(mut e) => crate::c_types::CResultTempl::err({crate::ln::msgs::LightningError{inner:Box::into_raw(Box::new(e)),is_owned:true}})};
884
+
local_ret
885
+
}
886
+
829
887
/// Close a channel if a corresponding HTLC fail was sent.
830
888
/// If permanent, removes a channel from the local storage.
831
889
/// May cause the removal of nodes too, if this was their last channel.
0 commit comments