Skip to content

Instantly share code, notes, and snippets.

index 8c1a73f..5bc114c 100644
--- a/libraries/plugins/p2p/p2p_plugin.cpp
+++ b/libraries/plugins/p2p/p2p_plugin.cpp
@@ -227,7 +227,12 @@ bool p2p_plugin_impl::handle_block( const graphene::net::block_message& blk_msg,
("e", e.to_detail_string())
("head", head_block_num));
elog("Error when pushing block:\n${e}", ("e", e.to_detail_string()));
- throw;
+ if (e.code() == 4080000) {
+ elog("Rethrowing as graphene::net exception");