mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
Merge pull request #3821
558d05b
epee: log type name when a container size check fails (moneromooo-monero)a2566db
object_sizes: add a few useful types (moneromooo-monero)
This commit is contained in:
commit
f62399b88d
2 changed files with 6 additions and 1 deletions
|
@ -156,7 +156,7 @@ namespace epee
|
|||
typename stl_container::value_type* pelem = (typename stl_container::value_type*)buff.data();
|
||||
CHECK_AND_ASSERT_MES(!(loaded_size%sizeof(typename stl_container::value_type)),
|
||||
false,
|
||||
"size in blob " << loaded_size << " not have not zero modulo for sizeof(value_type) = " << sizeof(typename stl_container::value_type));
|
||||
"size in blob " << loaded_size << " not have not zero modulo for sizeof(value_type) = " << sizeof(typename stl_container::value_type) << ", type " << typeid(typename stl_container::value_type).name());
|
||||
size_t count = (loaded_size/sizeof(typename stl_container::value_type));
|
||||
for(size_t i = 0; i < count; i++)
|
||||
container.insert(container.end(), *(pelem++));
|
||||
|
|
|
@ -94,6 +94,11 @@ int main(int argc, char* argv[])
|
|||
SL(nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>>);
|
||||
SL(nodetool::p2p_connection_context_t<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>::connection_context>);
|
||||
SL(nodetool::network_address_old);
|
||||
SL(nodetool::peerlist_entry_base<nodetool::network_address_old>);
|
||||
|
||||
SL(nodetool::network_config);
|
||||
SL(nodetool::basic_node_data);
|
||||
SL(cryptonote::CORE_SYNC_DATA);
|
||||
|
||||
SL(tools::wallet2::transfer_details);
|
||||
SL(tools::wallet2::payment_details);
|
||||
|
|
Loading…
Reference in a new issue