Skip to content

Commit

Permalink
Changed to report from peer's LIB, since we don't know if any blocks …
Browse files Browse the repository at this point in the history
…after that correspond to our blocks. GH EOSIO#6755

(cherry picked from commit e9a6c08)
  • Loading branch information
vince authored and VincentOCL committed Sep 10, 2019
1 parent fdee487 commit 6cfa400
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,13 +960,7 @@ namespace eosio {
fc_dlog(logger, "maybe truncating branch at = ${h}:${id}",("h",remote_head_num)("id",remote_head_id));
}

// base our branch off of the last handshake we sent the peer instead of our current
// LIB which could have moved forward in time as packets were in flight.
if (last_handshake_sent.generation >= 1) {
lib_id = last_handshake_sent.last_irreversible_block_id;
} else {
lib_id = cc.last_irreversible_block_id();
}
lib_id = last_handshake_recv.last_irreversible_block_id;
head_id = cc.fork_db_head_block_id();
}
catch (const assert_exception& ex) {
Expand Down

0 comments on commit 6cfa400

Please sign in to comment.