| 4875 | } |
| 4876 | |
| 4877 | void node_impl::sync_from(const item_id& current_head_block, const std::vector<uint32_t>& hard_fork_block_numbers) |
| 4878 | { |
| 4879 | VERIFY_CORRECT_THREAD(); |
| 4880 | _most_recent_blocks_accepted.clear(); |
| 4881 | _sync_item_type = current_head_block.item_type; |
| 4882 | _most_recent_blocks_accepted.push_back(current_head_block.item_hash); |
| 4883 | _hard_fork_block_numbers = hard_fork_block_numbers; |
| 4884 | } |
| 4885 | |
| 4886 | bool node_impl::is_connected() const |
| 4887 | { |