Skip to content

Commit

Permalink
Merge pull request steemit#3204 from steemit/3180-unlinkable-block-p2p
Browse files Browse the repository at this point in the history
Unlinkable block p2p
  • Loading branch information
Michael Vandeberg authored Jan 7, 2019
2 parents 9e83f66 + 0732c44 commit e66af33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/plugins/p2p/p2p_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
FC_THROW_EXCEPTION(graphene::net::unlinkable_block_exception, "Error when pushing block:\n${e}", ("e", e.to_detail_string()));
} else {
throw;
}
}
}
else
Expand Down

0 comments on commit e66af33

Please sign in to comment.