Skip to content

Commit

Permalink
Merge pull request EOSIO#2616 from EOSIO/p2p-pre-rc2-set1
Browse files Browse the repository at this point in the history
syncus-interruptus
  • Loading branch information
heifner authored Apr 27, 2018
2 parents 4e99117 + 5843fde commit 9aa57f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ namespace eosio {
handshake_initializer::populate(last_handshake_sent);
last_handshake_sent.generation = ++sent_handshake_count;
fc_dlog(logger, "Sending handshake generation ${g} to ${ep}",
("g",last_handshake_sent.generation)("ep", peer_addr));
("g",last_handshake_sent.generation)("ep", peer_name()));
enqueue(last_handshake_sent);
}

Expand Down Expand Up @@ -1416,6 +1416,9 @@ namespace eosio {
if( req.req_blocks.mode == catch_up ) {
c->fork_head = id;
c->fork_head_num = num;
ilog ("got a catch_up notice while in ${s}, fork head num = ${fhn} target LIB = ${lib} next_expected = ${ne}", ("s",stage_str(state))("fhn",num)("lib",sync_known_lib_num)("ne", sync_next_expected_num));
if (state == lib_catchup)
return;
set_state(head_catchup);
}
else {
Expand Down Expand Up @@ -1444,6 +1447,7 @@ namespace eosio {
}

void sync_manager::recv_block (connection_ptr c, const block_id_type &blk_id, uint32_t blk_num, bool accepted) {
fc_dlog(logger," got block ${bn} from ${p}",("bn",blk_num)("p",c->peer_name()));
if (!accepted) {
uint32_t head_num = chain_plug->chain().head_block_num();
if (head_num != last_repeated) {
Expand Down

0 comments on commit 9aa57f9

Please sign in to comment.