Skip to content

Commit

Permalink
Merge tx and event signatures in protobuf api
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l authored and Warchant committed Mar 8, 2017
1 parent 6c3d5e7 commit b1e59ca
Show file tree
Hide file tree
Showing 8 changed files with 248 additions and 857 deletions.
4 changes: 2 additions & 2 deletions core/consensus/sumeragi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace sumeragi {


using Api::ConsensusEvent;
using Api::EventSignature;
using Api::Signature;
using Api::Transaction;

std::map<std::string, std::string> txCache;
Expand All @@ -75,7 +75,7 @@ namespace sumeragi {
};

void addSignature(ConsensusEvent& event, const std::string& publicKey, const std::string& signature) {
EventSignature sig;
Signature sig;
sig.set_signature(signature);
sig.set_publickey(publicKey);
event.add_eventsignatures()->CopyFrom(sig);
Expand Down
2 changes: 1 addition & 1 deletion core/infra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ add_subdirectory(repository)
add_subdirectory(server)
add_subdirectory(connection)
add_subdirectory(service)
add_subdirectory(protobuf)
# add_subdirectory(protobuf)
add_subdirectory(config)
17 changes: 0 additions & 17 deletions core/infra/protobuf/CMakeLists.txt

This file was deleted.

701 changes: 146 additions & 555 deletions core/infra/protobuf/api.pb.cc

Large diffs are not rendered by default.

Loading

0 comments on commit b1e59ca

Please sign in to comment.