Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Remove proto dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Kitsu <mail@kitsu.me>
  • Loading branch information
l4l committed Sep 28, 2018
1 parent 3692351 commit 6eeaf7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion irohad/consensus/yac/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ target_link_libraries(yac
yac_grpc
logger
hash
shared_model_proto_backend
)
12 changes: 1 addition & 11 deletions irohad/consensus/yac/impl/yac_gate_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

#include "consensus/yac/impl/yac_gate_impl.hpp"

#include "backend/protobuf/block.hpp"
#include "backend/protobuf/proposal.hpp"
#include "backend/protobuf/proto_proposal_factory.hpp"
#include "common/visitor.hpp"
#include "consensus/yac/cluster_order.hpp"
#include "consensus/yac/messages.hpp"
Expand Down Expand Up @@ -42,14 +39,7 @@ namespace iroha {
block_creator_->on_block().subscribe([this](auto block) {
// TODO(@l4l) 24/09/18 IR-1717
// update BlockCreator iface according to YacGate
this->vote(
std::shared_ptr<shared_model::interface::Proposal>(
(shared_model::proto::ProtoProposalFactory<
shared_model::validation::DefaultProposalValidator>()
.unsafeCreateProposal(0, 0, {}))
.release()),
block,
{0, 0});
this->vote(nullptr, block, {0, 0});
});
}

Expand Down

0 comments on commit 6eeaf7d

Please sign in to comment.