1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
crate::ix!();
impl PeerManager {
pub fn process_notfound_message(self: Arc<Self>,
peer: &Option<Peer>,
pfrom: &mut AmoWriteGuard<Box<dyn NodeInterface>>,
msg_type: &str,
recv: &mut DataStream,
time_received: &OffsetDateTime ,
interrupt_msg_proc: &AtomicBool) {
let mut inv: Vec<Inv> = vec![];
recv.stream_into(&mut inv);
if inv.len() <= (MAX_PEER_TX_ANNOUNCEMENTS + MAX_BLOCKS_IN_TRANSIT_PER_PEER).try_into().unwrap() {
let mut guard = CS_MAIN.lock();
for inv in inv.iter() {
if inv.is_gen_tx_msg() {
self.inner.lock().txrequest.lock().received_response(
pfrom.get_id(),
&inv.hash
);
}
}
}
}
}