Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
test code for KEP-1539
Browse files Browse the repository at this point in the history
  • Loading branch information
paularchard committed Jul 4, 2019
1 parent d12f2eb commit fd0c369
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pbft/pbft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,12 @@ pbft::build_newview(uint64_t new_view, const std::map<uuid_t,bzn_envelope>& view
auto env = this->wrap_message(pre_prepare);
if (pre_prepare.request_type() == pbft_request_type::PBFT_REQUEST_PAYLOAD)
{
auto config = this->configurations->get(old_view);
if (!config)
{
LOG(error) << "config not found for view " << old_view;
assert(0);
}
auto op = this->operation_manager->find_or_construct(old_view, pre_prepare.sequence()
, pre_prepare.request_hash(), this->configurations->get(old_view)->get_peers());
*(env.add_piggybacked_requests()) = op->get_request();
Expand Down

0 comments on commit fd0c369

Please sign in to comment.