MCPcopy Create free account
hub / github.com/bitshares/bitshares-core / get_message_for_item

Method get_message_for_item

libraries/net/node.cpp:2630–2645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2628 }
2629
2630 graphene::net::message node_impl::get_message_for_item(const item_id& item)
2631 {
2632 try
2633 {
2634 return _message_cache.get_message(item.item_hash);
2635 }
2636 catch (fc::key_not_found_exception&)
2637 {}
2638 try
2639 {
2640 return _delegate->get_item(item);
2641 }
2642 catch (fc::key_not_found_exception&)
2643 {}
2644 return item_not_available_message(item);
2645 }
2646
2647 void node_impl::on_fetch_items_message(peer_connection* originating_peer,
2648 const fetch_items_message& fetch_items_message_received)

Callers 1

get_messageMethod · 0.45

Calls 3

get_messageMethod · 0.45
get_itemMethod · 0.45

Tested by

no test coverage detected