Skip to content

Commit

Permalink
GH-1091 Use correct req_blocks.mode
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jan 7, 2025
1 parent 5094f92 commit 2afb174
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3796,9 +3796,10 @@ namespace eosio {
my_impl->dispatcher.add_peer_block(msg.id, connection_id);
} else {
if (block_header::num_from_id(last_block_notice) == block_header::num_from_id(msg.id) - 1) {
peer_ilog(this, "Received 2 unknown block notices, requesting blocks from ${bn}", ("bn", block_header::num_from_id(last_block_notice)));
send_block_nack({});
request_message req;
req.req_blocks.mode = normal;
req.req_blocks.mode = catch_up;
req.req_blocks.ids.push_back(last_block_notice);
enqueue( req );
}
Expand Down

0 comments on commit 2afb174

Please sign in to comment.