Skip to content

Commit

Permalink
cmplete integrate cmake - peer_service;
Browse files Browse the repository at this point in the history
  • Loading branch information
satellitex committed Jun 14, 2017
1 parent 5648246 commit 1d0afb1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion core/ordering/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
add_library(ordering STATIC queue.cpp observer.cpp)
add_library(ordering STATIC queue.cpp observer.cpp)

target_link_libraries(ordering
peer_service
)
4 changes: 2 additions & 2 deletions core/ordering/observer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.
#include "observer.hpp"
#include "quque.hpp"
#include <common/timer.hpp>
//#include <peer_service/self_state.hpp>
#include <peer_service/self_state.hpp>

namespace ordering {
namespace observer {
Expand All @@ -25,7 +25,7 @@ namespace ordering {
while (1) {
timer::setAwkTimer(5000, []() {
if( queue::isCreateBlock() ) {
if (1/*peer_service::self_state::isLeader()*/) {
if (peer_service::self_state::isLeader()) {
auto block = queue::getBlock();
// ToDo send leader node
} else {
Expand Down
1 change: 1 addition & 0 deletions core/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ ADD_LIBRARY(runtime STATIC runtime.cpp)

target_link_libraries(runtime
scheme
peer_service
)
2 changes: 1 addition & 1 deletion core/runtime/operate_peer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.

#include <block.pb.h>
#include "base.hpp"
//#include <peer_service/change_state.hpp>
#include <peer_service/change_state.hpp>

namespace runtime {
using Transaction = iroha::protocol::Transaction;
Expand Down

0 comments on commit 1d0afb1

Please sign in to comment.